MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / read_shader_binary_u32

Function read_shader_binary_u32

components/filesystem/src/legacy.cpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117std::vector<uint32_t> read_shader_binary_u32(const std::string &filename)
118{
119 auto buffer = vkb::filesystem::get()->read_file_binary(path::get(path::Type::Shaders) + filename);
120 assert(buffer.size() % sizeof(uint32_t) == 0);
121 auto spirv = std::vector<uint32_t>(reinterpret_cast<uint32_t *>(buffer.data()), reinterpret_cast<uint32_t *>(buffer.data()) + buffer.size() / sizeof(uint32_t));
122 return spirv;
123}
124
125std::vector<uint8_t> read_temp(const std::string &filename)
126{

Callers 10

ShaderModuleMethod · 0.85
load_shaderFunction · 0.85
load_shader_moduleMethod · 0.85
load_shader_moduleMethod · 0.85
load_shader_moduleMethod · 0.85
create_shader_moduleMethod · 0.85
create_shadersMethod · 0.85
load_shaderMethod · 0.85
debug_load_shaderMethod · 0.85
load_shader_moduleMethod · 0.85

Calls 3

read_file_binaryMethod · 0.80
sizeMethod · 0.80
getFunction · 0.70

Tested by

no test coverage detected