(gl: WebGLRenderingContext)
| 143 | } |
| 144 | |
| 145 | export function createProgram(gl: WebGLRenderingContext): WebGLProgram { |
| 146 | return throwIfNull<WebGLProgram>( |
| 147 | gl, () => gl.createProgram(), 'Unable to create WebGLProgram.'); |
| 148 | } |
| 149 | |
| 150 | export function linkProgram(gl: WebGLRenderingContext, program: WebGLProgram) { |
| 151 | callAndCheck(gl, () => gl.linkProgram(program)); |
nothing calls this directly
no test coverage detected
searching dependent graphs…