TgpuGenericFn
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>
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>
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuFn.ts:113
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly[$internal]:object
inner:
T
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuFn.ts:107
[$providing]?
Section titled “[$providing]?”
readonlyoptional[$providing]:Providing
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuFn.ts:110
resourceType
Section titled “resourceType”
readonlyresourceType:"generic-function"
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuFn.ts:111
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name
Defined in
Section titled “Defined in”packages/typegpu/src/shared/meta.ts:97
with()
Section titled “with()”Call Signature
Section titled “Call Signature”with<
T>(slot,value):TgpuGenericFn
Type Parameters
Section titled “Type Parameters”• T
Parameters
Section titled “Parameters”TgpuSlot<T>
Eventual<T>
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Defined in
Section titled “Defined in”packages/typegpu/src/core/root/rootTypes.ts:243
Call Signature
Section titled “Call Signature”with<
T>(accessor,value):TgpuGenericFn
Type Parameters
Section titled “Type Parameters”• T extends BaseData
Parameters
Section titled “Parameters”accessor
Section titled “accessor”TgpuAccessor<T>
In<NoInfer<T>>
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Defined in
Section titled “Defined in”packages/typegpu/src/core/root/rootTypes.ts:244
Call Signature
Section titled “Call Signature”with<
T>(accessor,value):TgpuGenericFn
Type Parameters
Section titled “Type Parameters”• T extends BaseData
Parameters
Section titled “Parameters”accessor
Section titled “accessor”In<NoInfer<T>>