TgpuMutable
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:24
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]
$
$:
InferGPU
<TData
>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:31
buffer
Section titled “buffer”
readonly
buffer:TgpuBuffer
<TData
> &StorageFlag
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:27
resourceType
Section titled “resourceType”
readonly
resourceType:"mutable"
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:26
value:
InferGPU
<TData
>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:30
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