Hilo3d API - v2.0.0
    Preparing search index...

    Interface RenderTargetParameters

    Modern render-target description shared by WebGL 2 and WebGPU.

    interface RenderTargetParameters {
        colorAttachments?: readonly RenderTargetColorAttachmentOptions[];
        depthStencilAttachment?: false | RenderTargetDepthStencilAttachmentOptions;
        height: number;
        label?: string;
        sampleCount?: RenderTargetSampleCount;
        width: number;
    }
    Index
    colorAttachments?: readonly RenderTargetColorAttachmentOptions[]

    Defaults to one sampleable rgba8unorm attachment. An empty array creates a depth-only target.

    depthStencilAttachment?: false | RenderTargetDepthStencilAttachmentOptions

    Defaults to a non-sampled depth24plus-stencil8 attachment.

    height: number
    label?: string

    Both backends guarantee single-sample and four-sample targets.

    width: number