Kore
Loading...
Searching...
No Matches
compute.h
Go to the documentation of this file.
1#pragma once
2
3#include <kinc/global.h>
4
5#include <kinc/backend/graphics5/compute.h>
6
9
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18typedef struct kinc_g5_compute_shader {
19 kinc_g5_compute_shader_impl impl;
21
28KINC_FUNC void kinc_g5_compute_shader_init(kinc_g5_compute_shader *shader, void *source, int length);
29
35
42KINC_FUNC kinc_g5_constant_location_t kinc_g5_compute_shader_get_constant_location(kinc_g5_compute_shader *shader, const char *name);
43
50KINC_FUNC kinc_g5_texture_unit_t kinc_g5_compute_shader_get_texture_unit(kinc_g5_compute_shader *shader, const char *name);
51
52#ifdef __cplusplus
53}
54#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KINC_FUNC void kinc_g5_compute_shader_init(kinc_g5_compute_shader *shader, void *source, int length)
Initialize a compute-shader from system-specific shader-data.
KINC_FUNC kinc_g5_texture_unit_t kinc_g5_compute_shader_get_texture_unit(kinc_g5_compute_shader *shader, const char *name)
Finds a texture-unit inside of a shader.
KINC_FUNC void kinc_g5_compute_shader_destroy(kinc_g5_compute_shader *shader)
Desotry a shader-object.
KINC_FUNC kinc_g5_constant_location_t kinc_g5_compute_shader_get_constant_location(kinc_g5_compute_shader *shader, const char *name)
Finds the location of a constant/uniform inside of a shader.
Provides the constant_location-struct which is used for setting constants/uniforms in a shader.
Provides a texture-unit-struct which is used for setting textures in a shader.
Definition compute.h:18