|
Rehti MMORPG
1.0.0
Rehti MMORPG is a free and open source MMORPG game.
|
Functions | |
| VkPipelineShaderStageCreateInfo | createVertexShaderInfo (VkDevice logDevice, ObjectType objectType) |
| Creates a vertex shader info to be used in pipeline creation. More... | |
| VkPipelineShaderStageCreateInfo | createFragmentShaderInfo (VkDevice logDevice, ObjectType objectType) |
| Creates a fragment shader info to be used in pipeline creation. More... | |
| void | destroyShaderModules (VkDevice logDevice) |
| Destroys created shader modules. This function can be called after pipeline creation. More... | |
| std::vector< uint32_t > | compileGLSLToSpirv (VkShaderStageFlagBits shaderType, ObjectType object) |
| Compiles a given GLSL code to SPIRV. More... | |
| std::string | getShaderCode (VkShaderStageFlags stage, ObjectType object) |
| Returns the shader code as a string corresponding to the given stage and object type. More... | |
| static std::vector< char > | readFile (ConstantFilepath filepath) |
| Reads a file and returns a vector of chars. More... | |
| static VkShaderModule | createShaderModule (VkDevice logDevice, VkShaderStageFlagBits stage, ObjectType objectType) |
| Creates a shader module from a file. More... | |
Variables | |
| constexpr ConstantFilepath | kGLSLTestVertexShaderPath = "shaders/testShader.vert" |
| constexpr ConstantFilepath | kGLSLTestFragmentShaderPath = "shaders/testShader.frag" |
| constexpr ConstantFilepath | kGLSLObjectVertexShaderPath = "shaders/objectShader.vert" |
| constexpr ConstantFilepath | kGLSLObjectFragmentShaderPath = "shaders/objectShader.frag" |
| constexpr const char * | kStandardEntryPoint = "main" |
| static std::vector< VkShaderModule > | createdModules |
| std::vector< uint32_t > ShaderManager::compileGLSLToSpirv | ( | VkShaderStageFlagBits | shaderType, |
| ObjectType | object | ||
| ) |
Compiles a given GLSL code to SPIRV.
| glslCode | GLSL code as a string |
| shaderType | Shader type enum |


| VkPipelineShaderStageCreateInfo ShaderManager::createFragmentShaderInfo | ( | VkDevice | logDevice, |
| ObjectType | objectType | ||
| ) |
Creates a fragment shader info to be used in pipeline creation.
| logDevice | Logical device. |


|
static |
Creates a shader module from a file.
| logDevice | The logical device. |
| stage | Shader stage |


| VkPipelineShaderStageCreateInfo ShaderManager::createVertexShaderInfo | ( | VkDevice | logDevice, |
| ObjectType | objectType | ||
| ) |
Creates a vertex shader info to be used in pipeline creation.
| logDevice | Logical device. |


| void ShaderManager::destroyShaderModules | ( | VkDevice | logDevice | ) |
Destroys created shader modules. This function can be called after pipeline creation.
| logDevice | The logical device. |

| std::string ShaderManager::getShaderCode | ( | VkShaderStageFlags | stage, |
| ObjectType | object | ||
| ) |
Returns the shader code as a string corresponding to the given stage and object type.
| stage | of the shader |
| object | type |

|
static |
Reads a file and returns a vector of chars.
| rFilename | Name of the file to read. |
|
static |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |