bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.01k stars 1.94k forks source link

Endianness problem in shaderc ? #1246

Open cloudwu opened 7 years ago

cloudwu commented 7 years ago

https://github.com/bkaradzic/bgfx/blob/master/tools/shaderc/shaderc.cpp#L1262-L1263

bx::write(writer, BGFX_CHUNK_MAGIC_FSH);
bx::write(writer, inputHash);

it should use bx::writeLE to avoid endianness problem ?

bkaradzic commented 7 years ago

Yeah it is a problem, but nowadays all available CPUs are little endian... Will deal with this once I have some PowerPC dev board or something.