Interface FrameBufferDescriptor

Descriptor for creating a standard frame buffer with color and optional depth attachments

interface FrameBufferDescriptor {
    createDepthBuffer: boolean;
    depthTextureFormat?: TextureFormatEnum;
    height: number;
    mipLevelCount?: number;
    textureFormats: TextureFormatEnum[];
    textureNum: number;
    width: number;
}

Properties

createDepthBuffer: boolean

Whether to create a depth buffer attachment

depthTextureFormat?: TextureFormatEnum

Format for the depth texture (optional, defaults to Depth32F)

height: number

Height of the frame buffer in pixels

mipLevelCount?: number

Number of mip levels to generate (optional)

textureFormats: TextureFormatEnum[]

Array of texture formats for each color attachment

textureNum: number

Number of color texture attachments

width: number

Width of the frame buffer in pixels