resource group for loading shader sources that give you back VkShaderModule handles
More...
|
| | shader_resource_group (const VkDevice &p_device, const ::vk::shader_resource_info &p_info) |
| | constructs a new shader_resource_group
|
| |
| bool | valid () const |
| |
| void | vertex_attributes (std::span< const ::vk::vertex_attribute > p_attributes) |
| | sets the vertex attributes with the shader modules that gets used by ::vk::pipeline (graphics pipeline)
|
| |
| std::vector<::vk::shader_handle > | handles () const |
| | this gives you back the shader module handles along with each of their stages they have been compiled with
|
| |
| std::span< const VkVertexInputAttributeDescription > | vertex_attributes () const |
| |
| std::span< const VkVertexInputBindingDescription > | vertex_bind_attributes () const |
| |
|
void | destroy () |
| | explicit cleanup to the VkShaderModule handles created with this particular resource group
|
| |
| bool | reload_requested () const |
| | ideally used for requesting for reload
|
| |
resource group for loading shader sources that give you back VkShaderModule handles
Responsibility is to load stages of shader sources whether that be through precompiler .spv files or through shaderc runtime shader compilation
Responsibility is loading and streaming the amount of bytes from the compiled shader sources into the vulkan shader module handles
resource groups up the creation and management of vulkan shader modules.