MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_shader_module()

std::shared_ptr< VKShaderModule > MayaFlux::Core::BackendPipelineManager::create_shader_module ( const std::string &  spirv_path,
uint32_t  stage 
)

Create a shader module from SPIR-V binary.

Parameters
spirv_pathPath to the SPIR-V binary file
stageShader stage (e.g., vertex, fragment, compute)
Returns
Shared pointer to the created VKShaderModule

Definition at line 51 of file BackendPipelineManager.cpp.

52{
53 auto shader = std::make_shared<VKShaderModule>();
54 shader->create_from_spirv_file(m_context.get_device(), spirv_path, vk::ShaderStageFlagBits(stage));
55
56 track_shader(shader);
57 return shader;
58}
void track_shader(const std::shared_ptr< VKShaderModule > &shader)
vk::Device get_device() const
Get logical device.
Definition VKContext.hpp:49

References MayaFlux::Core::VKContext::get_device(), m_context, and track_shader().

Referenced by setup_backend_service().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: