(
gl: WebGLRenderingContext, texture: WebGLTexture,
uniformSamplerLocation: WebGLUniformLocation, textureUnit: number)
| 272 | } |
| 273 | |
| 274 | export function bindTextureToProgramUniformSampler( |
| 275 | gl: WebGLRenderingContext, texture: WebGLTexture, |
| 276 | uniformSamplerLocation: WebGLUniformLocation, textureUnit: number) { |
| 277 | callAndCheck(gl, () => bindTextureUnit(gl, texture, textureUnit)); |
| 278 | callAndCheck(gl, () => gl.uniform1i(uniformSamplerLocation, textureUnit)); |
| 279 | } |
| 280 | |
| 281 | export function bindCanvasToFramebuffer(gl: WebGLRenderingContext) { |
| 282 | callAndCheck(gl, () => gl.bindFramebuffer(gl.FRAMEBUFFER, null)); |
nothing calls this directly
no test coverage detected
searching dependent graphs…