콘텐츠로 이동

SurfaceUsage enumeration

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

Flags naming what a surface is created for, so a backend can pick a matching allocation.

[Flags]
public enum SurfaceUsage
name value description
None 0x0 No usage.
WindowBackBuffer 0x1 The back buffer of a window.
Offscreen 0x2 An offscreen drawing target.
ImageSource 0x4 Drawn as an image through an image view.
FilterIntermediate 0x8 An intermediate result of a filter graph.
FilterSource 0x10 The source layer a filter graph reads.
ReadbackSource 0x20 Read back to the CPU.
PresenterIntermediate 0x40 A staging surface for presenting a frame to a window.
CachedImageSource 0x80 Retained across frames as a cached image.
ExternalSampleSource 0x100 Sampled from an externally owned resource.
AsyncUploadSource 0x200 Uploaded to the GPU asynchronously.
DeferredReadbackSource 0x400 Read back to the CPU on request rather than immediately.