This release is versions behind 0.224.9 — the latest version of @std/webgpu.
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Works with
•JSR Score94%•This package works with Deno, BrowsersIt is unknown whether this package works with Bun


Downloads4/wk
•Published2 years ago (0.218.2)
UNSTABLE: Utilities for working with the Web GPU API
Functions
f
describeTextureFormat(format: GPUTextureFormat): TextureFormatInfo
Get various information about a specific GPUTextureFormat.
Interfaces
I
Return type for describeTextureFormat.
- 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.
- requiredFeature: GPUFeatureName
The specific feature needed to use the format, if any.
- sampleType: GPUTextureSampleType
Type of sampling that is valid for the texture.