Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface TextureFormatInfo
import { type TextureFormatInfo } from "https://deno.land/std@0.219.1/webgpu/mod.ts";

Return type for describeTextureFormat.

Properties

optional
requiredFeature: GPUFeatureName

The specific feature needed to use the format, if any.

Type of sampling that is valid for the texture.

allowedUsages: number

Valid bits of GPUTextureUsage.

blockDimensions: [number, number]

Dimension of a "block" of texels. This is always [1, 1] on uncompressed textures.

blockSize: number

Size in bytes of a "block" of texels. This is the size per pixel on uncompressed textures.

components: number

Count of components in the texture. This determines which components there will be actual data in the shader for.