nicegraf
ngf_sampler Struct Reference

Detailed Description

An opaque handle for a sampler object.

Samplers encapsulate how to filter an image - what happens when an image is minified or magnified, whether anisotropic filtering is enabled, etc. See ngf_sampler_info for more details.

Samplers can be bound separately from images - in which case the shader code sees them as two distinct objects, and the same sampler can be ussed to sample two different images. They can also be combined into a single descriptor (see NGF_DESCRIPTOR_IMAGE_AND_SAMPLER), in which case the shader code sees only a single image object, which can be sampled only one certain way.