Monado OpenXR Runtime
|
Code to generate permutation of indices. More...
Functions | |
static void | swap (uint32_t *array, uint32_t a, uint32_t b) |
static void | copy (struct m_permutator *mp, uint32_t *out_elements) |
static void | setup (struct m_permutator *mp, uint32_t num_elements) |
static bool | step (struct m_permutator *mp) |
bool | m_permutator_step (struct m_permutator *mp, uint32_t *out_elements, uint32_t num_elements) |
Returns false if there are no new permutation available, the only thing you need to do before calling this function is to make sure that the struct has been zero initialised. More... | |
void | m_permutator_reset (struct m_permutator *mp) |
static void | printArray (const uint32_t *array, uint32_t num) |
void | m_do_the_thing (void) |
Code to generate permutation of indices.
bool m_permutator_step | ( | struct m_permutator * | mp, |
uint32_t * | out_elements, | ||
uint32_t | num_elements | ||
) |
Returns false if there are no new permutation available, the only thing you need to do before calling this function is to make sure that the struct has been zero initialised.