Skip to content

TgpuSlot

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:9

  • TgpuNamable

T

readonly [$internal]: true

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:10


$

readonly $: GPUValueOf<T>

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:23


readonly defaultValue: undefined | T

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:13


readonly resourceType: "slot"

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:11


readonly value: GPUValueOf<T>

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:22

[$gpuValueOf](ctx): GPUValueOf<T>

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:21

ResolutionCtx

GPUValueOf<T>


$name(label): this

Defined in: packages/typegpu/src/shared/meta.ts:83

string

this

TgpuNamable.$name


areEqual(a, b): boolean

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:19

Used to determine if code generated using either value a or b in place of the slot will be equivalent. Defaults to Object.is.

T

T

boolean