Provides functions for creating and using pipelines which configure the GPU for rendering.
More...
Go to the source code of this file.
|
| enum | kinc_g4_blending_factor_t {
KINC_G4_BLEND_ONE
, KINC_G4_BLEND_ZERO
, KINC_G4_BLEND_SOURCE_ALPHA
, KINC_G4_BLEND_DEST_ALPHA
,
KINC_G4_BLEND_INV_SOURCE_ALPHA
, KINC_G4_BLEND_INV_DEST_ALPHA
, KINC_G4_BLEND_SOURCE_COLOR
, KINC_G4_BLEND_DEST_COLOR
,
KINC_G4_BLEND_INV_SOURCE_COLOR
, KINC_G4_BLEND_INV_DEST_COLOR
, KINC_G4_BLEND_CONSTANT
, KINC_G4_BLEND_INV_CONSTANT
} |
| enum | kinc_g4_blending_operation_t {
KINC_G4_BLENDOP_ADD
, KINC_G4_BLENDOP_SUBTRACT
, KINC_G4_BLENDOP_REVERSE_SUBTRACT
, KINC_G4_BLENDOP_MIN
,
KINC_G4_BLENDOP_MAX
} |
| enum | kinc_g4_compare_mode_t {
KINC_G4_COMPARE_ALWAYS
, KINC_G4_COMPARE_NEVER
, KINC_G4_COMPARE_EQUAL
, KINC_G4_COMPARE_NOT_EQUAL
,
KINC_G4_COMPARE_LESS
, KINC_G4_COMPARE_LESS_EQUAL
, KINC_G4_COMPARE_GREATER
, KINC_G4_COMPARE_GREATER_EQUAL
} |
| enum | kinc_g4_cull_mode_t { KINC_G4_CULL_CLOCKWISE
, KINC_G4_CULL_COUNTER_CLOCKWISE
, KINC_G4_CULL_NOTHING
} |
| enum | kinc_g4_stencil_action_t {
KINC_G4_STENCIL_KEEP
, KINC_G4_STENCIL_ZERO
, KINC_G4_STENCIL_REPLACE
, KINC_G4_STENCIL_INCREMENT
,
KINC_G4_STENCIL_INCREMENT_WRAP
, KINC_G4_STENCIL_DECREMENT
, KINC_G4_STENCIL_DECREMENT_WRAP
, KINC_G4_STENCIL_INVERT
} |
|
| KINC_FUNC void | kinc_g4_pipeline_init (kinc_g4_pipeline_t *pipeline) |
| | Initializes a pipeline.
|
| KINC_FUNC void | kinc_g4_pipeline_destroy (kinc_g4_pipeline_t *pipeline) |
| | Destroys a pipeline.
|
| KINC_FUNC void | kinc_g4_pipeline_compile (kinc_g4_pipeline_t *pipeline) |
| | Compiles a pipeline. After a pipeline has been compiled it is finalized. It cannot be compiled again and further changes to the pipeline are ignored.
|
| KINC_FUNC kinc_g4_constant_location_t | kinc_g4_pipeline_get_constant_location (kinc_g4_pipeline_t *pipeline, const char *name) |
| | Searches for a constant/uniform and returns a constant-location which can be used to change the constant/uniform.
|
| KINC_FUNC kinc_g4_texture_unit_t | kinc_g4_pipeline_get_texture_unit (kinc_g4_pipeline_t *pipeline, const char *name) |
| | Searches for a texture-declaration and returns a texture-unit which can be used to assign a texture.
|
|
void | kinc_g4_internal_set_pipeline (kinc_g4_pipeline_t *pipeline) |
|
void | kinc_g4_internal_pipeline_set_defaults (kinc_g4_pipeline_t *pipeline) |
Provides functions for creating and using pipelines which configure the GPU for rendering.
◆ kinc_g4_pipeline_compile()
| KINC_FUNC void kinc_g4_pipeline_compile |
( |
kinc_g4_pipeline_t * | pipeline | ) |
|
Compiles a pipeline. After a pipeline has been compiled it is finalized. It cannot be compiled again and further changes to the pipeline are ignored.
- Parameters
-
| pipeline | The pipeline to compile |
◆ kinc_g4_pipeline_destroy()
| KINC_FUNC void kinc_g4_pipeline_destroy |
( |
kinc_g4_pipeline_t * | pipeline | ) |
|
Destroys a pipeline.
- Parameters
-
| pipeline | The pipeline to destroy |
◆ kinc_g4_pipeline_get_constant_location()
| KINC_FUNC kinc_g4_constant_location_t kinc_g4_pipeline_get_constant_location |
( |
kinc_g4_pipeline_t * | pipeline, |
|
|
const char * | name ) |
Searches for a constant/uniform and returns a constant-location which can be used to change the constant/uniform.
- Parameters
-
| pipeline | The pipeline to search in |
| name | The name of the constant/uniform to find |
- Returns
- The constant-location of the constant/uniform
◆ kinc_g4_pipeline_get_texture_unit()
| KINC_FUNC kinc_g4_texture_unit_t kinc_g4_pipeline_get_texture_unit |
( |
kinc_g4_pipeline_t * | pipeline, |
|
|
const char * | name ) |
Searches for a texture-declaration and returns a texture-unit which can be used to assign a texture.
- Parameters
-
| pipeline | The pipeline to search in |
| name | The name of the texture-declaration to search for |
- Returns
- The texture-unit of the texture-declaration
◆ kinc_g4_pipeline_init()
| KINC_FUNC void kinc_g4_pipeline_init |
( |
kinc_g4_pipeline_t * | pipeline | ) |
|
Initializes a pipeline.
- Parameters
-
| state | The pipeline to initialize |