WebGpuBuffer
Models & Types · AiDotNet.Tensors.Engines.DirectGpu.WebGpu
No summary documentation available yet.
Implements: IGpuBuffer
Constructors
| Constructor | Summary |
|---|---|
WebGpuBuffer(float[] data, WebGpuBufferUsage usage) |
|
WebGpuBuffer(int elementCount, WebGpuBufferUsage usage) |
Properties
| Property | Summary |
|---|---|
IntPtr Handle { get; } |
|
WebGpuBufferUsage Usage { get; } |
|
bool IsValid { get; } |
|
int BufferId { get; } |
|
int ElementCount { get; } |
|
int OffsetBytes { get; } |
|
int Size { get; } |
|
int SizeBytes { get; } |
|
long SizeInBytes { get; } |
Methods
| Method | Summary |
|---|---|
Task CopyBytesToAsync(byte[] data) |
|
Task CopyToAsync(float[] data) |
|
Task<float[]> DownloadAsync() |
|
float[] Download() |
|
string ToString() |
|
void CopyBytesFrom(byte[] data) |
|
void CopyBytesTo(byte[] data) |
|
void CopyFrom(float[] data) |
|
void CopyFromBuffer(WebGpuBuffer source, int srcOffset, int dstOffset, int count) |
|
void CopyTo(float[] data) |
|
void Dispose() |