(
gl: WebGLRenderingContext, program: WebGLProgram)
| 164 | /// So make sure we set up all vertex/texture/sampler/uniform data before |
| 165 | /// calling validateProgram! |
| 166 | export function validateProgram( |
| 167 | gl: WebGLRenderingContext, program: WebGLProgram) { |
| 168 | callAndCheck(gl, () => gl.validateProgram(program)); |
| 169 | if (gl.getProgramParameter(program, gl.VALIDATE_STATUS) === false) { |
| 170 | console.log(gl.getProgramInfoLog(program)); |
| 171 | throw new Error('Shader program validation failed.'); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | export function createStaticVertexBuffer( |
| 176 | gl: WebGLRenderingContext, data: Float32Array): WebGLBuffer { |
nothing calls this directly
no test coverage detected
searching dependent graphs…