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

Method createShader

web/src/webgpu.ts:586–588  ·  view source on GitHub ↗

* Create a PackedFunc that runs the given shader * via createComputePipeline * * @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

584 * @returns The shader
585 */
586 createShader(finfo: FunctionInfo, code: string): Function {
587 return this.createShadeInternal(finfo, code, false) as Function;
588 }
589
590 /**
591 * Create a PackedFunc that runs the given shader asynchronously

Callers 1

initWebGPUMethod · 0.95

Calls 1

createShadeInternalMethod · 0.95

Tested by

no test coverage detected