SamplerType

sg_sampler_type

The basic type of a texture sampler (sampling vs comparison) as defined in a shader. Must be provided in sg_shader_sampler_desc.

sg_image_sample_type and sg_sampler_type for a texture/sampler pair must be compatible with each other, specifically only the following pairs are allowed:

- SG_IMAGESAMPLETYPE_FLOAT => (SG_SAMPLERTYPE_FILTERING or SG_SAMPLERTYPE_NONFILTERING) - SG_IMAGESAMPLETYPE_UNFILTERABLE_FLOAT => SG_SAMPLERTYPE_NONFILTERING - SG_IMAGESAMPLETYPE_SINT => SG_SAMPLERTYPE_NONFILTERING - SG_IMAGESAMPLETYPE_UINT => SG_SAMPLERTYPE_NONFILTERING - SG_IMAGESAMPLETYPE_DEPTH => SG_SAMPLERTYPE_COMPARISO

Values

ValueMeaning
Default
Filtering
Nonfiltering
Comparison
Num

Meta