Hymn to Beauty
C++ 3D Engine
Video::VulkanShader Class Reference

Vulkan implementation of Shader. More...

#include <VulkanShader.hpp>

Inheritance diagram for Video::VulkanShader:
Video::Shader

Public Member Functions

 VulkanShader (VkDevice device, const ShaderSource &shaderSource, Type type)
 Create new Vulkan shader. More...
 
 ~VulkanShader () final
 Destructor. More...
 
VkShaderModule GetShaderModule () const
 Get the Vulkan shader module. More...
 
VkShaderStageFlagBits GetShaderStage () const
 Get the shader stage. More...
 
const ShaderSource::ReflectionInfo & GetReflectionInfo () const
 Get reflection info. More...
 
- Public Member Functions inherited from Video::Shader
 Shader ()
 Create a new shader. More...
 
virtual ~Shader ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Video::Shader
enum class  Type { VERTEX_SHADER , FRAGMENT_SHADER , COMPUTE_SHADER }
 The type of shader. More...
 

Detailed Description

Vulkan implementation of Shader.

Constructor & Destructor Documentation

◆ VulkanShader()

Video::VulkanShader::VulkanShader ( VkDevice  device,
const ShaderSource &  shaderSource,
Type  type 
)

Create new Vulkan shader.

Parameters
deviceVulkan device.
shaderSourceThe source of the shader, generated by the shader processor.
typeThe type of shader to create.

◆ ~VulkanShader()

Video::VulkanShader::~VulkanShader ( )
final

Destructor.

Member Function Documentation

◆ GetReflectionInfo()

const ShaderSource::ReflectionInfo & Video::VulkanShader::GetReflectionInfo ( ) const

Get reflection info.

Returns
The reflection info generated by the shader processor.

◆ GetShaderModule()

VkShaderModule Video::VulkanShader::GetShaderModule ( ) const

Get the Vulkan shader module.

Returns
The Vulkan shader module.

◆ GetShaderStage()

VkShaderStageFlagBits Video::VulkanShader::GetShaderStage ( ) const

Get the shader stage.

Returns
The shader stage.

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