close
Skip to main content
This release is versions behind 0.224.9 — the latest version of @std/webgpu.

@std/webgpu@0.218.2
Built and signed on GitHub Actions

Works with
This package works with Deno, BrowsersIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score94%
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

  • 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.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/webgpu

Import symbol

import * as mod from "@std/webgpu/describe_texture_format";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/webgpu/describe_texture_format";