SimpleGL  1.1.0
A framework for platform independent rendering
Public Member Functions | List of all members
sgl::ShaderModule Class Reference

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...
 

Detailed Description

This class wraps a Vulkan shader module.

Definition at line 38 of file shader_module.hpp.

Constructor & Destructor Documentation

sgl::ShaderModule::ShaderModule ( std::vector< uint8_t >  code,
ShaderStageBit  stage 
)

Creates a new shader module.

Parameters
codeThe binary code for the shader module.
stageIndicates 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.

Member Function Documentation

VkShaderModule sgl::ShaderModule::getHandle ( )

Returns the handle of the shader module.

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.

Returns
The shader stage bit.

Definition at line 45 of file shader_module.cpp.


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