MCPcopy Index your code
hub / github.com/apache/tvm / gpuBufferFromPtr

Method gpuBufferFromPtr

web/src/webgpu.ts:1055–1059  ·  view source on GitHub ↗
(ptr: GPUPointer)

Source from the content-addressed store, hash-verified

1053 }
1054
1055 private gpuBufferFromPtr(ptr: GPUPointer): GPUBuffer {
1056 const buffer = this.bufferTable[ptr];
1057 assert(buffer !== undefined);
1058 return buffer;
1059 }
1060
1061 private attachToBufferTable(buffer: GPUBuffer): GPUPointer {
1062 if (this.bufferTableFreeId.length != 0) {

Callers 6

drawImageFromBufferMethod · 0.95
copyRawBytesToBufferMethod · 0.95
submitShaderMethod · 0.95
deviceCopyToGPUMethod · 0.95
deviceCopyFromGPUMethod · 0.95
deviceCopyWithinGPUMethod · 0.95

Calls 1

assertFunction · 0.90

Tested by

no test coverage detected