| 51 | } |
| 52 | |
| 53 | __forceinline void RandomSampler_init(RandomSampler& self, int id) |
| 54 | { |
| 55 | unsigned int hash = 0; |
| 56 | hash = MurmurHash3_mix(hash, id); |
| 57 | hash = MurmurHash3_finalize(hash); |
| 58 | |
| 59 | self.s = hash; |
| 60 | } |
| 61 | |
| 62 | __forceinline void RandomSampler_init(RandomSampler& self, int pixelId, int sampleId) |
| 63 | { |