|
Kore
|
Provides support for running compute-shaders. More...
#include <kinc/global.h>#include <kinc/backend/graphics4/compute.h>#include <kinc/graphics4/graphics.h>Go to the source code of this file.
Data Structures | |
| struct | kinc_g4_compute_shader |
Typedefs | |
| typedef struct kinc_g4_compute_shader | kinc_g4_compute_shader |
Functions | |
| KINC_FUNC void | kinc_g4_compute_shader_init (kinc_g4_compute_shader *shader, void *source, int length) |
| Initialize a compute-shader from system-specific shader-data. | |
| KINC_FUNC void | kinc_g4_compute_shader_destroy (kinc_g4_compute_shader *shader) |
| Destroy a shader-object. | |
| KINC_FUNC kinc_g4_constant_location_t | kinc_g4_compute_shader_get_constant_location (kinc_g4_compute_shader *shader, const char *name) |
| Finds the location of a constant/uniform inside of a shader. | |
| KINC_FUNC kinc_g4_texture_unit_t | kinc_g4_compute_shader_get_texture_unit (kinc_g4_compute_shader *shader, const char *name) |
| Finds a texture-unit inside of a shader. | |
Provides support for running compute-shaders.
| KINC_FUNC void kinc_g4_compute_shader_destroy | ( | kinc_g4_compute_shader * | shader | ) |
Destroy a shader-object.
| shader | The shader-object to destroy |
| KINC_FUNC kinc_g4_constant_location_t kinc_g4_compute_shader_get_constant_location | ( | kinc_g4_compute_shader * | shader, |
| const char * | name ) |
Finds the location of a constant/uniform inside of a shader.
| shader | The shader to look into |
| name | The constant/uniform-name to look for |
| KINC_FUNC kinc_g4_texture_unit_t kinc_g4_compute_shader_get_texture_unit | ( | kinc_g4_compute_shader * | shader, |
| const char * | name ) |
Finds a texture-unit inside of a shader.
| shader | The shader to look into |
| name | The texture-name to look for |
| KINC_FUNC void kinc_g4_compute_shader_init | ( | kinc_g4_compute_shader * | shader, |
| void * | source, | ||
| int | length ) |
Initialize a compute-shader from system-specific shader-data.
| shader | The shader-object to initialize |
| source | A pointer to system-specific shader-data |
| length | Length of the shader-data in bytes |