WebGLShaderModule

View source

WebGPU-shaped shader module wrapper for WebGL render pipeline setup.

The module owns a compiled WebGLShader and keeps the WebGL context that created it so the resource behaves like the other GPU-side wrappers.

Constructor


constructor ( context: WebGL2RenderingContext , inner: WebGLShader , stage: "vertex" | "fragment" , label?: string )

View source

Parameters

Name Description Default
context — —
inner — —
stage — —
label? — —

Properties


Methods