Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Attributes | List of all members
castor3d::shader::BufferBase Class Reference

#include <GlslBuffer.hpp>

Inheritance diagram for castor3d::shader::BufferBase:
Inheritance graph
[legend]
Collaboration diagram for castor3d::shader::BufferBase:
Collaboration graph
[legend]

Public Member Functions

 BufferBase (sdw::ShaderWriter &writer, castor::MbString blockName, castor::MbString variableName, uint32_t binding, uint32_t set, bool enabled=true)
 
sdw::UInt getFirstCount () const
 
sdw::UInt getSecondCount () const
 
sdw::UInt getThirdCount () const
 
sdw::UInt getFourthCount () const
 
sdw::UInt getCount () const
 
bool isEnabled () const noexcept
 
sdw::ShaderWriter * getWriter () const noexcept
 

Protected Attributes

sdw::ShaderWriter & m_writer
 
castor::RawUniquePtr< sdw::StorageBuffer > m_ssbo
 
castor::MbString m_variableName
 

Constructor & Destructor Documentation

◆ BufferBase()

castor3d::shader::BufferBase::BufferBase ( sdw::ShaderWriter & writer,
castor::MbString blockName,
castor::MbString variableName,
uint32_t binding,
uint32_t set,
bool enabled = true )
inline

References m_ssbo, and m_writer.

Member Function Documentation

◆ getCount()

sdw::UInt castor3d::shader::BufferBase::getCount ( ) const
inline

References getFirstCount().

Here is the call graph for this function:

◆ getFirstCount()

sdw::UInt castor3d::shader::BufferBase::getFirstCount ( ) const
inline

References m_ssbo, m_variableName, and m_writer.

Referenced by getCount(), and castor3d::shader::LightsBuffer::getDirectionalsEnd().

Here is the caller graph for this function:

◆ getFourthCount()

sdw::UInt castor3d::shader::BufferBase::getFourthCount ( ) const
inline

References m_ssbo, m_variableName, and m_writer.

Referenced by castor3d::shader::LightsBuffer::getClusteredGridScale().

Here is the caller graph for this function:

◆ getSecondCount()

sdw::UInt castor3d::shader::BufferBase::getSecondCount ( ) const
inline

References m_ssbo, m_variableName, and m_writer.

Referenced by castor3d::shader::Materials::getPassTypesCount(), and castor3d::shader::LightsBuffer::getPointsEnd().

Here is the caller graph for this function:

◆ getThirdCount()

sdw::UInt castor3d::shader::BufferBase::getThirdCount ( ) const
inline

References m_ssbo, m_variableName, and m_writer.

Referenced by castor3d::shader::LightsBuffer::getSpotsEnd().

Here is the caller graph for this function:

◆ getWriter()

sdw::ShaderWriter * castor3d::shader::BufferBase::getWriter ( ) const
inlinenoexcept

References m_writer.

◆ isEnabled()

bool castor3d::shader::BufferBase::isEnabled ( ) const
inlinenoexcept

References m_ssbo.

Referenced by castor3d::shader::BufferT< DataT >::BufferT(), and castor3d::shader::BufferT< DataT >::getData().

Here is the caller graph for this function:

Member Data Documentation

◆ m_ssbo

castor::RawUniquePtr< sdw::StorageBuffer > castor3d::shader::BufferBase::m_ssbo
protected

◆ m_variableName

castor::MbString castor3d::shader::BufferBase::m_variableName
protected

◆ m_writer

sdw::ShaderWriter& castor3d::shader::BufferBase::m_writer
protected

The documentation for this class was generated from the following file: