콘텐츠로 이동

SurfaceCapabilities enumeration

이 콘텐츠는 아직 번역되지 않았습니다.

Flags describing what a surface can do.

[Flags]
public enum SurfaceCapabilities
name value description
None 0x0 No capability.
Renderable 0x1 A context can draw into the surface.
Presentable 0x2 The surface can be presented to a window.
CpuReadable 0x4 The pixels can be read on the CPU (see TryReadPixels).
CpuWritable 0x8 The pixels can be written on the CPU through ICpuPixelSurface.
GpuSampleable 0x10 The GPU can sample the surface as a texture (see IGpuSampleableSurface).
FilterIntermediate 0x20 The surface has the exact size and layout filter graphs require for intermediates.
CacheableImageSource 0x40 The surface may be retained as a cached image source.
ExternalHandle 0x80 The surface wraps a native resource owned outside the backend.
ExternallySynchronized 0x100 Access to the surface is synchronized by its external owner, typically through a lease.
DeferredReadback 0x200 CPU pixels become available only after RequestReadback completes.
AsyncCompletion 0x400 Writes complete asynchronously; wait on FlushAsyncWork before reading.
Alpha 0x800 The surface has an alpha channel.
Premultiplied 0x1000 Color channels are premultiplied by alpha.
ExternalGpuWritable 0x2000 External code can write into the surface through IExternalWritableGpuSurface.