SamplerDesc

sg_sampler_desc

Creation parameters for sg_sampler objects, used in the sg_make_sampler() call

.min_filter: SG_FILTER_NEAREST .mag_filter: SG_FILTER_NEAREST .mipmap_filter SG_FILTER_NEAREST .wrap_u: SG_WRAP_REPEAT .wrap_v: SG_WRAP_REPEAT .wrap_w: SG_WRAP_REPEAT (only SG_IMAGETYPE_3D) .min_lod 0.0f .max_lod FLT_MAX .border_color SG_BORDERCOLOR_OPAQUE_BLACK .compare SG_COMPAREFUNC_NEVER .max_anisotropy 1 (must be 1..16

Members

Variables

_end_canary
uint _end_canary;
Undocumented in source.
_start_canary
uint _start_canary;
Undocumented in source.
border_color
BorderColor border_color;
Undocumented in source.
compare
CompareFunc compare;
Undocumented in source.
d3d11_sampler
const(void)* d3d11_sampler;
Undocumented in source.
gl_sampler
uint gl_sampler;
Undocumented in source.
label
const(char)* label;
Undocumented in source.
mag_filter
Filter mag_filter;
Undocumented in source.
max_anisotropy
uint max_anisotropy;
Undocumented in source.
max_lod
float max_lod;
Undocumented in source.
min_filter
Filter min_filter;
Undocumented in source.
min_lod
float min_lod;
Undocumented in source.
mipmap_filter
Filter mipmap_filter;
Undocumented in source.
mtl_sampler
const(void)* mtl_sampler;
Undocumented in source.
wgpu_sampler
const(void)* wgpu_sampler;
Undocumented in source.
wrap_u
Wrap wrap_u;
Undocumented in source.
wrap_v
Wrap wrap_v;
Undocumented in source.
wrap_w
Wrap wrap_w;
Undocumented in source.

Meta