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

Method createShaderAsync

web/src/webgpu.ts:598–600  ·  view source on GitHub ↗

* Create a PackedFunc that runs the given shader asynchronously * via createComputePipelineAsync * * @param finfo The function information already parsed as a record. * @param code The shader data(in WGSL) * @returns The shader

(finfo: FunctionInfo, code: string)

Source from the content-addressed store, hash-verified

596 * @returns The shader
597 */
598 async createShaderAsync(finfo: FunctionInfo, code: string): Promise<Function> {
599 return await (this.createShadeInternal(finfo, code, true) as Promise<Function>);
600 }
601
602 /**
603 * Get a uniform buffer from the per-dispatch pool.

Callers 1

Calls 1

createShadeInternalMethod · 0.95

Tested by

no test coverage detected