TgpuGenericFn
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:88
A function wrapper that allows providing slot and accessor overrides for shellless functions
Extends
Section titled “Extends”TgpuNamable.Withable<TgpuGenericFn<T>>
Type Parameters
Section titled “Type Parameters”T extends AnyFn
TgpuGenericFn(…
args):ReturnType<T>
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:95
A function wrapper that allows providing slot and accessor overrides for shellless functions
Parameters
Section titled “Parameters”…Parameters<T>
Returns
Section titled “Returns”ReturnType<T>
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly[$internal]:object
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:89
inner:
T
[$providing]?
Section titled “[$providing]?”
readonlyoptional[$providing]:Providing
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:92
resourceType
Section titled “resourceType”
readonlyresourceType:"generic-function"
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:93
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Defined in: packages/typegpu/src/shared/meta.ts:97
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name
with()
Section titled “with()”Call Signature
Section titled “Call Signature”with<
T>(slot,value):TgpuGenericFn
Defined in: packages/typegpu/src/core/root/rootTypes.ts:197
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”TgpuSlot<T>
Eventual<T>
Returns
Section titled “Returns”TgpuGenericFn
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”with<
T>(accessor,value):TgpuGenericFn
Defined in: packages/typegpu/src/core/root/rootTypes.ts:198
Type Parameters
Section titled “Type Parameters”T extends BaseData
Parameters
Section titled “Parameters”accessor
Section titled “accessor”TgpuAccessor<T>
In<NoInfer>
Returns
Section titled “Returns”TgpuGenericFn
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”with<
T>(accessor,value):TgpuGenericFn
Defined in: packages/typegpu/src/core/root/rootTypes.ts:199
Type Parameters
Section titled “Type Parameters”T extends BaseData
Parameters
Section titled “Parameters”accessor
Section titled “accessor”In<NoInfer>
Returns
Section titled “Returns”TgpuGenericFn