Kore
Loading...
Searching...
No Matches
sampler.c.h
1#include "sampler.h"
2
3void kinc_g5_sampler_options_set_defaults(kinc_g5_sampler_options_t *options) {
4 options->u_addressing = KINC_G5_TEXTURE_ADDRESSING_CLAMP;
5 options->v_addressing = KINC_G5_TEXTURE_ADDRESSING_CLAMP;
6 options->w_addressing = KINC_G5_TEXTURE_ADDRESSING_CLAMP;
7
8 options->magnification_filter = KINC_G5_TEXTURE_FILTER_POINT;
9 options->minification_filter = KINC_G5_TEXTURE_FILTER_POINT;
10 options->mipmap_filter = KINC_G5_MIPMAP_FILTER_POINT;
11
12 options->lod_min_clamp = 0.0f;
13 options->lod_max_clamp = 32.0f;
14
15 options->is_comparison = false;
16 options->compare_mode = KINC_G5_COMPARE_MODE_ALWAYS;
17
18 options->max_anisotropy = 1;
19}
Provides functions for sampler objects.