Documentation / scene / RGTextureDesc
Interface: RGTextureDesc
Defined in: libs/scene/src/render/rendergraph/types.ts:22
Descriptor for a transient texture resource within the render graph.
Transient textures are allocated and released automatically by the graph compiler.
Properties
label?
optionallabel?:string
Defined in: libs/scene/src/render/rendergraph/types.ts:24
Debug label for this resource.
format
format:
TextureFormat
Defined in: libs/scene/src/render/rendergraph/types.ts:26
Texture format (e.g. 'rgba8unorm', 'r32f', 'rgba16f').
sizeMode?
optionalsizeMode?:RGSizeMode
Defined in: libs/scene/src/render/rendergraph/types.ts:28
Sizing mode. Default 'backbuffer-relative'.
width?
optionalwidth?:number
Defined in: libs/scene/src/render/rendergraph/types.ts:30
Width in pixels (absolute) or scale factor (backbuffer-relative, default 1.0).
height?
optionalheight?:number
Defined in: libs/scene/src/render/rendergraph/types.ts:32
Height in pixels (absolute) or scale factor (backbuffer-relative, default 1.0).
mipLevels?
optionalmipLevels?:number
Defined in: libs/scene/src/render/rendergraph/types.ts:34
Number of mip levels. Default 1.
arrayLayers?
optionalarrayLayers?:number
Defined in: libs/scene/src/render/rendergraph/types.ts:42
Number of array layers. When omitted, a plain 2D texture is allocated. When defined (including 1), the allocator produces a 2D array texture — a single-layer array is a distinct texture type from a 2D texture and is not interchangeable when bound to a tex2DArray sampler. Individual layers can be targeted as framebuffer color attachments via RGFramebufferDesc.attachmentLayer.