TgpuReadonly
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>
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.[$gpuValueOf]
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:30
[$internal]
Section titled “[$internal]”
readonly[$internal]:true
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.[$internal]
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:21
$
readonly$:InferGPU<TData>
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:52
buffer
Section titled “buffer”
readonlybuffer:TgpuBuffer<TData> &StorageFlag
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:48
resourceType
Section titled “resourceType”
readonlyresourceType:"readonly"
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:47
readonlyvalue:InferGPU<TData>
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:51
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”TgpuBufferShorthandBase.$name
Defined in
Section titled “Defined in”packages/typegpu/src/shared/meta.ts:87
read()
Section titled “read()”read():
Promise<Infer<TData>>
Returns
Section titled “Returns”Promise<Infer<TData>>
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.read
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:26
write()
Section titled “write()”write(
data):void
Parameters
Section titled “Parameters”Infer<TData>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.write
Defined in
Section titled “Defined in”packages/typegpu/src/core/buffer/bufferShorthand.ts:24
writePartial()
Section titled “writePartial()”writePartial(
data):void
Parameters
Section titled “Parameters”InferPartial<TData>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.writePartial