Files
LNXRNT/Kinc/Backends/Graphics5/Vulkan/Sources/kinc/backend/graphics5/ShaderHash.c.h

12 lines
189 B
C
Raw Normal View History

2026-06-09 12:45:01 -07:00
#include "ShaderHash.h"
// djb2
uint32_t kinc_internal_hash_name(unsigned char *str) {
unsigned long hash = 5381;
int c;
while (c = *str++) {
hash = hash * 33 ^ c;
}
return hash;
}