TextureFormatInfo
import { TextureFormatInfo } from "jsr:@ende/webgpu";interface
interface TextureFormatInfoReturn type for describeTextureFormat.
Properties
requiredFeature
requiredFeature?: GPUFeatureNameThe specific feature needed to use the format, if any.
sampleType
sampleType: GPUTextureSampleTypeType of sampling that is valid for the texture.
allowedUsages
allowedUsages: numberValid bits of GPUTextureUsage.
blockDimensions
blockDimensions: [number, number]Dimension of a "block" of texels. This is always [1, 1] on
uncompressed textures.
blockSize
blockSize: numberSize in bytes of a "block" of texels. This is the size per pixel on uncompressed textures.
components
components: numberCount of components in the texture. This determines which components there will be actual data in the shader for.