Functions
ai_sampler.h File Reference

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 AtSamplerAiSampler (uint32_t seed, int nsamples, int ndim)
 Create a user sampler with a unique seed. More...
 
AI_API AtSamplerIteratorAiSamplerIterator (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...
 

Detailed Description

A generic, two-dimensional sampler that is sometimes useful when writing shaders.


© 2020 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com