TgpuReadonly
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:35
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:42
buffer
Section titled “buffer”
readonly
buffer:TgpuBuffer
<TData
> &StorageFlag
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:38
resourceType
Section titled “resourceType”
readonly
resourceType:"readonly"
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:37
readonly
value:InferGPU
<TData
>
Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:41
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