Kore
Loading...
Searching...
No Matches
Sources
kinc
graphics5
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
7
#include <
kinc/graphics5/constantlocation.h
>
8
#include <
kinc/graphics5/textureunit.h
>
9
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
typedef
struct
kinc_g5_compute_shader
{
19
kinc_g5_compute_shader_impl impl;
20
}
kinc_g5_compute_shader
;
21
28
KINC_FUNC
void
kinc_g5_compute_shader_init
(
kinc_g5_compute_shader
*shader,
void
*source,
int
length);
29
34
KINC_FUNC
void
kinc_g5_compute_shader_destroy
(
kinc_g5_compute_shader
*shader);
35
42
KINC_FUNC kinc_g5_constant_location_t
kinc_g5_compute_shader_get_constant_location
(
kinc_g5_compute_shader
*shader,
const
char
*name);
43
50
KINC_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
global.h
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
kinc_g5_compute_shader_init
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_g5_compute_shader_get_texture_unit
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_g5_compute_shader_destroy
KINC_FUNC void kinc_g5_compute_shader_destroy(kinc_g5_compute_shader *shader)
Desotry a shader-object.
kinc_g5_compute_shader_get_constant_location
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.
constantlocation.h
Provides the constant_location-struct which is used for setting constants/uniforms in a shader.
textureunit.h
Provides a texture-unit-struct which is used for setting textures in a shader.
kinc_g5_compute_shader
Definition
compute.h:18
Generated by
1.15.0