![]() |
Raven Engine v0.1
|
Manages compilation and reflection of Vulkan-compatible SPIR-V shaders from HLSL sources. More...
#include <VulkanShaderCompiler.h>
Public Member Functions | |
| VulkanShaderCompiler (VulkanShader *shader, bool forceCompile) | |
| Constructs a VulkanShaderCompiler for a given VulkanShader instance. | |
| const std::unordered_map< ShaderStage, std::string > & | GetEntryPoints () |
| Retrieves the entry points per shader stage. | |
| const std::unordered_map< ShaderStage, std::vector< u32 > > & | GetData () |
| Retrieves compiled SPIR-V binary data per shader stage. | |
Manages compilation and reflection of Vulkan-compatible SPIR-V shaders from HLSL sources.
Reads shader source files, preprocesses multi-stage source, compiles to SPIR-V, and performs reflection to extract shader resource information.
| Raven::VulkanShaderCompiler::VulkanShaderCompiler | ( | VulkanShader * | shader, |
| bool | forceCompile ) |
Constructs a VulkanShaderCompiler for a given VulkanShader instance.
| shader | Pointer to the owning VulkanShader. |
| forceCompile | Flag used to recompile shaders. |
|
inline |
Retrieves compiled SPIR-V binary data per shader stage.
|
inline |
Retrieves the entry points per shader stage.