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

    Interface RenderTarget

    Public render-target surface with no native WebGL or WebGPU handles.

    interface RenderTarget {
        backend: RendererBackend;
        colorAttachmentCount: number;
        colorFormats: readonly RenderTargetColorFormat[];
        depthStencilFormat: RenderTargetDepthStencilFormat | null;
        height: number;
        isDestroyed: boolean;
        label: string;
        sampleCount: RenderTargetSampleCount;
        width: number;
        destroy(): void;
        getColorTexture(index?: number): Texture<unknown>;
        getDepthTexture(): Texture<unknown> | null;
        readColorAttachment(
            options?: RenderTargetReadColorAttachmentOptions,
        ): Promise<RenderTargetColorAttachmentReadback>;
        resize(width: number, height: number): void;
    }
    Index
    colorAttachmentCount: number
    colorFormats: readonly RenderTargetColorFormat[]
    depthStencilFormat: RenderTargetDepthStencilFormat | null
    height: number
    isDestroyed: boolean
    label: string
    width: number
    • Stable attachment identity for this target's lifetime, including resize and recovery.

      Parameters

      • Optionalindex: number

      Returns Texture<unknown>

    • Stable sampled-depth identity for this target's lifetime, including resize and recovery.

      Returns Texture<unknown> | null

    • Parameters

      • width: number
      • height: number

      Returns void