gpu-curtains
    Preparing search index...

    Interface ExternalTextureParamsBase

    Base parameters used to copy an external image to a texture, i.e. that will be uploaded to the GPU using copyExternalImageToTexture.

    interface ExternalTextureParamsBase {
        format?: GPUTextureFormat;
        generateMips?: boolean;
        flipY?: boolean;
        premultipliedAlpha?: boolean;
        viewDimension?: GPUTextureViewDimension;
        aspect?: GPUTextureAspect;
        colorSpace?: PredefinedColorSpace;
    }

    Hierarchy (View Summary)

    Index

    Properties

    format?: GPUTextureFormat

    The GPUTexture format to use. Default to 'rgba8unorm'.

    generateMips?: boolean

    Whether to generate mips. Default to false.

    flipY?: boolean

    Whether to flip the source along the Y axis. Default to false.

    premultipliedAlpha?: boolean

    Whether this texture should be premultiplied or not. Default to false.

    viewDimension?: GPUTextureViewDimension

    The GPUTexture view dimension to use. Default to '2d'.

    aspect?: GPUTextureAspect

    Define which aspect of the texture to write the image to. Default to all.

    colorSpace?: PredefinedColorSpace

    Define the colorSpace and encoding used to encode data into the destination texture. Default to srgb.