Castor3D 0.16.0
Multiplatform 3D engine
Classes | Namespaces | Macros
ClustersUbo.hpp File Reference

Classes

struct  castor3d::shader::ClustersData
 
class  castor3d::ClustersUbo
 

Namespaces

namespace  castor3d
 
namespace  castor3d::shader
 

Macros

#define C3D_ClustersEx(writer, binding, set, enabled, config)
 
#define C3D_Clusters(writer, binding, set, config)    C3D_ClustersEx( writer, binding, set, true, config )
 

Macro Definition Documentation

◆ C3D_Clusters

#define C3D_Clusters ( writer,
binding,
set,
config )    C3D_ClustersEx( writer, binding, set, true, config )

◆ C3D_ClustersEx

#define C3D_ClustersEx ( writer,
binding,
set,
enabled,
config )
Value:
sdw::UniformBuffer clusters{ writer \
, "C3D_Clusters" \
, "c3d_clusters" \
, ( enabled ? uint32_t( binding ) : 0u ) \
, uint32_t( set ) \
, ast::type::MemoryLayout::eStd140 \
, enabled }; \
auto c3d_clustersData = clusters.declMember< castor3d::shader::ClustersData >( "c", enabled ); \
c3d_clustersData.setConfig( config ); \
clusters.end()
Definition ClustersUbo.hpp:36
void setConfig(ClustersConfig const *config)
Definition ClustersUbo.hpp:44