Compiler Configuration in PVRShaderEditor

The compiler configuration area of the GUI allows the selection and configuration of the compiler which will be used to compile the currently open shader file

This area is used to modify the settings of the profiling compiler.

There are a couple of settings available:

Selecting a shader type

The dropdown box called Shader type can be used to select how the currently opened should be interpreted by the compiler.

The most useful options are:

  • Vertex - This file should be interpreted as a vertex shader.
  • Fragment - This file should be interpreted as a fragment shader.
  • Compute - This file should be interpreted as a compute shader.
  • Geometry - This file should be interpreted as a geometry shader.
  • Opencl - This file should be interpreted as an OpenCL kernel
  • PFX - This file should be interpreted as PowerVR Effects file

The choices of compilers available depends on the choice of Shader type

Selecting a compiler

The profiling compiler can be changed by either selecting a compiler from the Compiler dropdown menu or selecting the gear icon to open the Select Compiler window and choosing from dropdown menu at the top.

The available options are:
  • PowerVR Series 6 - This is a compiler for PowerVR Rogue architecture, which includes PowerVR Series6 to PowerVR Series8XE.
  • PowerVR Series 5XT - This is a compiler for PowerVR SGX architecture and PowerVR Series 5XT in particular.
  • PowerVR Series 5 - This is a compiler for PowerVR SGX architecture and PowerVR Series 5XT in particular.
  • Khronos Reference Compiler - This is a compiler for GLSL and HLSL and can be used to generate SPIR-V.
  • PowerVR Rogue OCL - This is a compiler for PowerVR Rogue architecture, and is specifically used to compile OpenCL kernels. This compiler is only available when the Shader Type is set to either Opencl or PFX.

The Select Compiler window also contains some individual options for each compiler:

  • For all of the PowerVR compilers, profiling can be toggled on or off. When this option is off the amount of profiling information generated is reduced, in particular cycle count estimates.

  • For the PowerVR Series6 compiler, generation of disassembly code can be toggled with the Enable disassembly checkbox.

  • For the PowerVR Series 5 and Series 5XT compilers, the option Enable perf sim can be used toggle the generation of all profiling information.

  • For the Khronos Reference Compiler, the Compile as SPIR-V option allows the toggling of human-readable SPIR-V output in the disassembly panel and the Input is GLSL option can be used to indicate whether the file is GLSL or not.

  • Finally, the Use custom compiler path at: option can be used to select the path of an executable which will be run in place of the built-in executable but under the same syntax as the selected family.