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

Classes

struct  castor3d::shader::ObjectsIds
 

Namespaces

namespace  castor3d
 
namespace  castor3d::shader
 

Macros

#define C3D_ObjectIdsData(writer, flags, binding, set)
 

Functions

template<ast::var::Flag FlagT>
static sdw::UInt castor3d::shader::getNodeId (sdw::Array< shader::ObjectsIds > const &data, shader::MeshVertexT< FlagT > const &surface, sdw::UInt pipelineID, sdw::UInt drawID, PipelineFlags 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, PipelineFlags const &flags)
 
sdw::UInt castor3d::shader::getNodeId (sdw::Array< shader::ObjectsIds > const &data, sdw::Array< shader::ObjectIds > const &instances, sdw::UInt pipelineID, sdw::UInt drawID, PipelineFlags const &flags)
 

Macro Definition Documentation

◆ C3D_ObjectIdsData

#define C3D_ObjectIdsData ( writer,
flags,
binding,
set )
Value:
sdw::StorageBuffer objectIdsDataBuffer{ writer\
, "C3D_ObjectsIds"\
, "c3d_objectsIds"\
, uint32_t( binding )\
, uint32_t( set )\
, ast::type::MemoryLayout::eStd430\
, !flags.enableInstantiation() };\
auto c3d_objectIdsData = objectIdsDataBuffer.declMemberArray< castor3d::shader::ObjectsIds >( "d"\
, !flags.enableInstantiation() );\
objectIdsDataBuffer.end()
Definition ObjectIdsUbo.hpp:19