forked from LeenkxTeam/LNXSDK
20 lines
647 B
C
20 lines
647 B
C
|
#include "sampler.h"
|
||
|
|
||
|
void kinc_g5_sampler_options_set_defaults(kinc_g5_sampler_options_t *options) {
|
||
|
options->u_addressing = KINC_G5_TEXTURE_ADDRESSING_CLAMP;
|
||
|
options->v_addressing = KINC_G5_TEXTURE_ADDRESSING_CLAMP;
|
||
|
options->w_addressing = KINC_G5_TEXTURE_ADDRESSING_CLAMP;
|
||
|
|
||
|
options->magnification_filter = KINC_G5_TEXTURE_FILTER_POINT;
|
||
|
options->minification_filter = KINC_G5_TEXTURE_FILTER_POINT;
|
||
|
options->mipmap_filter = KINC_G5_MIPMAP_FILTER_POINT;
|
||
|
|
||
|
options->lod_min_clamp = 0.0f;
|
||
|
options->lod_max_clamp = 32.0f;
|
||
|
|
||
|
options->is_comparison = false;
|
||
|
options->compare_mode = KINC_G5_COMPARE_MODE_ALWAYS;
|
||
|
|
||
|
options->max_anisotropy = 1;
|
||
|
}
|