Castor3D 0.12.0
Multiplatform 3D engine
Classes | Espaces de nommage | Macros | Fonctions
Référence du fichier ModelDataUbo.hpp

Classes

struct  castor3d::shader::ModelIndices
 
struct  castor3d::shader::ObjectsIds
 
struct  castor3d::shader::ObjectsIds::Ids
 

Espaces de nommage

namespace  castor3d
 
namespace  castor3d::shader
 

Macros

#define C3D_ObjectIdsData(writer, binding, set)
 
#define C3D_ModelsData(writer, binding, set)
 
#define C3D_ModelData(writer, binding, set)
 

Fonctions

template<ast::var::Flag FlagT>
static shader::ObjectsIds::Ids castor3d::shader::getIds (sdw::Array< shader::ObjectsIds > const &data, shader::VertexSurfaceT< FlagT > const &surface, sdw::UInt pipelineID, sdw::Int drawID, ProgramFlags const &flags)
 
template<ast::var::Flag FlagT>
static sdw::UInt castor3d::shader::getNodeId (sdw::Array< shader::ObjectsIds > const &data, shader::VertexSurfaceT< FlagT > const &surface, sdw::UInt pipelineID, sdw::Int drawID, ProgramFlags const &flags)
 
C3D_API sdw::UInt castor3d::shader::getNodeId (sdw::Array< shader::ObjectsIds > const &data, sdw::UInt pipelineID, sdw::Int drawID)
 

Documentation des macros

◆ C3D_ModelData

#define C3D_ModelData (   writer,
  binding,
  set 
)
Valeur :
sdw::Ubo modelBufferIndices{ writer\
, uint32_t( binding )\
, uint32_t( set )\
, ast::type::MemoryLayout::eStd140\
, true };\
auto c3d_modelData = modelBufferIndices.declMember< castor3d::shader::ModelIndices >( castor3d::shader::ModelIndices::DataName );\
modelBufferIndices.end()
Definition: ModelDataUbo.hpp:17
static C3D_API castor::String const DataName
Definition: ModelDataUbo.hpp:73
static C3D_API castor::String const BufferName
Definition: ModelDataUbo.hpp:72

◆ C3D_ModelsData

#define C3D_ModelsData (   writer,
  binding,
  set 
)
Valeur :
sdw::Ssbo modelsBufferIndices{ writer\
, uint32_t( binding )\
, uint32_t( set )\
, ast::type::MemoryLayout::eStd430\
, true };\
auto c3d_modelsData = modelsBufferIndices.declMemberArray< castor3d::shader::ModelIndices >( castor3d::shader::ModelIndices::DataName );\
modelsBufferIndices.end()

◆ C3D_ObjectIdsData

#define C3D_ObjectIdsData (   writer,
  binding,
  set 
)
Valeur :
sdw::Ssbo objectIdsDataBuffer{ writer\
, uint32_t( binding )\
, uint32_t( set )\
, ast::type::MemoryLayout::eStd430\
, true };\
auto c3d_objectIdsData = objectIdsDataBuffer.declMemberArray< castor3d::shader::ObjectsIds >( castor3d::shader::ObjectsIds::DataName );\
objectIdsDataBuffer.end()
Definition: ModelDataUbo.hpp:94
static C3D_API castor::String const DataName
Definition: ModelDataUbo.hpp:120
static C3D_API castor::String const BufferName
Definition: ModelDataUbo.hpp:119