Add files
This commit is contained in:
commit
77bde04db3
97 changed files with 10327 additions and 0 deletions
7
src/graphics/graphics-library/compiling/check-shader.ts
Normal file
7
src/graphics/graphics-library/compiling/check-shader.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export const checkShader = (gl: WebGL2RenderingContext, shader: WebGLShader) => {
|
||||
const success = gl.getShaderParameter(shader, gl.COMPILE_STATUS);
|
||||
|
||||
if (!success) {
|
||||
throw new Error(gl.getShaderInfoLog(shader)!);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue