![]() |
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 () | |
| auto | getDescriptorSet () const |
| auto | getDescriptorLayout () const |
| void | update () |
Static Public Attributes | |
| static constexpr uint32 | SET {0} |
| static constexpr vireo::DescriptorIndex | BINDING_MATERIALS {0} |
| static constexpr vireo::DescriptorIndex | BINDING_SURFACES {1} |
| static constexpr vireo::DescriptorIndex | BINDING_TEXTURES {2} |
| GlobalDescriptorSet | ( | ) |
Constructs a new GlobalDescriptorSet.
| ~GlobalDescriptorSet | ( | ) |
Destroys the GlobalDescriptorSet.
|
inline |
Returns the global descriptor set layout.
|
inline |
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 materials buffer.
|
staticconstexpr |
Descriptor binding index for the mesh surfaces buffer.
|
staticconstexpr |
Descriptor binding index for the textures array/sampled images.
|
staticconstexpr |
Descriptor set index used by pipelines to bind shared resources.