kmhfPhrase
Represents a shader phrase implementing Knuth's multiplicative hash function as defined for unsigned integers.
The function takes a 32-bit unsigned integer as input and computes a hashed value using a fixed-point scaling factor (2654435789u). This technique is based on the "multiplicative hash" proposed by Donald Knuth, providing an efficient method for hashing without the need for additional libraries or resources.
This phrase is wrapped in preprocessor guards to ensure it is only defined once during the shader compilation process.