SimpleGL
1.1.0
A framework for platform independent rendering
|
This class wraps a Vulkan shader module. More...
#include <shader_module.hpp>
Public Member Functions | |
ShaderModule (std::vector< uint8_t > code, ShaderStageBit stage) | |
Creates a new shader module. More... | |
~ShaderModule (void) | |
Destroys the shader module. More... | |
VkShaderModule | getHandle () |
Returns the handle of the shader module. More... | |
VkShaderStageFlagBits | getShaderStageBit () |
Returns the shader stage bit. More... | |
This class wraps a Vulkan shader module.
Definition at line 38 of file shader_module.hpp.
sgl::ShaderModule::ShaderModule | ( | std::vector< uint8_t > | code, |
ShaderStageBit | stage | ||
) |
Creates a new shader module.
code | The binary code for the shader module. |
stage | Indicates which shader stage flag bit should get used. |
Definition at line 18 of file shader_module.cpp.
sgl::ShaderModule::~ShaderModule | ( | void | ) |
Destroys the shader module.
Definition at line 34 of file shader_module.cpp.
VkShaderModule sgl::ShaderModule::getHandle | ( | ) |
Returns the handle of the shader module.
Definition at line 41 of file shader_module.cpp.
VkShaderStageFlagBits sgl::ShaderModule::getShaderStageBit | ( | ) |
Returns the shader stage bit.
Definition at line 45 of file shader_module.cpp.