34 u32 geoShaderInputPermutation[2];
Result shaderProgramUse(shaderProgram_s *sp)
Same as shaderProgramConfigure, but always loading code/operand descriptors and uploading DVLE consta...
Result shaderProgramSetVsh(shaderProgram_s *sp, DVLE_s *dvle)
Sets the vertex shader of a shader program.
Result shaderProgramInit(shaderProgram_s *sp)
Initializes a shader program.
Result shaderProgramFree(shaderProgram_s *sp)
Frees a shader program.
Result shaderProgramSetGshInputPermutation(shaderProgram_s *sp, u64 permutation)
Configures the permutation of the input attributes of the geometry shader of a shader program.
Result shaderInstanceFree(shaderInstance_s *si)
Frees a shader instance.
Result shaderInstanceInit(shaderInstance_s *si, DVLE_s *dvle)
Initializes a shader instance.
Result shaderProgramSetGsh(shaderProgram_s *sp, DVLE_s *dvle, u8 stride)
Sets the geometry shader of a shader program.
Result shaderInstanceGetBool(shaderInstance_s *si, int id, bool *value)
Gets a bool uniform of a shader.
Result shaderProgramConfigure(shaderProgram_s *sp, bool sendVshCode, bool sendGshCode)
Configures the shader units to use the specified shader program.
Result shaderInstanceSetBool(shaderInstance_s *si, int id, bool value)
Sets a bool uniform of a shader.
s8 shaderInstanceGetUniformLocation(shaderInstance_s *si, const char *name)
Gets the location of a shader's uniform.
DVLE data.
Definition: shbin.h:74
Describes an instance of either a vertex or geometry shader.
Definition: shaderProgram.h:19
DVLE_s * dvle
Shader DVLE.
Definition: shaderProgram.h:20
u16 boolUniformMask
Used boolean uniform mask.
Definition: shaderProgram.h:22
u8 intUniformMask
Used integer uniform mask.
Definition: shaderProgram.h:25
u16 boolUniforms
Boolean uniforms.
Definition: shaderProgram.h:21
u8 numFloat24Uniforms
Float uniform count.
Definition: shaderProgram.h:26
float24Uniform_s * float24Uniforms
24-bit float uniforms.
Definition: shaderProgram.h:24
Describes an instance of a full shader program.
Definition: shaderProgram.h:31
shaderInstance_s * vertexShader
Vertex shader.
Definition: shaderProgram.h:32
shaderInstance_s * geometryShader
Geometry shader.
Definition: shaderProgram.h:33
u8 geoShaderInputStride
Geometry shader input stride.
Definition: shaderProgram.h:35
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
int8_t s8
8-bit signed integer
Definition: types.h:26
s32 Result
Function result.
Definition: types.h:42
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
uint32_t u32
32-bit unsigned integer
Definition: types.h:23