TgpuUniform
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:46
Extends
Section titled “Extends”TgpuBufferShorthandBase
<TData
>
Type Parameters
Section titled “Type Parameters”• TData extends BaseData
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly
[$internal]:true
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:15
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.[$internal]
$
readonly
$:InferGPU
<TData
>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:53
buffer
Section titled “buffer”
readonly
buffer:TgpuBuffer
<TData
> &UniformFlag
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:49
resourceType
Section titled “resourceType”
readonly
resourceType:"uniform"
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:48
readonly
value:InferGPU
<TData
>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:52
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label
):this
Defined in: packages/typegpu/src/shared/meta.ts:83
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.$name
read()
Section titled “read()”read():
Promise
<Infer
<TData
>>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:20
Returns
Section titled “Returns”Promise
<Infer
<TData
>>
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.read
write()
Section titled “write()”write(
data
):void
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:18
Parameters
Section titled “Parameters”Infer
<TData
>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.write
writePartial()
Section titled “writePartial()”writePartial(
data
):void
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:19
Parameters
Section titled “Parameters”InferPartial
<TData
>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.writePartial