Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Public Attributes | List of all members
castor3d::UniformBufferOffsetT< DataT > Struct Template Reference

A UniformBuffer and an offset from the GpuBuffer. More...

#include <UniformBufferOffset.hpp>

Inheritance diagram for castor3d::UniformBufferOffsetT< DataT >:
Inheritance graph
[legend]

Public Member Functions

void setPool (PoolUniformBuffer &pool)
 
 operator bool () const
 
VkDeviceSize getByteOffset () const
 
VkDeviceSize getByteRange () const
 
DataT const & getData () const
 
DataT & getData ()
 
PoolUniformBuffer const & getPool () const
 
PoolUniformBuffergetPool ()
 
ashes::UniformBuffer const & getBuffer () const
 
ashes::UniformBuffer & getBuffer ()
 
uint32_t getAlignedSize () const
 
void createPassBinding (crg::FramePass &pass, castor::MbString const &name, uint32_t binding) const
 
void createSizedBinding (ashes::DescriptorSet &descriptorSet, VkDescriptorSetLayoutBinding const &layoutBinding) const
 
ashes::WriteDescriptorSet getDescriptorWrite (uint32_t dstBinding, uint32_t dstArrayElement=0u) const
 

Public Attributes

VkMemoryPropertyFlags flags { 0u }
 
uint32_t offset { 0u }
 
uint32_t range { 0u }
 

Detailed Description

template<typename DataT>
struct castor3d::UniformBufferOffsetT< DataT >

A UniformBuffer and an offset from the GpuBuffer.

Member Function Documentation

◆ createPassBinding()

template<typename DataT >
void castor3d::UniformBufferOffsetT< DataT >::createPassBinding ( crg::FramePass & pass,
castor::MbString const & name,
uint32_t binding ) const
inline

◆ createSizedBinding()

template<typename DataT >
void castor3d::UniformBufferOffsetT< DataT >::createSizedBinding ( ashes::DescriptorSet & descriptorSet,
VkDescriptorSetLayoutBinding const & layoutBinding ) const
inline

◆ getAlignedSize()

template<typename DataT >
uint32_t castor3d::UniformBufferOffsetT< DataT >::getAlignedSize ( ) const
inline

References castor3d::PoolUniformBuffer::getAlignedSize().

Here is the call graph for this function:

◆ getBuffer() [1/2]

template<typename DataT >
ashes::UniformBuffer & castor3d::UniformBufferOffsetT< DataT >::getBuffer ( )
inline

References castor3d::PoolUniformBuffer::getBuffer().

Here is the call graph for this function:

◆ getBuffer() [2/2]

template<typename DataT >
ashes::UniformBuffer const & castor3d::UniformBufferOffsetT< DataT >::getBuffer ( ) const
inline

References castor3d::PoolUniformBuffer::getBuffer().

Referenced by castor3d::UniformBufferOffsetT< DataT >::createPassBinding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getByteOffset()

template<typename DataT >
VkDeviceSize castor3d::UniformBufferOffsetT< DataT >::getByteOffset ( ) const
inline

References castor3d::PoolUniformBuffer::getBuffer(), and castor3d::UniformBufferOffsetT< DataT >::offset.

Referenced by castor3d::UniformBufferOffsetT< DataT >::createPassBinding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getByteRange()

template<typename DataT >
VkDeviceSize castor3d::UniformBufferOffsetT< DataT >::getByteRange ( ) const
inline

References castor3d::PoolUniformBuffer::getBuffer(), and castor3d::UniformBufferOffsetT< DataT >::range.

Referenced by castor3d::UniformBufferOffsetT< DataT >::createPassBinding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getData() [1/2]

template<typename DataT >
DataT & castor3d::UniformBufferOffsetT< DataT >::getData ( )
inline

◆ getData() [2/2]

template<typename DataT >
DataT const & castor3d::UniformBufferOffsetT< DataT >::getData ( ) const
inline

◆ getDescriptorWrite()

template<typename DataT >
ashes::WriteDescriptorSet castor3d::UniformBufferOffsetT< DataT >::getDescriptorWrite ( uint32_t dstBinding,
uint32_t dstArrayElement = 0u ) const
inline

◆ getPool() [1/2]

template<typename DataT >
PoolUniformBuffer & castor3d::UniformBufferOffsetT< DataT >::getPool ( )
inline

◆ getPool() [2/2]

template<typename DataT >
PoolUniformBuffer const & castor3d::UniformBufferOffsetT< DataT >::getPool ( ) const
inline

◆ operator bool()

template<typename DataT >
castor3d::UniformBufferOffsetT< DataT >::operator bool ( ) const
inlineexplicit

References castor3d::PoolUniformBuffer::hasBuffer().

Here is the call graph for this function:

◆ setPool()

template<typename DataT >
void castor3d::UniformBufferOffsetT< DataT >::setPool ( PoolUniformBuffer & pool)
inline

Member Data Documentation

◆ flags

template<typename DataT >
VkMemoryPropertyFlags castor3d::UniformBufferOffsetT< DataT >::flags { 0u }

◆ offset

template<typename DataT >
uint32_t castor3d::UniformBufferOffsetT< DataT >::offset { 0u }

◆ range

template<typename DataT >
uint32_t castor3d::UniformBufferOffsetT< DataT >::range { 0u }

The documentation for this struct was generated from the following files: