Lysa  0.0
Lysa 3D Engine
GlobalDescriptorSet Class Reference

Detailed Description

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}
 

Constructor & Destructor Documentation

GlobalDescriptorSet ( )

Constructs a new GlobalDescriptorSet.

~GlobalDescriptorSet ( )

Destroys the GlobalDescriptorSet.

Member Function Documentation

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.

Member Data Documentation

constexpr vireo::DescriptorIndex BINDING_IMAGES {3}
staticconstexpr

Descriptor binding index for the textures array/sampled images.

constexpr vireo::DescriptorIndex BINDING_MATERIALS {0}
staticconstexpr

Descriptor binding index for the materials buffer.

constexpr vireo::DescriptorIndex BINDING_MESHES {2}
staticconstexpr

Descriptor binding index for the meshes buffer.

constexpr vireo::DescriptorIndex BINDING_SHADER_MATERIAL_PARAMETERS {0}
staticconstexpr

Descriptor binding index for the shader material parameters SSBO.

constexpr vireo::DescriptorIndex BINDING_SURFACES {1}
staticconstexpr

Descriptor binding index for the meshes surfaces buffer.