@pmndrs/reflections
    Preparing search index...

    Interface HalfResolutionFrame

    Point-samples a frame (and any other full-res texture) into half-size copies it owns.

    interface HalfResolutionFrame {
        frame: FrameInputs | null;
        build(cmd: GPUCommandEncoder, frame: FrameInputs): FrameInputs;
        destroy(): void;
        sample(cmd: GPUCommandEncoder, texture: GPUTexture): GPUTexture;
    }
    Index
    frame: FrameInputs | null

    The last build()'s half frame (null before the first).

    • Record the point sampling of every texture of frame into cmd and return the half frame: same conventions (motion scale adjusted for odd sizes), camera from halfResolutionCamera, depth as r32float device depth, two-channel targets widened to rgba16float.

      Parameters

      Returns FrameInputs

    • Point-sample one more full-res texture (e.g. an app's history image) the same way.

      Parameters

      • cmd: GPUCommandEncoder
      • texture: GPUTexture

      Returns GPUTexture