From: TravisCI-DocBuilder Date: Fri, 20 Nov 2015 23:50:29 +0000 (+0000) Subject: Doc generated from commit 59231120822511a1c760dd09f6c39e22daeeda05 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=59f06873409e4b65f4bff2c48e8990a7edc50ac9;p=corbenik%2Fctrulib.git Doc generated from commit 59231120822511a1c760dd09f6c39e22daeeda05 --- diff --git a/dir_0f128149b5f0edcc1e84fa1d13781a04.html b/dir_0f128149b5f0edcc1e84fa1d13781a04.html index e0c03c4..4ee5345 100644 --- a/dir_0f128149b5f0edcc1e84fa1d13781a04.html +++ b/dir_0f128149b5f0edcc1e84fa1d13781a04.html @@ -100,6 +100,7 @@ Files  GX commands.
  file  registers.h [code] + GPU registers.
  file  shaderProgram.h [code]  Functions for working with shaders.
diff --git a/files.html b/files.html index 8209f0e..9681207 100644 --- a/files.html +++ b/files.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  gpu-old.hDeprecated GPU functions which should not be used in new code  gpu.hBarebones GPU communications driver  gx.hGX commands - registers.h + registers.hGPU registers  shaderProgram.hFunctions for working with shaders  shbin.hShader binary support   ndsp diff --git a/functions_b.html b/functions_b.html index 9cc0980..abe71f8 100644 --- a/functions_b.html +++ b/functions_b.html @@ -131,6 +131,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • block_alignment : Y2RU_ConversionParams
  • +
  • boolUniformMask +: shaderInstance_s +
  • boolUniforms : shaderInstance_s
  • diff --git a/functions_g.html b/functions_g.html index f59ad58..23137df 100644 --- a/functions_g.html +++ b/functions_g.html @@ -124,8 +124,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • geometryShader : shaderProgram_s
  • -
  • geometryShaderInputStride -: shaderProgram_s +
  • geoShaderInputPermutation +: shaderProgram_s +
  • +
  • geoShaderInputStride +: shaderProgram_s
  • gfx : ConsoleFont diff --git a/functions_i.html b/functions_i.html index 69190f0..bec0ac9 100644 --- a/functions_i.html +++ b/functions_i.html @@ -150,6 +150,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • input_type : MVDSTD_Config
  • +
  • intUniformMask +: shaderInstance_s +
  • intUniforms : shaderInstance_s
  • diff --git a/functions_vars_b.html b/functions_vars_b.html index 2b0ac98..7dcd7bd 100644 --- a/functions_vars_b.html +++ b/functions_vars_b.html @@ -131,6 +131,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • block_alignment : Y2RU_ConversionParams
  • +
  • boolUniformMask +: shaderInstance_s +
  • boolUniforms : shaderInstance_s
  • diff --git a/functions_vars_g.html b/functions_vars_g.html index 407d15e..9160f7d 100644 --- a/functions_vars_g.html +++ b/functions_vars_g.html @@ -124,8 +124,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • geometryShader : shaderProgram_s
  • -
  • geometryShaderInputStride -: shaderProgram_s +
  • geoShaderInputPermutation +: shaderProgram_s +
  • +
  • geoShaderInputStride +: shaderProgram_s
  • gfx : ConsoleFont diff --git a/functions_vars_i.html b/functions_vars_i.html index bc5a673..dcd7ec4 100644 --- a/functions_vars_i.html +++ b/functions_vars_i.html @@ -150,6 +150,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • input_type : MVDSTD_Config
  • +
  • intUniformMask +: shaderInstance_s +
  • intUniforms : shaderInstance_s
  • diff --git a/globals_func_s.html b/globals_func_s.html index 33a3476..6b2198d 100644 --- a/globals_func_s.html +++ b/globals_func_s.html @@ -133,7 +133,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : shaderProgram.h
  • shaderInstanceGetUniformLocation() -: shaderProgram.h +: shaderProgram.h
  • shaderInstanceInit() : shaderProgram.h @@ -141,6 +141,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • shaderInstanceSetBool() : shaderProgram.h
  • +
  • shaderProgramConfigure() +: shaderProgram.h +
  • shaderProgramFree() : shaderProgram.h
  • @@ -150,6 +153,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • shaderProgramSetGsh() : shaderProgram.h
  • +
  • shaderProgramSetGshInputPermutation() +: shaderProgram.h +
  • shaderProgramSetVsh() : shaderProgram.h
  • diff --git a/globals_s.html b/globals_s.html index 6404530..07a88fb 100644 --- a/globals_s.html +++ b/globals_s.html @@ -185,7 +185,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : shaderProgram.h
  • shaderInstanceGetUniformLocation() -: shaderProgram.h +: shaderProgram.h
  • shaderInstanceInit() : shaderProgram.h @@ -193,6 +193,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • shaderInstanceSetBool() : shaderProgram.h
  • +
  • shaderProgramConfigure() +: shaderProgram.h +
  • shaderProgramFree() : shaderProgram.h
  • @@ -202,6 +205,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • shaderProgramSetGsh() : shaderProgram.h
  • +
  • shaderProgramSetGshInputPermutation() +: shaderProgram.h +
  • shaderProgramSetVsh() : shaderProgram.h
  • diff --git a/gpu_8h_source.html b/gpu_8h_source.html index 6cbb534..05d602c 100644 --- a/gpu_8h_source.html +++ b/gpu_8h_source.html @@ -202,7 +202,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    void GPUCMD_SetBufferOffset(u32 offset)
    Sets the offset of the GPU command buffer.
    void GPUCMD_AddRawCommands(u32 *cmd, u32 size)
    Adds raw GPU commands to the current command buffer.
    void GPUCMD_GetBuffer(u32 **adr, u32 *size, u32 *offset)
    Gets the current GPU command buffer.
    -
    +
    GPU registers.
    static void GPUCMD_AddSingleParam(u32 header, u32 param)
    Adds a command with a single parameter to the current command buffer.
    Definition: gpu.h:92
    void GPUCMD_Add(u32 header, u32 *param, u32 paramlength)
    Adds a GPU command to the current command buffer.
    u32 f32tof31(float f)
    Converts a 32-bit float to a 31-bit float.
    diff --git a/graphics_2gpu_2geoshader_2source_2main_8c-example.html b/graphics_2gpu_2geoshader_2source_2main_8c-example.html index ee2a8b1..defa173 100644 --- a/graphics_2gpu_2geoshader_2source_2main_8c-example.html +++ b/graphics_2gpu_2geoshader_2source_2main_8c-example.html @@ -586,7 +586,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    shaderProgramSetGsh(&program, &gshader_dvlb->DVLE[0], 6);
    // Get the location of the projection matrix uniform
    -
    uLoc_projection = shaderInstanceGetUniformLocation(program.geometryShader, "projection");
    +
    uLoc_projection = shaderInstanceGetUniformLocation(program.geometryShader, "projection");
    // Compute the projection matrix
    m4x4_ortho_tilt(&projection, 0.0, 400.0, 0.0, 240.0, 0.0, 1.0);
    diff --git a/graphics_2gpu_2simple_tri_2source_2main_8c-example.html b/graphics_2gpu_2simple_tri_2source_2main_8c-example.html index 475275a..f8b4c89 100644 --- a/graphics_2gpu_2simple_tri_2source_2main_8c-example.html +++ b/graphics_2gpu_2simple_tri_2source_2main_8c-example.html @@ -499,7 +499,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    shaderProgramSetVsh(&program, &vshader_dvlb->DVLE[0]);
    // Get the location of the projection matrix uniform
    -
    uLoc_projection = shaderInstanceGetUniformLocation(program.vertexShader, "projection");
    +
    uLoc_projection = shaderInstanceGetUniformLocation(program.vertexShader, "projection");
    // Compute the projection matrix
    m4x4_ortho_tilt(&projection, 0.0, 400.0, 0.0, 240.0, 0.0, 1.0);
    diff --git a/graphics_2gpu_2textured_cube_2source_2main_8c-example.html b/graphics_2gpu_2textured_cube_2source_2main_8c-example.html index a94158e..24b5f16 100644 --- a/graphics_2gpu_2textured_cube_2source_2main_8c-example.html +++ b/graphics_2gpu_2textured_cube_2source_2main_8c-example.html @@ -626,12 +626,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    shaderProgramSetVsh(&program, &vshader_dvlb->DVLE[0]);
    // Get the location of the uniforms
    -
    uLoc_projection = shaderInstanceGetUniformLocation(program.vertexShader, "projection");
    -
    uLoc_modelView = shaderInstanceGetUniformLocation(program.vertexShader, "modelView");
    -
    uLoc_lightVec = shaderInstanceGetUniformLocation(program.vertexShader, "lightVec");
    -
    uLoc_lightHalfVec = shaderInstanceGetUniformLocation(program.vertexShader, "lightHalfVec");
    -
    uLoc_lightClr = shaderInstanceGetUniformLocation(program.vertexShader, "lightClr");
    -
    uLoc_material = shaderInstanceGetUniformLocation(program.vertexShader, "material");
    +
    uLoc_projection = shaderInstanceGetUniformLocation(program.vertexShader, "projection");
    +
    uLoc_modelView = shaderInstanceGetUniformLocation(program.vertexShader, "modelView");
    +
    uLoc_lightVec = shaderInstanceGetUniformLocation(program.vertexShader, "lightVec");
    +
    uLoc_lightHalfVec = shaderInstanceGetUniformLocation(program.vertexShader, "lightHalfVec");
    +
    uLoc_lightClr = shaderInstanceGetUniformLocation(program.vertexShader, "lightClr");
    +
    uLoc_material = shaderInstanceGetUniformLocation(program.vertexShader, "material");
    // Compute the projection matrix
    m4x4_persp_tilt(&projection, 80.0f*M_PI/180.0f, 400.0f/240.0f, 0.01f, 1000.0f);
    diff --git a/registers_8h.html b/registers_8h.html index a005c86..ee203df 100644 --- a/registers_8h.html +++ b/registers_8h.html @@ -91,6 +91,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    +

    GPU registers. +More...

    +

    Go to the source code of this file.

    @@ -3002,12 +3005,7 @@ Macros

     

    Detailed Description

    -
    Parameters
    - - -
    GPUregisters.
    -
    -
    +

    GPU registers.

    Macro Definition Documentation

    diff --git a/registers_8h_source.html b/registers_8h_source.html index 46d3820..884c1d7 100644 --- a/registers_8h_source.html +++ b/registers_8h_source.html @@ -92,7 +92,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    Go to the documentation of this file.
    1 /**
    2  * @file registers.h
    -
    3  * @param GPU registers.
    +
    3  * @description GPU registers.
    4  */
    5 #pragma once
    6 
    diff --git a/shaderProgram_8h.html b/shaderProgram_8h.html index 967a253..9ce2a68 100644 --- a/shaderProgram_8h.html +++ b/shaderProgram_8h.html @@ -127,9 +127,9 @@ Functions Result shaderInstanceGetBool (shaderInstance_s *si, int id, bool *value)  Gets a bool uniform of a shader. More...
      -Result shaderInstanceGetUniformLocation (shaderInstance_s *si, const char *name) - Gets the location of a shader's uniform. More...
    -  +s8 shaderInstanceGetUniformLocation (shaderInstance_s *si, const char *name) + Gets the location of a shader's uniform. More...
    Result shaderProgramInit (shaderProgram_s *sp)  Initializes a shader program. More...
      @@ -142,8 +142,14 @@ Functions Result shaderProgramSetGsh (shaderProgram_s *sp, DVLE_s *dvle, u8 stride)  Sets the geometry shader of a shader program. More...
      +Result shaderProgramSetGshInputPermutation (shaderProgram_s *sp, u64 permutation) + Configures the permutation of the input attributes of the geometry shader of a shader program. More...
    +  +Result shaderProgramConfigure (shaderProgram_s *sp, bool sendVshCode, bool sendGshCode) + Configures the shader units to use the specified shader program. More...
    Result shaderProgramUse (shaderProgram_s *sp) - Sets the active shader program. More...
    + Same as shaderProgramConfigure, but always loading code/operand descriptors and uploading DVLE constants afterwards. More...
     

    Detailed Description

    @@ -215,12 +221,12 @@ Functions
    - +
    - + @@ -326,6 +332,48 @@ Functions + + + +
    +
    +
    Result shaderInstanceGetUniformLocation s8 shaderInstanceGetUniformLocation ( shaderInstance_s si,
    + + + + + + + + + + + + + + + + + + + + + + + +
    Result shaderProgramConfigure (shaderProgram_ssp,
    bool sendVshCode,
    bool sendGshCode 
    )
    +
    + +

    Configures the shader units to use the specified shader program.

    +
    Parameters
    + + + + +
    spShader program to use.
    sendVshCodeWhen true, the vertex shader's code and operand descriptors are uploaded.
    sendGshCodeWhen true, the geometry shader's code and operand descriptors are uploaded.
    +
    +
    +
    @@ -419,6 +467,41 @@ Functions
    Examples:
    graphics/gpu/geoshader/source/main.c.
    +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    Result shaderProgramSetGshInputPermutation (shaderProgram_ssp,
    u64 permutation 
    )
    +
    + +

    Configures the permutation of the input attributes of the geometry shader of a shader program.

    +
    Parameters
    + + + +
    spShader program to use.
    permutationAttribute permutation to use.
    +
    +
    +
    @@ -471,7 +554,7 @@ Functions
    -

    Sets the active shader program.

    +

    Same as shaderProgramConfigure, but always loading code/operand descriptors and uploading DVLE constants afterwards.

    Parameters
    diff --git a/shaderProgram_8h_source.html b/shaderProgram_8h_source.html index b7dc51a..f87d1fc 100644 --- a/shaderProgram_8h_source.html +++ b/shaderProgram_8h_source.html @@ -111,87 +111,106 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    19 {
    20  DVLE_s* dvle; ///< Shader DVLE.
    21  u16 boolUniforms; ///< Boolean uniforms.
    -
    22  u32 intUniforms[4]; ///< Integer uniforms.
    -
    23  float24Uniform_s* float24Uniforms; ///< 24-bit float uniforms.
    -
    24  u8 numFloat24Uniforms; ///< Float uniform count.
    - -
    26 
    -
    27 /// Describes an instance of a full shader program.
    -
    28 typedef struct
    -
    29 {
    -
    30  shaderInstance_s* vertexShader; ///< Vertex shader.
    -
    31  shaderInstance_s* geometryShader; ///< Geometry shader.
    -
    32  u8 geometryShaderInputStride; ///< Geometry shader input stride.
    - -
    34 
    -
    35 /**
    -
    36  * @brief Initializes a shader instance.
    -
    37  * @param si Shader instance to initialize.
    -
    38  * @param dvle DVLE to initialize the shader instance with.
    -
    39  */
    - -
    41 
    -
    42 /**
    -
    43  * @brief Frees a shader instance.
    -
    44  * @param si Shader instance to free.
    -
    45  */
    - -
    47 
    -
    48 /**
    -
    49  * @brief Sets a bool uniform of a shader.
    -
    50  * @param si Shader instance to use.
    -
    51  * @param id ID of the bool uniform.
    -
    52  * @param value Value to set.
    -
    53  */
    -
    54 Result shaderInstanceSetBool(shaderInstance_s* si, int id, bool value);
    -
    55 
    -
    56 /**
    -
    57  * @brief Gets a bool uniform of a shader.
    -
    58  * @param si Shader instance to use.
    -
    59  * @param id ID of the bool uniform.
    -
    60  * @param value Pointer to output the value to.
    -
    61  */
    -
    62 Result shaderInstanceGetBool(shaderInstance_s* si, int id, bool* value);
    -
    63 
    -
    64 /**
    -
    65  * @brief Gets the location of a shader's uniform.
    -
    66  * @param si Shader instance to use.
    -
    67  * @param name Name of the uniform.
    -
    68  */
    - -
    70 
    -
    71 /**
    -
    72  * @brief Initializes a shader program.
    -
    73  * @param sp Shader program to initialize.
    -
    74  */
    - -
    76 
    -
    77 /**
    -
    78  * @brief Frees a shader program.
    -
    79  * @param sp Shader program to free.
    -
    80  */
    - -
    82 
    -
    83 /**
    -
    84  * @brief Sets the vertex shader of a shader program.
    -
    85  * @param sp Shader program to use.
    -
    86  * @param dvle Vertex shader to set.
    -
    87  */
    - -
    89 
    -
    90 /**
    -
    91  * @brief Sets the geometry shader of a shader program.
    -
    92  * @param sp Shader program to use.
    -
    93  * @param dvle Geometry shader to set.
    -
    94  * @param stride Stride of the geometry shader.
    -
    95  */
    - -
    97 
    -
    98 /**
    -
    99  * @brief Sets the active shader program.
    -
    100  * @param sp Shader program to use.
    -
    101  */
    - +
    22  u16 boolUniformMask; ///< Used boolean uniform mask.
    +
    23  u32 intUniforms[4]; ///< Integer uniforms.
    +
    24  float24Uniform_s* float24Uniforms; ///< 24-bit float uniforms.
    +
    25  u8 intUniformMask; ///< Used integer uniform mask.
    +
    26  u8 numFloat24Uniforms; ///< Float uniform count.
    + +
    28 
    +
    29 /// Describes an instance of a full shader program.
    +
    30 typedef struct
    +
    31 {
    +
    32  shaderInstance_s* vertexShader; ///< Vertex shader.
    +
    33  shaderInstance_s* geometryShader; ///< Geometry shader.
    +
    34  u32 geoShaderInputPermutation[2]; ///< Geometry shader input permutation.
    +
    35  u8 geoShaderInputStride; ///< Geometry shader input stride.
    + +
    37 
    +
    38 /**
    +
    39  * @brief Initializes a shader instance.
    +
    40  * @param si Shader instance to initialize.
    +
    41  * @param dvle DVLE to initialize the shader instance with.
    +
    42  */
    + +
    44 
    +
    45 /**
    +
    46  * @brief Frees a shader instance.
    +
    47  * @param si Shader instance to free.
    +
    48  */
    + +
    50 
    +
    51 /**
    +
    52  * @brief Sets a bool uniform of a shader.
    +
    53  * @param si Shader instance to use.
    +
    54  * @param id ID of the bool uniform.
    +
    55  * @param value Value to set.
    +
    56  */
    +
    57 Result shaderInstanceSetBool(shaderInstance_s* si, int id, bool value);
    +
    58 
    +
    59 /**
    +
    60  * @brief Gets a bool uniform of a shader.
    +
    61  * @param si Shader instance to use.
    +
    62  * @param id ID of the bool uniform.
    +
    63  * @param value Pointer to output the value to.
    +
    64  */
    +
    65 Result shaderInstanceGetBool(shaderInstance_s* si, int id, bool* value);
    +
    66 
    +
    67 /**
    +
    68  * @brief Gets the location of a shader's uniform.
    +
    69  * @param si Shader instance to use.
    +
    70  * @param name Name of the uniform.
    +
    71  */
    + +
    73 
    +
    74 /**
    +
    75  * @brief Initializes a shader program.
    +
    76  * @param sp Shader program to initialize.
    +
    77  */
    + +
    79 
    +
    80 /**
    +
    81  * @brief Frees a shader program.
    +
    82  * @param sp Shader program to free.
    +
    83  */
    + +
    85 
    +
    86 /**
    +
    87  * @brief Sets the vertex shader of a shader program.
    +
    88  * @param sp Shader program to use.
    +
    89  * @param dvle Vertex shader to set.
    +
    90  */
    + +
    92 
    +
    93 /**
    +
    94  * @brief Sets the geometry shader of a shader program.
    +
    95  * @param sp Shader program to use.
    +
    96  * @param dvle Geometry shader to set.
    +
    97  * @param stride Stride of the geometry shader.
    +
    98  */
    + +
    100 
    +
    101 /**
    +
    102  * @brief Configures the permutation of the input attributes of the geometry shader of a shader program.
    +
    103  * @param sp Shader program to use.
    +
    104  * @param permutation Attribute permutation to use.
    +
    105  */
    + +
    107 
    +
    108 /**
    +
    109  * @brief Configures the shader units to use the specified shader program.
    +
    110  * @param sp Shader program to use.
    +
    111  * @param sendVshCode When true, the vertex shader's code and operand descriptors are uploaded.
    +
    112  * @param sendGshCode When true, the geometry shader's code and operand descriptors are uploaded.
    +
    113  */
    +
    114 Result shaderProgramConfigure(shaderProgram_s* sp, bool sendVshCode, bool sendGshCode);
    +
    115 
    +
    116 /**
    +
    117  * @brief Same as shaderProgramConfigure, but always loading code/operand descriptors and uploading DVLE constants afterwards.
    +
    118  * @param sp Shader program to use.
    +
    119  */
    + +
    int8_t s8
    8-bit signed integer
    Definition: types.h:26
    Various system types.
    s32 Result
    Function result.
    Definition: types.h:42
    Shader binary support.
    @@ -199,27 +218,32 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    uint16_t u16
    16-bit unsigned integer
    Definition: types.h:22
    DVLE_s * dvle
    Shader DVLE.
    Definition: shaderProgram.h:20
    u32 id
    Uniform ID.
    Definition: shaderProgram.h:13
    -
    float24Uniform_s * float24Uniforms
    24-bit float uniforms.
    Definition: shaderProgram.h:23
    +
    u8 geoShaderInputStride
    Geometry shader input stride.
    Definition: shaderProgram.h:35
    +
    float24Uniform_s * float24Uniforms
    24-bit float uniforms.
    Definition: shaderProgram.h:24
    Result shaderProgramFree(shaderProgram_s *sp)
    Frees a shader program.
    uint8_t u8
    would be nice if newlib had this already
    Definition: types.h:21
    Describes an instance of either a vertex or geometry shader.
    Definition: shaderProgram.h:18
    -
    shaderInstance_s * geometryShader
    Geometry shader.
    Definition: shaderProgram.h:31
    +
    uint64_t u64
    64-bit unsigned integer
    Definition: types.h:24
    +
    Result shaderProgramConfigure(shaderProgram_s *sp, bool sendVshCode, bool sendGshCode)
    Configures the shader units to use the specified shader program.
    +
    shaderInstance_s * geometryShader
    Geometry shader.
    Definition: shaderProgram.h:33
    uint32_t u32
    32-bit unsigned integer
    Definition: types.h:23
    Result shaderProgramSetVsh(shaderProgram_s *sp, DVLE_s *dvle)
    Sets the vertex shader of a shader program.
    -
    Result shaderProgramUse(shaderProgram_s *sp)
    Sets the active shader program.
    +
    Result shaderProgramUse(shaderProgram_s *sp)
    Same as shaderProgramConfigure, but always loading code/operand descriptors and uploading DVLE consta...
    +
    s8 shaderInstanceGetUniformLocation(shaderInstance_s *si, const char *name)
    Gets the location of a shader's uniform.
    Result shaderProgramInit(shaderProgram_s *sp)
    Initializes a shader program.
    Result shaderProgramSetGsh(shaderProgram_s *sp, DVLE_s *dvle, u8 stride)
    Sets the geometry shader of a shader program.
    Result shaderInstanceFree(shaderInstance_s *si)
    Frees a shader instance.
    -
    shaderInstance_s * vertexShader
    Vertex shader.
    Definition: shaderProgram.h:30
    -
    Describes an instance of a full shader program.
    Definition: shaderProgram.h:28
    -
    u8 numFloat24Uniforms
    Float uniform count.
    Definition: shaderProgram.h:24
    +
    Result shaderProgramSetGshInputPermutation(shaderProgram_s *sp, u64 permutation)
    Configures the permutation of the input attributes of the geometry shader of a shader program...
    +
    shaderInstance_s * vertexShader
    Vertex shader.
    Definition: shaderProgram.h:32
    +
    Describes an instance of a full shader program.
    Definition: shaderProgram.h:30
    +
    u8 numFloat24Uniforms
    Float uniform count.
    Definition: shaderProgram.h:26
    Result shaderInstanceSetBool(shaderInstance_s *si, int id, bool value)
    Sets a bool uniform of a shader.
    -
    u8 geometryShaderInputStride
    Geometry shader input stride.
    Definition: shaderProgram.h:32
    u16 boolUniforms
    Boolean uniforms.
    Definition: shaderProgram.h:21
    24-bit float uniforms.
    Definition: shaderProgram.h:11
    Result shaderInstanceGetBool(shaderInstance_s *si, int id, bool *value)
    Gets a bool uniform of a shader.
    -
    Result shaderInstanceGetUniformLocation(shaderInstance_s *si, const char *name)
    Gets the location of a shader's uniform.
    +
    u8 intUniformMask
    Used integer uniform mask.
    Definition: shaderProgram.h:25
    DVLE data.
    Definition: shbin.h:65
    +
    u16 boolUniformMask
    Used boolean uniform mask.
    Definition: shaderProgram.h:22
    + + + @@ -113,6 +117,10 @@ Data Fields float24Uniform_s + + + diff --git a/structshaderProgram__s.html b/structshaderProgram__s.html index d3b5387..3ac0729 100644 --- a/structshaderProgram__s.html +++ b/structshaderProgram__s.html @@ -105,10 +105,14 @@ Data Fields shaderInstance_s - - - + + + + + +
    spShader program to use.
    boolUniforms
     Boolean uniforms.
     
    +u16 boolUniformMask
     Used boolean uniform mask.
     
    u32 intUniforms [4]
     Integer uniforms.
    float24Uniforms
     24-bit float uniforms.
     
    +u8 intUniformMask
     Used integer uniform mask.
     
    u8 numFloat24Uniforms
     Float uniform count.
    geometryShader
     Geometry shader.
     
    -u8 geometryShaderInputStride
     Geometry shader input stride.
     
    +u32 geoShaderInputPermutation [2]
     Geometry shader input permutation.
     
    +u8 geoShaderInputStride
     Geometry shader input stride.
     

    Detailed Description

    Describes an instance of a full shader program.