mirror of
https://github.com/visgl/luma.gl.git
synced 2026-01-25 14:08:58 +00:00
386 B
386 B
Shader Parsing
It is sometimes useful to be able to inspect shader source code
Functions
getShaderInfo
Returns information extracted from shader source code
function getShaderInfo(shaderSource: string): {
name: string;
language: 'glsl' | 'wgsl';
version: number;
}
Returns:
namelanguage:'glsl'version: GLSL version e.g. 130 or 300