MCPcopy Create free account
hub / github.com/Motion-Core/motion-gpu / assertCompilation

Function assertCompilation

packages/motion-gpu/src/lib/core/renderer.ts:342–405  ·  view source on GitHub ↗

* Throws when a shader module contains WGSL compilation errors.

(
	module: GPUShaderModule,
	options?: {
		lineMap?: ShaderLineMap;
		fragmentSource?: string;
		computeSource?: string;
		includeSources?: Record<string, string>;
		defineBlockSource?: string;
		materialSource?: {
			component?: string;
			file?: string;
			line?: number;
			column?: number;
			functionName?: string;
		} | null;
		runtimeContext?: ShaderCompilationRuntimeContext;
		errorPrefix?: string;
		shaderStage?: 'fragment' | 'compute';
	}
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Tested by

no test coverage detected