Castor3D 0.16.0
Multiplatform 3D engine
|
A UniformBuffer and an offset from the GpuBuffer. More...
#include <UniformBufferOffset.hpp>
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 |
PoolUniformBuffer & | getPool () |
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 } |
A UniformBuffer and an offset from the GpuBuffer.
|
inline |
References castor3d::UniformBufferOffsetT< DataT >::getBuffer(), castor3d::UniformBufferOffsetT< DataT >::getByteOffset(), and castor3d::UniformBufferOffsetT< DataT >::getByteRange().
Referenced by castor3d::CameraUbo::createPassBinding(), castor3d::ClustersUbo::createPassBinding(), castor3d::ColourGradingUbo::createPassBinding(), castor3d::LpvGridConfigUbo::createPassBinding(), castor3d::LpvLightConfigUbo::createPassBinding(), castor3d::SceneUbo::createPassBinding(), castor3d::SsaoConfigUbo::createPassBinding(), castor3d::VoxelizerUbo::createPassBinding(), and castor3d::LayeredLpvGridConfigUbo::createPassBinding().
|
inline |
References castor3d::PoolUniformBuffer::getBuffer(), castor3d::UniformBufferOffsetT< DataT >::offset, and castor3d::UniformBufferOffsetT< DataT >::range.
Referenced by castor3d::CameraUbo::createSizedBinding(), castor3d::ClustersUbo::createSizedBinding(), castor3d::ColourGradingUbo::createSizedBinding(), castor3d::LayeredLpvGridConfigUbo::createSizedBinding(), castor3d::LpvGridConfigUbo::createSizedBinding(), castor3d::LpvLightConfigUbo::createSizedBinding(), castor3d::SceneUbo::createSizedBinding(), castor3d::ShadowMapUbo::createSizedBinding(), castor3d::SsaoConfigUbo::createSizedBinding(), and castor3d::VoxelizerUbo::createSizedBinding().
|
inline |
|
inline |
|
inline |
References castor3d::PoolUniformBuffer::getBuffer().
Referenced by castor3d::UniformBufferOffsetT< DataT >::createPassBinding().
|
inline |
References castor3d::PoolUniformBuffer::getBuffer(), and castor3d::UniformBufferOffsetT< DataT >::offset.
Referenced by castor3d::UniformBufferOffsetT< DataT >::createPassBinding().
|
inline |
References castor3d::PoolUniformBuffer::getBuffer(), and castor3d::UniformBufferOffsetT< DataT >::range.
Referenced by castor3d::UniformBufferOffsetT< DataT >::createPassBinding().
|
inline |
References castor3d::PoolUniformBuffer::getAlignedSize(), castor3d::PoolUniformBuffer::getData(), and castor3d::UniformBufferOffsetT< DataT >::offset.
|
inline |
References castor3d::PoolUniformBuffer::getAlignedSize(), castor3d::PoolUniformBuffer::getData(), and castor3d::UniformBufferOffsetT< DataT >::offset.
|
inline |
References castor3d::PoolUniformBuffer::getBuffer(), castor3d::UniformBufferOffsetT< DataT >::offset, and castor3d::UniformBufferOffsetT< DataT >::range.
Referenced by castor3d::CameraUbo::getDescriptorWrite(), castor3d::ClustersUbo::getDescriptorWrite(), castor3d::LayeredLpvGridConfigUbo::getDescriptorWrite(), castor3d::LpvGridConfigUbo::getDescriptorWrite(), castor3d::SceneUbo::getDescriptorWrite(), castor3d::ShadowMapUbo::getDescriptorWrite(), and castor3d::VoxelizerUbo::getDescriptorWrite().
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
VkMemoryPropertyFlags castor3d::UniformBufferOffsetT< DataT >::flags { 0u } |
uint32_t castor3d::UniformBufferOffsetT< DataT >::offset { 0u } |
Referenced by castor3d::UniformBufferOffsetT< DataT >::createSizedBinding(), castor3d::UniformBufferOffsetT< DataT >::getByteOffset(), castor3d::UniformBufferOffsetT< DataT >::getData(), castor3d::UniformBufferOffsetT< DataT >::getData(), and castor3d::UniformBufferOffsetT< DataT >::getDescriptorWrite().
uint32_t castor3d::UniformBufferOffsetT< DataT >::range { 0u } |