Skip to content

Glsl_program_attach

hpgDesigns edited this page Aug 8, 2021 · 1 revision

Notation

Description

NOTE: Shader programs must be attached to shaders before they are linked and compiled, and they must be linked and validated before they can be used. Attaches a given shader to a given shader program.

Parameters

  • id: index of the shader program
  • sid: index of the shader

Return Values

none: This function has no return values.

Example Call

// demonstrates attaching a shader to a shader program
shader_program_attach(myshpr, mysh);

NOTOC

Category:Function:All

This is number 1

Clone this wiki locally