Kore
Loading...
Searching...
No Matches
shader.h
Go to the documentation of this file.
1#pragma once
2
3#include <kinc/global.h>
4
5#include <kinc/backend/graphics5/shader.h>
6
7#include <stddef.h>
8
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17typedef enum kinc_g5_shader_type {
18 KINC_G5_SHADER_TYPE_FRAGMENT,
19 KINC_G5_SHADER_TYPE_VERTEX,
20 KINC_G5_SHADER_TYPE_COMPUTE,
21 KINC_G5_SHADER_TYPE_GEOMETRY,
22 KINC_G5_SHADER_TYPE_TESSELLATION_CONTROL,
23 KINC_G5_SHADER_TYPE_TESSELLATION_EVALUATION,
24
25 KINC_G5_SHADER_TYPE_COUNT
26} kinc_g5_shader_type_t;
27
28typedef struct kinc_g5_shader {
29 Shader5Impl impl;
30} kinc_g5_shader_t;
31
40KINC_FUNC void kinc_g5_shader_init(kinc_g5_shader_t *shader, const void *source, size_t length, kinc_g5_shader_type_t type);
41
46KINC_FUNC void kinc_g5_shader_destroy(kinc_g5_shader_t *shader);
47
48#ifdef __cplusplus
49}
50#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KINC_FUNC void kinc_g5_shader_destroy(kinc_g5_shader_t *shader)
Destroys a shader.
KINC_FUNC void kinc_g5_shader_init(kinc_g5_shader_t *shader, const void *source, size_t length, kinc_g5_shader_type_t type)
Initializes a shader based on system-specific shader-data. The system-specific shader-data is usually...
Definition shader.h:28