Skip to content

UWAL / TEXTURE

Type Aliases

Usage

ts
type Usage = Readonly<Record<"RENDER" | "STORAGE", GPUTextureUsageFlags>>;

Type Parameters

Type Parameter

Compare

ts
type Compare = 
  | "NEVER"
  | "LESS"
  | "EQUAL"
  | "LESS_EQUAL"
  | "GREATER"
  | "NOT_EQUAL"
  | "GREATER_EQUAL"
  | "ALWAYS";

Type Parameters

Type Parameter

Variables

USAGE

ts
const USAGE: Readonly<Record<"STORAGE" | "RENDER", number>>;

Some utility bitmasks of the GPUTextureUsage flags.

  • USAGE.RENDER is the default usage when creating a texture.
  • USAGE.STORAGE is the default usage when creating a storage texture.

ASPECT

ts
const ASPECT: Readonly<Record<"ALL" | "STENCIL" | "DEPTH", GPUTextureAspect>>;

Aliases for the GPUTextureAspect enum.


ADDRESS

ts
const ADDRESS: Readonly<Record<"CLAMP" | "REPEAT" | "MIRROR", GPUAddressMode>>;

Aliases for the GPUAddressMode enum.


FILTER

ts
const FILTER: Readonly<Record<"NEAREST" | "LINEAR", GPUFilterMode>>;

Aliases for the GPUFilterMode enum.


COMPARE

ts
const COMPARE: Readonly<Record<Compare, GPUCompareFunction>>;

Aliases for the GPUCompareFunction enum.

References

Address

Renames and re-exports Addresses


Filter

Renames and re-exports Filters

Released under the MIT License.