gpu-curtains
    Preparing search index...

    Interface TextureBaseParams

    Base parameters used to create a Texture.

    interface TextureBaseParams {
        label?: string;
        name?: string;
        fixedSize?: TextureSize;
        useMips?: boolean;
        usage?: TextureUsageKeys[];
        autoDestroy?: boolean;
        fromTexture?: DOMTexture | MediaTexture | Texture;
        format?: GPUTextureFormat;
        generateMips?: boolean;
        flipY?: boolean;
        premultipliedAlpha?: boolean;
        viewDimension?: GPUTextureViewDimension;
        aspect?: GPUTextureAspect;
        colorSpace?: PredefinedColorSpace;
        visibility?: MaterialShadersType[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    label?: string

    The label of the Texture, used to create various GPU objects for debugging purpose.

    name?: string

    Name of the Texture to use in the texture binding.

    fixedSize?: TextureSize

    Optional fixed size of the texture. If set, the Texture will never be resized and always keep that size.

    useMips?: boolean

    Whether the Texture should be created with mipLevelCount. Useful to manually generate the mips. Default to false, but automatically set to true if generateMips has been set to true.

    Allowed usages for the GPU texture as an array of texture usages names.

    autoDestroy?: boolean

    Whether any Material using this Texture should automatically destroy it upon destruction. Default to true.

    fromTexture?: DOMTexture | MediaTexture | Texture

    Optional texture to use as a copy source input. Could be a Texture or DOMTexture.

    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.

    visibility?: MaterialShadersType[]

    The texture shaders visibility sent to the texture binding. Default to 'fragment'.