Taos API Reference
    Preparing search index...

    Interface AttachmentOptions

    Per-attachment metadata supplied alongside an 'attachment' / 'depth-attachment' write. The graph consumes this to build the GPURenderPassDescriptor; the pass execute callback never builds the descriptor itself.

    interface AttachmentOptions {
        loadOp?: GPULoadOp;
        storeOp?: GPUStoreOp;
        clearValue?: GPUColor;
        depthClearValue?: number;
        depthLoadOp?: GPULoadOp;
        depthStoreOp?: GPUStoreOp;
        stencilLoadOp?: GPULoadOp;
        stencilStoreOp?: GPUStoreOp;
        stencilClearValue?: number;
        view?: GPUTextureViewDescriptor;
        resolveTarget?: ResourceHandle;
    }
    Index

    Properties

    loadOp?: GPULoadOp

    Defaults to 'load'.

    storeOp?: GPUStoreOp

    Defaults to 'store'.

    clearValue?: GPUColor

    Required when loadOp === 'clear' for color attachments.

    depthClearValue?: number

    Required when loadOp === 'clear' for depth attachments.

    depthLoadOp?: GPULoadOp

    Defaults to 'load'. Stencil ops mirror depth if the format has stencil.

    depthStoreOp?: GPUStoreOp

    Defaults to 'store'.

    stencilLoadOp?: GPULoadOp
    stencilStoreOp?: GPUStoreOp
    stencilClearValue?: number
    view?: GPUTextureViewDescriptor

    Specific texture view to attach (mip / array slice / cube face / depth slice).

    resolveTarget?: ResourceHandle

    MSAA resolve target. The handle must be a separate virtual texture declared with 'attachment' write usage in the same pass; the graph consumes both into a single attachment slot.