linkProgram()
ts
function linkProgram(gl, program): WebGLProgram;Defined in: createProgram.js:56
Links a program created by createProgram. Throws with the link log on failure. The shaders are freed once the program has linked.
Parameters
| Parameter | Type | Description |
|---|---|---|
gl | WebGL2RenderingContext | The WebGL2 context. |
program | WebGLProgram | - |
Returns
WebGLProgram
The same program.