Skip to content

Documentation / scene / RGFramebufferDesc

Interface: RGFramebufferDesc<TTexture> ​

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

Backend-independent framebuffer descriptor.

Type Parameters ​

TTexture ​

TTexture = BaseTexture

Properties ​

label? ​

optional label?: string

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

Debug label for this framebuffer.


width? ​

optional width?: number

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

Framebuffer width. Required when attachments are formats.


height? ​

optional height?: number

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

Framebuffer height. Required when attachments are formats.


colorAttachments ​

colorAttachments: RGTextureAttachment<TTexture> | RGTextureAttachment<TTexture>[]

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

Color attachments or formats.


depthAttachment? ​

optional depthAttachment?: RGTextureAttachment<TTexture>

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

Depth/stencil attachment or format.


mipmapping? ​

optional mipmapping?: boolean

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

Whether color attachments created from formats should support mipmapping.


sampleCount? ​

optional sampleCount?: number

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

Framebuffer sample count.


ignoreDepthStencil? ​

optional ignoreDepthStencil?: boolean

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

Whether to ignore depth/stencil during MSAA resolve.


attachmentMipLevel? ​

optional attachmentMipLevel?: number

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

Attachment mip level.


attachmentCubeface? ​

optional attachmentCubeface?: number

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

Attachment cubemap face.


attachmentLayer? ​

optional attachmentLayer?: number

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

Attachment array layer.

Released under the MIT License.