Skip to content

Documentation / scene / RGTextureDesc

Interface: RGTextureDesc

Defined in: libs/scene/src/render/rendergraph/types.ts:16

Descriptor for a graph-managed transient texture.

Properties

label?

optional label?: string

Defined in: libs/scene/src/render/rendergraph/types.ts:18

Debug label for this resource.


allocationKey?

optional allocationKey?: string

Defined in: libs/scene/src/render/rendergraph/types.ts:23

Stable identity used to prefer the same pooled texture across graph executions. When omitted, the graph derives one from the declaring pass and resource label.


format

format: TextureFormat

Defined in: libs/scene/src/render/rendergraph/types.ts:25

Texture format.


sizeMode?

optional sizeMode?: RGSizeMode

Defined in: libs/scene/src/render/rendergraph/types.ts:27

Sizing mode. Default 'backbuffer-relative'.


width?

optional width?: number

Defined in: libs/scene/src/render/rendergraph/types.ts:29

Pixel width or backbuffer scale. Default 1.


height?

optional height?: number

Defined in: libs/scene/src/render/rendergraph/types.ts:31

Pixel height or backbuffer scale. Default 1.


mipLevels?

optional mipLevels?: number

Defined in: libs/scene/src/render/rendergraph/types.ts:33

Number of mip levels. Default 1.


arrayLayers?

optional arrayLayers?: number

Defined in: libs/scene/src/render/rendergraph/types.ts:35

Array layers. Any defined value, including 1, requests a 2D array texture.

Released under the MIT License.