| 37 | std::string const kShadersPackFile = "shaders_pack.spv"; |
| 38 | |
| 39 | std::vector<uint8_t> ReadShadersPackFile(std::string const & filename) |
| 40 | { |
| 41 | std::vector<uint8_t> result; |
| 42 | try |
| 43 | { |
| 44 | ReaderPtr<Reader> reader(GetPlatform().GetReader(filename)); |
| 45 | auto const size = static_cast<size_t>(reader.Size()); |
| 46 | CHECK(size % sizeof(uint32_t) == 0, ("Incorrect SPIR-V file alignment.")); |
| 47 | result.resize(size); |
| 48 | reader.Read(0, result.data(), size); |
| 49 | } |
| 50 | catch (RootException const & e) |
| 51 | { |
| 52 | CHECK(false, ("Error reading shader file ", filename, " : ", e.what())); |
| 53 | return {}; |
| 54 | } |
| 55 | return result; |
| 56 | } |
| 57 | |
| 58 | struct TextureBindingReflectionInfo |
| 59 | { |