A generic, two-dimensional sampler that is sometimes useful when writing shaders. More...
#include "ai_api.h"Go to the source code of this file.
Functions | |
| AI_API AtSampler * | AiSampler (uint32_t seed, int nsamples, int ndim) |
| Create a user sampler with a unique seed. More... | |
| AI_API AtSamplerIterator * | AiSamplerIterator (const AtSampler *sampler, const AtShaderGlobals *sg) |
| Prepare an iterator to loop over the specified sampler. More... | |
| AI_API AI_DEVICE bool | AiSamplerGetSample (AtSamplerIterator *iterator, float *sample) |
| Get the next sample in an iterator. More... | |
| AI_API AI_PURE int | AiSamplerGetSampleCount (const AtSamplerIterator *iterator) |
| Get the number of samples taken from this iterator. More... | |
| AI_API AI_PURE float | AiSamplerGetSampleInvCount (const AtSamplerIterator *iterator) |
| Get the inverse sample count. More... | |
| AI_API void | AiSamplerDestroy (AtSampler *sampler) |
| Destroy a sampler object. More... | |
A generic, two-dimensional sampler that is sometimes useful when writing shaders.