TgpuMutable
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:32
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:19
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.[$internal]
$
$:
InferGPU<TData>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:39
buffer
Section titled “buffer”
readonlybuffer:TgpuBuffer<TData> &StorageFlag
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:35
resourceType
Section titled “resourceType”
readonlyresourceType:"mutable"
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:34
value:
InferGPU<TData>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:38
Methods
Section titled “Methods”[$gpuValueOf]()
Section titled “[$gpuValueOf]()”[$gpuValueOf](
ctx):InferGPU<TData>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:28
Parameters
Section titled “Parameters”ResolutionCtx
Returns
Section titled “Returns”InferGPU<TData>
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.[$gpuValueOf]
$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:24
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:22
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:23
Parameters
Section titled “Parameters”InferPartial<TData>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TgpuBufferShorthandBase.writePartial