TgpuUniform
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:57
Extends
Section titled “Extends”TgpuBufferShorthandBase<TData>
Type Parameters
Section titled “Type Parameters”TData extends BaseData
Properties
Section titled “Properties”[$gpuValueOf]
Section titled “[$gpuValueOf]”
readonly[$gpuValueOf]:InferGPU<TData>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:27
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.[$gpuValueOf]
[$internal]
Section titled “[$internal]”
readonly[$internal]:true
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:16
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.[$internal]
$
readonly$:InferGPU<TData>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:66
buffer
Section titled “buffer”
readonlybuffer:TgpuBuffer<TData> &UniformFlag
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:59
resourceType
Section titled “resourceType”
readonlyresourceType:"uniform"
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:58
readonlyvalue:InferGPU<TData>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:65
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”TgpuBufferShorthandBase.$name
patch()
Section titled “patch()”patch(
data):void
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:22
Parameters
Section titled “Parameters”InferPatch<TData>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.patch
read()
Section titled “read()”read():
Promise<Infer<TData>>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:23
Returns
Section titled “Returns”Promise<Infer<TData>>
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.read
write()
Section titled “write()”write(
data,options?):void
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:19
Parameters
Section titled “Parameters”InferInput<TData>
options?
Section titled “options?”BufferWriteOptions
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:21
Parameters
Section titled “Parameters”InferPartial<TData>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.writePartial