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

    Interface RenderNodeGPUExtension

    GPU graph contribution owned by an optional scene-node addon.

    interface RenderNodeGPUExtension {
        hasOpaqueRenderers: boolean;
        hasPendingWork: boolean;
        requiresSampledDepth: boolean;
        frameDiscarded(frameIndex: number): void;
        frameSubmitted(frameIndex: number): void;
        isVisible(camera: Camera): boolean;
        record(
            context: RenderPipelineContext,
            color: RenderGraphTextureHandle,
            depth: RenderGraphTextureHandle | null,
            drawVisible: boolean,
            phase: "transparent" | "opaque",
        ): void;
    }
    Index
    hasOpaqueRenderers: boolean

    Whether this contribution has an opaque or alpha-masked phase.

    hasPendingWork: boolean

    Whether graph work must run even when the contribution is outside the camera.

    requiresSampledDepth: boolean

    Whether simulation or raster needs the current sampled scene depth.

    • Commit staged state only after the enclosing frame submission succeeds.

      Parameters

      • frameIndex: number

      Returns void