I'm having issue loading a shader .spv file for vulkan. I get a []u8 using std.fs.cwd().openFile(vertSpvPath, .{ .mode = .read_only }); and fileVertSpv.readToEndAlloc(mem.MemMan.allocator, 8 * 1024 * 1024) that I read to get a [*]u32 using the right endianness (the file starts with a magic number that I'm reading correctly). In my previous version that was using c++ I used std::ifstream.open(file, ios::ate | ios::binary). Is there such a binary flag in zig or maybe a openBinary fn ?
I think my alignment is right since I fill a ArrayList(u32) and the endianess too. I don't know what to look for anymore.
thanks