VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
VulkanEngine::ShaderModule Class Reference

#include <ShaderModule.h>

Public Member Functions

 ShaderModule (const std::string &shader_string, bool is_filepath, vk::ShaderStageFlagBits shader_stage_flag)
 
 ~ShaderModule ()
 Destructor.
 
const vk::ShaderStageFlagBits getVkShaderStageFlag () const
 
const vk::ShaderModule & getVkShaderModule () const
 

Detailed Description

Class which represents a module in the shader pipeline, e.g vertex or fragment shader.

Constructor & Destructor Documentation

◆ ShaderModule()

VulkanEngine::ShaderModule::ShaderModule ( const std::string &  shader_string,
bool  is_filepath,
vk::ShaderStageFlagBits  shader_stage_flag 
)

Constructor.

Parameters
shader_stringEither the source path or raw shader string
shader_stage_flagThe vk::ShaderStageFlagBits which indicates the type of shader stage.

Member Function Documentation

◆ getVkShaderModule()

const vk::ShaderModule & VulkanEngine::ShaderModule::getVkShaderModule ( ) const
Returns
The internal vk::ShaderModule instance.

◆ getVkShaderStageFlag()

const vk::ShaderStageFlagBits VulkanEngine::ShaderModule::getVkShaderStageFlag ( ) const
Returns
The vk::ShaderStageFlagBits flag for the ShaderModule.

The documentation for this class was generated from the following files: