|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
Vulkan vertex+fragment shader pair, loaded from precompiled SPIR-V modules. More...
#include <VulkanShader.hpp>
Public Member Functions | |
| VulkanShader (VkDevice dev) | |
| ~VulkanShader () | |
| virtual void | bind () override |
| No-op: Vulkan binds shader stages via pipeline creation, not a runtime bind call. | |
| virtual bool | compile (const std::string &shaderPath) override |
| Loads the combined-path convention's .vert.spv/.frag.spv pair. | |
| virtual bool | compile (const std::string &vert, const std::string &frag) override |
| Loads separate vertex and fragment SPIR-V modules. | |
| bool | compileVertexOnly (const std::string &vertPath) |
| Loads only the vertex stage (used for depth-only/shadow pipelines with no fragment shader). | |
| VkPipelineShaderStageCreateInfo | GetFragInfo () |
| VkShaderModule | GetFragmentShader () |
| VkPipelineShaderStageCreateInfo | GetVertexInfo () |
| VkShaderModule | GetVertexShader () |
| VkShaderModule | LoadSPIRV (const char *path) |
| Reads a .spv file and creates a VkShaderModule from it. | |
| Public Member Functions inherited from Sleak::RenderEngine::Shader | |
| virtual | ~Shader ()=default |
Vulkan vertex+fragment shader pair, loaded from precompiled SPIR-V modules.
Definition at line 12 of file VulkanShader.hpp.
|
inline |
Definition at line 14 of file VulkanShader.hpp.
| Sleak::RenderEngine::VulkanShader::~VulkanShader | ( | ) |
Definition at line 11 of file VulkanShader.cpp.
|
overridevirtual |
No-op: Vulkan binds shader stages via pipeline creation, not a runtime bind call.
Implements Sleak::RenderEngine::Shader.
Definition at line 89 of file VulkanShader.cpp.
|
overridevirtual |
Loads the combined-path convention's .vert.spv/.frag.spv pair.
Implements Sleak::RenderEngine::Shader.
Definition at line 18 of file VulkanShader.cpp.
|
overridevirtual |
Loads separate vertex and fragment SPIR-V modules.
Implements Sleak::RenderEngine::Shader.
Definition at line 28 of file VulkanShader.cpp.
| bool Sleak::RenderEngine::VulkanShader::compileVertexOnly | ( | const std::string & | vertPath | ) |
Loads only the vertex stage (used for depth-only/shadow pipelines with no fragment shader).
Definition at line 62 of file VulkanShader.cpp.
|
inline |
Definition at line 32 of file VulkanShader.hpp.
|
inline |
Definition at line 29 of file VulkanShader.hpp.
|
inline |
Definition at line 31 of file VulkanShader.hpp.
|
inline |
Definition at line 28 of file VulkanShader.hpp.
| VkShaderModule Sleak::RenderEngine::VulkanShader::LoadSPIRV | ( | const char * | path | ) |
Reads a .spv file and creates a VkShaderModule from it.
Definition at line 83 of file VulkanShader.cpp.