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

Function load_shader

framework/common/vk_common.cpp:334–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 return -1;
333 }
334}
335
336VkShaderModule load_shader(const std::string &filename, VkDevice device, VkShaderStageFlagBits stage)
337{
338 auto spirv = vkb::fs::read_shader_binary_u32(filename);
339 return load_shader_from_vector(spirv, device);
340}
341

Callers 15

prepare_guiMethod · 0.50
load_shaderMethod · 0.50
prepare_guiMethod · 0.50
load_shaderMethod · 0.50
prepare_pipelinesMethod · 0.50
create_pipelineMethod · 0.50
load_shadersMethod · 0.50
load_shadersMethod · 0.50
prepare_pipelinesMethod · 0.50

Calls 2

read_shader_binary_u32Function · 0.85
load_shader_from_vectorFunction · 0.85

Tested by

no test coverage detected