WebGpuNativeBindings

Helpers & Utilities · AiDotNet.Tensors.Engines.DirectGpu.WebGpu

No summary documentation available yet.

Methods

Method Summary
IntPtr wgpuCreateInstance(IntPtr descriptor)
Task DispatchComputeAsync(int pipelineId, int bindGroupId, int workgroupsX, int workgroupsY, int workgroupsZ)
Task DispatchComputeChainWithUniformsAsync(int[] pipelineIds, int[] bindGroupIds, int[] uniformBufferIds, int[] workgroupsX)
Task DispatchComputeWithUniformsAsync(int pipelineId, int bindGroupId, int uniformBufferId, int workgroupsX, int workgroupsY, int workgroupsZ)
Task SubmitAndWaitAsync()
Task<bool> InitializeWebGpuAsync()
Task<byte[]> ReadByteBufferAsync(int bufferId, int sizeBytes, int offsetBytes)
Task<double> ReadTimestampQueryAsync(int queryId)
Task<float[]> ReadBufferAsync(int bufferId, int sizeBytes, int offsetBytes)
Task<int> CreateComputePipelineAsync(int shaderModuleId, string entryPoint)
bool IsWebGpuSupported()
int CreateBindGroup(int pipelineId, int[] bufferIds)
int CreateBindGroupRanges(int pipelineId, int[] bufferIds, int[] offsetBytes, int[] sizeBytes)
int CreateBuffer(int sizeBytes, int usage)
int CreateShaderModule(string wgslSource)
int CreateTimestampQuery()
string GetAdapterInfo()
string GetDeviceLimitsJson()
void CopyBufferToBuffer(int srcBufferId, int srcOffset, int dstBufferId, int dstOffset, int sizeBytes)
void DestroyBindGroup(int bindGroupId)
void DestroyBuffer(int bufferId)
void DestroyDevice()
void DestroyPipeline(int pipelineId)
void DestroyShaderModule(int shaderModuleId)
void DestroyTimestampQuery(int queryId)
void WriteBuffer(int bufferId, float[] data, int offsetBytes)
void WriteByteBuffer(int bufferId, byte[] data, int offsetBytes)
void WriteTimestamp(int queryId, int index)
void wgpuInstanceRelease(IntPtr instance)