MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / createProgramWithVertex

Function createProgramWithVertex

packages/shader-transitions/src/webgl.ts:62–68  ·  view source on GitHub ↗
(
  gl: WebGLRenderingContext,
  vertexSrc: string,
  fragSrc: string,
)

Source from the content-addressed store, hash-verified

60}
61
62export function createProgramWithVertex(
63 gl: WebGLRenderingContext,
64 vertexSrc: string,
65 fragSrc: string,
66): WebGLProgram {
67 return linkProgram(gl, compileShader(gl, vertexSrc, gl.VERTEX_SHADER), fragSrc);
68}
69
70export interface AccentColors {
71 accent: [number, number, number];

Callers 1

initFunction · 0.85

Calls 2

linkProgramFunction · 0.85
compileShaderFunction · 0.70

Tested by

no test coverage detected