js
useProgram(program)
Parameters
program
A WebGLProgram
to use.
None (undefined
).
js
const program = gl.createProgram();
// Attach pre-existing shaders
gl.attachShader(program, vertexShader);
gl.attachShader(program, fragmentShader);
gl.linkProgram(program);
gl.useProgram(program);
Specifications Specification WebGL SpecificationLoadingâ¦
See alsoWebGLRenderingContext.createProgram()
WebGLRenderingContext.deleteProgram()
WebGLRenderingContext.isProgram()
WebGLRenderingContext.linkProgram()
WebGLRenderingContext.validateProgram()
WebGLRenderingContext.getProgramParameter()
WebGLRenderingContext.getProgramInfoLog()
Yes No
Learn how to contributeThis page was last modified on â¨Sep 28, 2024â© by MDN contributors.
View this page on GitHubâ¢
Report a problem with this contentRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.5