![]() |
Lysa
0.0
Lysa 3D Engine
|
Global descriptor set for GPU-ready shared resources.
This class manages a descriptor set that provides access to global resources such as materials, mesh surfaces, and textures, which are shared across multiple pipelines.
Public Member Functions | |
| GlobalDescriptorSet () | |
| ~GlobalDescriptorSet () | |
| std::shared_ptr< vireo::DescriptorSet > | getDescriptorSet (uint32 index) const |
| std::shared_ptr< vireo::DescriptorLayout > | getDescriptorLayout (uint32 index) const |
| void | update () |
Static Public Attributes | |
| static constexpr vireo::DescriptorIndex | BINDING_MATERIALS {0} |
| static constexpr vireo::DescriptorIndex | BINDING_SURFACES {1} |
| static constexpr vireo::DescriptorIndex | BINDING_MESHES {2} |
| static constexpr vireo::DescriptorIndex | BINDING_IMAGES {3} |
| static constexpr vireo::DescriptorIndex | BINDING_SHADER_MATERIAL_PARAMETERS {0} |
| GlobalDescriptorSet | ( | ) |
Constructs a new GlobalDescriptorSet.
| ~GlobalDescriptorSet | ( | ) |
Destroys the GlobalDescriptorSet.
| std::shared_ptr<vireo::DescriptorLayout> getDescriptorLayout | ( | uint32 | index | ) | const |
Returns the global descriptor set layout.
| std::shared_ptr<vireo::DescriptorSet> getDescriptorSet | ( | uint32 | index | ) | const |
Returns the global descriptor set that exposes resources to shaders.
| void update | ( | ) |
Updates the global descriptor set if needed.
|
staticconstexpr |
Descriptor binding index for the textures array/sampled images.
|
staticconstexpr |
Descriptor binding index for the materials buffer.
|
staticconstexpr |
Descriptor binding index for the meshes buffer.
|
staticconstexpr |
Descriptor binding index for the shader material parameters SSBO.
|
staticconstexpr |
Descriptor binding index for the meshes surfaces buffer.