Represents a Vulkan shader module with specified configuration. More...
Static Public Member Functions | |
| static void | CreateShader () |
| Creates the vulkan shader, this must be called before any use of this shader. | |
Represents a Vulkan shader module with specified configuration.
This class template encapsulates a Vulkan shader, parametrized by the shader's source path, entry point, shader stage, and its descriptor bindings.
| path | A compile-time string literal specifying the file path to the shader source or binary. |
| entrypoint | A compile-time string literal specifying the entry point function name within the shader. |
| stage | The Vulkan shader stage flag indicating the shader type (e.g., vertex, fragment). |
| DescriptorCount | The number of descriptor bindings used by the shader. |
| Descriptors | An array of descriptor binding configurations used by the shader. |
This class facilitates compile-time specification of shader resources and metadata, allowing for type-safe shader management and potentially more efficient shader pipeline creation. CreateShader must be called before using this shader in a pipeline.