콘텐츠로 이동

SurfaceLifetimeHint enumeration

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

How long the creator expects to keep a surface; a backend may choose its allocation strategy by it.

public enum SurfaceLifetimeHint
name value description
Frame 0 Lives for the current frame.
Transient 1 Short-lived, but may outlast a frame.
Pooled 2 Returned to the scratch pool for reuse.
Cached 3 Retained across frames.
External 4 Owned and managed outside the backend.