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

Method load_shader

framework/hpp_api_vulkan_sample.cpp:420–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420vk::PipelineShaderStageCreateInfo HPPApiVulkanSample::load_shader(const std::string &file, vk::ShaderStageFlagBits stage)
421{
422 shader_modules.push_back(vkb::common::load_shader(file.c_str(), get_device().get_handle(), stage));
423 assert(shader_modules.back());
424 return vk::PipelineShaderStageCreateInfo{.stage = stage, .module = shader_modules.back(), .pName = "main"};
425}
426
427vk::PipelineShaderStageCreateInfo HPPApiVulkanSample::load_shader(const std::string &sample_folder_name, const std::string &shader_filename, vk::ShaderStageFlagBits stage)
428{

Callers

nothing calls this directly

Calls 2

load_shaderFunction · 0.50
get_handleMethod · 0.45

Tested by

no test coverage detected