Castor3D 0.16.0
Multiplatform 3D engine
|
#include <CameraUbo.hpp>
Public Types | |
using | Configuration = CameraUboConfiguration |
Public Member Functions | |
C3D_API | CameraUbo (CameraUbo const &rhs)=delete |
C3D_API CameraUbo & | operator= (CameraUbo const &rhs)=delete |
C3D_API | CameraUbo (CameraUbo &&rhs) noexcept=default |
C3D_API CameraUbo & | operator= (CameraUbo &&rhs) noexcept=delete |
C3D_API | CameraUbo (RenderDevice const &device) |
C3D_API | ~CameraUbo () noexcept |
C3D_API Configuration & | cpuUpdate (castor::Size const &size, Camera const &camera, castor::Matrix4x4f const &view, castor::Matrix4x4f const &projection, uint32_t debugIndex, castor::Point2f const &jitter=castor::Point2f{}) |
Updates the UBO from given values. | |
C3D_API Configuration & | cpuUpdate (Camera const &camera, castor::Matrix4x4f const &view, castor::Matrix4x4f const &projection, uint32_t debugIndex, bool safeBanded, castor::Point2f const &jitter=castor::Point2f{}) |
Updates the UBO from given values. | |
C3D_API Configuration & | cpuUpdate (Camera const &camera, uint32_t debugIndex, bool safeBanded, castor::Point2f const &jitter=castor::Point2f{}) |
Updates the UBO from given values. | |
C3D_API Configuration & | cpuUpdate (castor::Size const &size, Camera const &camera, uint32_t debugIndex, bool safeBanded, castor::Point2f const &jitter=castor::Point2f{}) |
Updates the UBO from given values. | |
C3D_API Configuration & | cpuUpdate (castor::Size const &size, castor::Matrix4x4f const &view, castor::Matrix4x4f const &projection, uint32_t debugIndex, Frustum const &frustum, castor::Point2f const &jitter=castor::Point2f{}) |
Updates the UBO from given values. | |
C3D_API Configuration & | cpuUpdate (castor::Size const &size, castor::Matrix4x4f const &projection, uint32_t debugIndex) |
Updates the UBO from given values. | |
void | createPassBinding (crg::FramePass &pass, uint32_t binding) const |
void | createSizedBinding (ashes::DescriptorSet &descriptorSet, VkDescriptorSetLayoutBinding const &layoutBinding) const |
ashes::WriteDescriptorSet | getDescriptorWrite (uint32_t dstBinding, uint32_t dstArrayElement=0u) const |
UniformBufferOffsetT< Configuration > const & | getUbo () const |
|
explicit |
|
noexcept |
C3D_API Configuration & castor3d::CameraUbo::cpuUpdate | ( | Camera const & | camera, |
castor::Matrix4x4f const & | view, | ||
castor::Matrix4x4f const & | projection, | ||
uint32_t | debugIndex, | ||
bool | safeBanded, | ||
castor::Point2f const & | jitter = castor::Point2f{} ) |
Updates the UBO from given values.
[in] | camera | The camera holding the data. |
[in] | view | The new view matrix. |
[in] | projection | The new projection matrix. |
[in] | debugIndex | The currently selected debug data index. |
[in] | safeBanded | true to use safebanded size. |
[in] | jitter | The jittering value. |
C3D_API Configuration & castor3d::CameraUbo::cpuUpdate | ( | Camera const & | camera, |
uint32_t | debugIndex, | ||
bool | safeBanded, | ||
castor::Point2f const & | jitter = castor::Point2f{} ) |
Updates the UBO from given values.
[in] | camera | The camera holding the data. |
[in] | debugIndex | The currently selected debug data index. |
[in] | safeBanded | true to use safebanded size and projection matrix. |
[in] | jitter | The jittering value. |
C3D_API Configuration & castor3d::CameraUbo::cpuUpdate | ( | castor::Size const & | size, |
Camera const & | camera, | ||
castor::Matrix4x4f const & | view, | ||
castor::Matrix4x4f const & | projection, | ||
uint32_t | debugIndex, | ||
castor::Point2f const & | jitter = castor::Point2f{} ) |
Updates the UBO from given values.
[in] | size | The render size. |
[in] | camera | The camera holding the data. |
[in] | view | The new view matrix. |
[in] | projection | The new projection matrix. |
[in] | debugIndex | The currently selected debug data index. |
[in] | jitter | The jittering value. |
C3D_API Configuration & castor3d::CameraUbo::cpuUpdate | ( | castor::Size const & | size, |
Camera const & | camera, | ||
uint32_t | debugIndex, | ||
bool | safeBanded, | ||
castor::Point2f const & | jitter = castor::Point2f{} ) |
Updates the UBO from given values.
[in] | size | The render size. |
[in] | camera | The camera holding the data. |
[in] | debugIndex | The currently selected debug data index. |
[in] | safeBanded | true to use safebanded projection matrix. |
[in] | jitter | The jittering value. |
C3D_API Configuration & castor3d::CameraUbo::cpuUpdate | ( | castor::Size const & | size, |
castor::Matrix4x4f const & | projection, | ||
uint32_t | debugIndex ) |
Updates the UBO from given values.
[in] | size | The render size. |
[in] | projection | The new projection matrix. |
[in] | debugIndex | The currently selected debug data index. |
C3D_API Configuration & castor3d::CameraUbo::cpuUpdate | ( | castor::Size const & | size, |
castor::Matrix4x4f const & | view, | ||
castor::Matrix4x4f const & | projection, | ||
uint32_t | debugIndex, | ||
Frustum const & | frustum, | ||
castor::Point2f const & | jitter = castor::Point2f{} ) |
Updates the UBO from given values.
[in] | size | The render size. |
[in] | view | The new view matrix. |
[in] | projection | The new projection matrix. |
[in] | debugIndex | The currently selected debug data index. |
[in] | frustum | The frustum, from which planes are copied. |
[in] | jitter | The jittering value. |
|
inline |
References castor3d::UniformBufferOffsetT< DataT >::createPassBinding().
|
inline |
References castor3d::UniformBufferOffsetT< DataT >::createSizedBinding().
|
inline |
References castor3d::UniformBufferOffsetT< DataT >::getDescriptorWrite().
|
inline |