API

Interface GenerateMipMapsTask<T>

Regenerate an existing texture's mip chain in place without taking texture ownership.

interface GenerateMipMapsTask<
    T extends RenderTarget
    | Texture2D = RenderTarget | Texture2D,
> {
    engine: EngineContext;
    executionEnabled?: boolean;
    name: string;
    outputTexture: T;
    scene?: SceneContext;
    targetTexture: T;
    dispose(): void;
    execute?(): number;
    record(): void;
}

Type Parameters

Hierarchy (View Summary)

  • Task
    • GenerateMipMapsTask
Index

Engine captured at task creation.

executionEnabled?: boolean

Runtime frame-graph execution gate, default true. When false, the frame graph keeps the task recorded and its resources alive but skips every pass or built-in execute() call for that frame. This is independent from any task-specific enabled state whose disabled transition may still execute work.

name: string
outputTexture: T
scene?: SceneContext

Owning scene for scene-bound tasks. Undefined for scene-less standalone frame graphs.

targetTexture: T