• Reads a texture to an array of TexelViews, one per mip level. format is the format of the TexelView you want. Often this is same as the texture.format but if the texture.format is not "Encodable" then you need to choose a different format. Example: depth24plus -> r32float, bc1-rgba-unorm to rgba32float

    Parameters

    • t: GPUTest
    • texture: GPUTexture
    • descriptor: Omit<GPUTextureDescriptor, "format" | "usage">
    • format: "bgra8unorm" | "rgba8unorm" | "rgba16float" | "r8unorm" | "r8snorm" | "r8uint" | "r8sint" | "r16uint" | "r16sint" | "r16float" | "rg8unorm" | "rg8snorm" | "rg8uint" | "rg8sint" | "r32uint" | "r32sint" | "r32float" | "rg16uint" | "rg16sint" | "rg16float" | "rgba8unorm-srgb" | "rgba8snorm" | "rgba8uint" | "rgba8sint" | "bgra8unorm-srgb" | "rgb9e5ufloat" | "rgb10a2uint" | "rgb10a2unorm" | "rg11b10ufloat" | "rg32uint" | "rg32sint" | "rg32float" | "rgba16uint" | "rgba16sint" | "rgba32uint" | "rgba32sint" | "rgba32float" | "stencil8" | "depth16unorm" | "depth32float"

    Returns Promise<TexelView[]>

Generated using TypeDoc