Working with Programs

CodeXL

PreviousNext
CodeXL User Guide
Help > Tutorials > Static Analyzer Tutorial > Working with Programs
Working with Programs

After creating a new program, you will see that it contains an empty placeholder for every pipeline stage. Right-click on any stage to add an existing shader or create a new one:

 

Note: You can also double-click on a stage to create a new shader and automatically attach it to that Program’s stage.

As you can see in the above screenshot, we attached SimpleVertexShader.vs as the vertex shader to our OpenGL Rendering Program, and it was also automatically added to the Source Files pool. We can now drag SimpleVertexShader.vs from the Source Files pool and drop it on the stage node of any Program that we may add to the project, to reuse SimpleVertexShader.vs (there is no dependency in the build process between different Programs).

To build the program, right-click on it and select the Build option, or use the F7 shortcut:

 

You can also select the Program and manually click on the Build button in the Analyzer toolbar: