![]() |
LiteFX 0.3.1.2022
Computer Graphics Engine
|
Implements a Vulkan IShaderModule. More...
#include <vulkan.hpp>
Inherits LiteFX::Rendering::IShaderModule, and LiteFX::Resource< VkShaderModule >.
Classes | |
class | VulkanShaderModuleImpl |
Public Member Functions | |
VulkanShaderModule (const VulkanDevice &device, const ShaderStage &type, const String &fileName, const String &entryPoint="main") | |
Initializes a new Vulkan shader module. More... | |
VulkanShaderModule (const VulkanDevice &device, const ShaderStage &type, std::istream &stream, const String &name, const String &entryPoint="main") | |
Initializes a new Vulkan shader module. More... | |
VulkanShaderModule (const VulkanShaderModule &) noexcept=delete | |
VulkanShaderModule (VulkanShaderModule &&) noexcept=delete | |
virtual | ~VulkanShaderModule () noexcept |
virtual const String & | fileName () const noexcept override |
Returns the file name of the shader module. More... | |
virtual const String & | entryPoint () const noexcept override |
Returns the name of the shader module entry point. More... | |
virtual const ShaderStage & | type () const noexcept override |
Returns the type of the shader module. More... | |
virtual const String & | bytecode () const noexcept |
Returns the shader byte code. More... | |
virtual VkPipelineShaderStageCreateInfo | shaderStageDefinition () const |
Returns the shader stage creation info for convenience. More... | |
![]() | |
virtual | ~IShaderModule () noexcept=default |
virtual const ShaderStage & | type () const noexcept=0 |
Returns the type of the shader module. More... | |
virtual const String & | fileName () const noexcept=0 |
Returns the file name of the shader module. More... | |
virtual const String & | entryPoint () const noexcept=0 |
Returns the name of the shader module entry point. More... | |
![]() | |
Resource (const Resource &)=delete | |
Resource (Resource &&)=delete | |
virtual | ~Resource () noexcept=default |
const VkShaderModule & | handle () const noexcept override |
Returns the resource managed by the class. More... | |
![]() | |
virtual | ~IResource () noexcept=default |
virtual const VkShaderModule & | handle () const noexcept=0 |
Returns the resource managed by the class. More... | |
Additional Inherited Members | |
![]() | |
Resource (const VkShaderModule handle) noexcept | |
Initializes the managed resource. More... | |
VkShaderModule & | handle () noexcept override |
Returns the resource managed by the class. More... | |
virtual VkShaderModule & | handle () noexcept=0 |
Returns the resource managed by the class. More... | |
Implements a Vulkan IShaderModule.
|
explicit |
Initializes a new Vulkan shader module.
device | The parent device, this shader module has been created from. |
type | The shader stage, this module is used in. |
fileName | The file name of the module source. |
entryPoint | The name of the module entry point. |
|
explicit |
Initializes a new Vulkan shader module.
device | The parent device, this shader module has been created from. |
type | The shader stage, this module is used in. |
stream | The file stream of the module source. |
name | The file name of the module source. |
entryPoint | The name of the module entry point. |
|
deletenoexcept |
|
deletenoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
Returns the shader byte code.
|
overridevirtualnoexcept |
Returns the name of the shader module entry point.
Implements LiteFX::Rendering::IShaderModule.
|
overridevirtualnoexcept |
Returns the file name of the shader module.
Implements LiteFX::Rendering::IShaderModule.
|
virtual |
Returns the shader stage creation info for convenience.
|
overridevirtualnoexcept |
Returns the type of the shader module.
Implements LiteFX::Rendering::IShaderModule.