Skip to content

UWAL / TEXTURE

Type Aliases

Usage

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

Type Parameters

Type Parameter

Address

ts
type Address = Readonly<Record<"CLAMP" | "REPEAT" | "MIRROR", GPUAddressMode>>;

Type Parameters

Type Parameter

Filter

ts
type Filter = Readonly<Record<"NEAREST" | "LINEAR", GPUFilterMode>>;

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>>;

Alias

GPUTextureAspect


ADDRESS

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

Alias

GPUAddressMode


FILTER

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

Alias

GPUFilterMode


COMPARE

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

Alias

GPUCompareFunction

Released under the MIT License.