Skip to content

TgpuGenericFn

A function wrapper that allows providing slot and accessor overrides for shellless functions

T extends AnyFn

TgpuGenericFn(…args): ReturnType<T>

A function wrapper that allows providing slot and accessor overrides for shellless functions

Parameters<T>

ReturnType<T>

packages/typegpu/src/core/function/tgpuFn.ts:113

readonly [$internal]: object

inner: T

packages/typegpu/src/core/function/tgpuFn.ts:107


readonly optional [$providing]: Providing

packages/typegpu/src/core/function/tgpuFn.ts:110


readonly resourceType: "generic-function"

packages/typegpu/src/core/function/tgpuFn.ts:111

$name(label): this

string

this

TgpuNamable.$name

packages/typegpu/src/shared/meta.ts:97


with<T>(slot, value): TgpuGenericFn

T

TgpuSlot<T>

Eventual<T>

TgpuGenericFn

Withable.with

packages/typegpu/src/core/root/rootTypes.ts:243

with<T>(accessor, value): TgpuGenericFn

T extends BaseData

TgpuAccessor<T>

In<NoInfer<T>>

TgpuGenericFn

Withable.with

packages/typegpu/src/core/root/rootTypes.ts:244

with<T>(accessor, value): TgpuGenericFn

T extends BaseData

TgpuMutableAccessor<T>

In<NoInfer<T>>

TgpuGenericFn

Withable.with

packages/typegpu/src/core/root/rootTypes.ts:248