Skip to content

TgpuMutable

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:31

  • TgpuBufferShorthandBase<TData>

TData extends BaseData

readonly [$gpuValueOf]: InferGPU<TData>

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:27

TgpuBufferShorthandBase.[$gpuValueOf]


readonly [$internal]: true

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:16

TgpuBufferShorthandBase.[$internal]


$

$: InferGPU<TData>

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:40


readonly buffer: TgpuBuffer<TData> & StorageFlag

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:33


readonly resourceType: "mutable"

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:32


value: InferGPU<TData>

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:39

$name(label): this

Defined in: packages/typegpu/src/shared/meta.ts:97

string

this

TgpuBufferShorthandBase.$name


patch(data): void

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:22

InferPatch<TData>

void

TgpuBufferShorthandBase.patch


read(): Promise<Infer<TData>>

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:23

Promise<Infer<TData>>

TgpuBufferShorthandBase.read


write(data, options?): void

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:19

InferInput<TData>

BufferWriteOptions

void

TgpuBufferShorthandBase.write


writePartial(data): void

Defined in: packages/typegpu/src/core/buffer/bufferShorthand.ts:21

InferPartial<TData>

void

TgpuBufferShorthandBase.writePartial