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 ()
 
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}
 

Constructor & Destructor Documentation

GlobalDescriptorSet ( )

Constructs a new GlobalDescriptorSet.

~GlobalDescriptorSet ( )

Destroys the GlobalDescriptorSet.

Member Function Documentation

auto getDescriptorLayout ( ) const
inline

Returns the global descriptor set layout.

auto getDescriptorSet ( ) const
inline

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_MATERIALS {0}
staticconstexpr

Descriptor binding index for the materials buffer.

constexpr vireo::DescriptorIndex BINDING_SURFACES {1}
staticconstexpr

Descriptor binding index for the mesh surfaces buffer.

constexpr vireo::DescriptorIndex BINDING_TEXTURES {2}
staticconstexpr

Descriptor binding index for the textures array/sampled images.

constexpr uint32 SET {0}
staticconstexpr

Descriptor set index used by pipelines to bind shared resources.