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

Classes

struct  castor3d::shader::ObjectIds
 
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_ObjectIdsDataOpt(writer, binding, set, enable)
 

Fonctions

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::UInt drawID, ProgramFlags const &flags)
 
C3D_API sdw::UInt castor3d::shader::getNodeId (sdw::Array< shader::ObjectsIds > const &data, sdw::UInt pipelineID, sdw::UInt drawID)
 
sdw::UInt castor3d::shader::getNodeId (sdw::Array< shader::ObjectsIds > const &data, sdw::Array< sdw::UVec4 > const &instances, sdw::UInt pipelineID, sdw::UInt drawID, ProgramFlags const &flags)
 

Documentation des macros

◆ 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: ObjectIdsUbo.hpp:43
static C3D_API castor::String const DataName
Definition: ObjectIdsUbo.hpp:67
static C3D_API castor::String const BufferName
Definition: ObjectIdsUbo.hpp:66

◆ C3D_ObjectIdsDataOpt

#define C3D_ObjectIdsDataOpt (   writer,
  binding,
  set,
  enable 
)
Valeur :
sdw::Ssbo objectIdsDataBuffer{ writer\
, uint32_t( binding )\
, uint32_t( set )\
, ast::type::MemoryLayout::eStd430\
, enable };\
auto c3d_objectIdsData = objectIdsDataBuffer.declMemberArray< castor3d::shader::ObjectsIds >( castor3d::shader::ObjectsIds::DataName, enable );\
objectIdsDataBuffer.end()