Kore 3
Loading...
Searching...
No Matches
sampler.h
Go to the documentation of this file.
1#ifndef KORE_GPU_SAMPLER_HEADER
2#define KORE_GPU_SAMPLER_HEADER
3
4#include <kore3/global.h>
5
6#include "api.h"
7
8#if defined(KORE_DIRECT3D11)
9#include <kore3/direct3d11/sampler_structs.h>
10#elif defined(KORE_DIRECT3D12)
11#include <kore3/direct3d12/sampler_structs.h>
12#elif defined(KORE_METAL)
13#include <kore3/metal/sampler_structs.h>
14#elif defined(KORE_OPENGL)
15#include <kore3/opengl/sampler_structs.h>
16#elif defined(KORE_VULKAN)
17#include <kore3/vulkan/sampler_structs.h>
18#elif defined(KORE_WEBGPU)
19#include <kore3/webgpu/sampler_structs.h>
20#elif defined(KORE_KOMPJUTA)
21#include <kore3/kompjuta/sampler_structs.h>
22#elif defined(KORE_CONSOLE)
23#include <kore3/console/sampler_structs.h>
24#else
25#error ("Unknown GPU backend")
26#endif
27
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36typedef struct kore_gpu_sampler {
37 KORE_GPU_IMPL(sampler);
39
40KORE_FUNC void kore_gpu_sampler_set_name(kore_gpu_sampler *sampler, const char *name);
41
42KORE_FUNC void kore_gpu_sampler_destroy(kore_gpu_sampler *sampler);
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Definition sampler.h:36