Castor3D 0.16.0
Multiplatform 3D engine
|
Pool for the overlays vertices. More...
#include <OverlayVertexBufferPool.hpp>
Public Types | |
using | Quad = castor::Array< VertexT, CountT > |
Public Member Functions | |
OverlayVertexBufferPoolT (Engine &engine, castor::String const &debugName, RenderDevice const &device, CameraUbo const &cameraUbo, HdrConfigUbo const &hdrConfigUbo, ashes::DescriptorSetLayout const &descriptorLayout, uint32_t count, OverlayTextBufferPoolUPtr textBuf=nullptr) | |
template<typename OverlayT > | |
bool | fill (castor::Size const &renderSize, OverlayT const &overlay, OverlayDrawData &data, bool secondary, FontTexture const *fontTexture) noexcept |
void | upload (UploadData &uploader) |
void | clearDrawPipelineData (FontTexture const *fontTexture) |
OverlayPipelineData & | getDrawPipelineData (OverlayDrawPipeline const &pipeline, FontTexture const *fontTexture, ashes::DescriptorSet const *textDescriptorSet) |
void | fillComputeDescriptorSet (FontTexture const *fontTexture, ashes::DescriptorSetLayout const &descriptorLayout, ashes::DescriptorSet &descriptorSet) const |
OverlayTextBuffer const * | getTextBuffer (FontTexture const &fontTexture) const |
Public Attributes | |
Engine & | engine |
RenderDevice const & | device |
CameraUbo const & | cameraUbo |
HdrConfigUbo const & | hdrConfigUbo |
ashes::DescriptorSetLayout const & | descriptorLayout |
castor::String | name |
ashes::BufferPtr< OverlayUboConfiguration > | overlaysData |
castor::ArrayView< OverlayUboConfiguration > | overlaysBuffer |
GpuBufferBase | vertexBuffer |
uint32_t | allocated {} |
uint32_t | index {} |
ashes::DescriptorSetPoolPtr | descriptorPool |
OverlayTextBufferPoolUPtr | textBuffer |
Static Public Attributes | |
static bool constexpr | isPanel = std::is_same_v< VertexT, OverlayCategory::Vertex > && ( CountT == 6u ) |
static bool constexpr | isBorder = std::is_same_v< VertexT, OverlayCategory::Vertex > && ( CountT == 48u ) |
static bool constexpr | isText = !isPanel && !isBorder |
static bool constexpr | isCpuFilled = isText |
Pool for the overlays vertices.
using castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::Quad = castor::Array< VertexT, CountT > |
castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::OverlayVertexBufferPoolT | ( | Engine & | engine, |
castor::String const & | debugName, | ||
RenderDevice const & | device, | ||
CameraUbo const & | cameraUbo, | ||
HdrConfigUbo const & | hdrConfigUbo, | ||
ashes::DescriptorSetLayout const & | descriptorLayout, | ||
uint32_t | count, | ||
OverlayTextBufferPoolUPtr | textBuf = nullptr ) |
void castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::clearDrawPipelineData | ( | FontTexture const * | fontTexture | ) |
|
noexcept |
void castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::fillComputeDescriptorSet | ( | FontTexture const * | fontTexture, |
ashes::DescriptorSetLayout const & | descriptorLayout, | ||
ashes::DescriptorSet & | descriptorSet ) const |
OverlayPipelineData & castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::getDrawPipelineData | ( | OverlayDrawPipeline const & | pipeline, |
FontTexture const * | fontTexture, | ||
ashes::DescriptorSet const * | textDescriptorSet ) |
OverlayTextBuffer const * castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::getTextBuffer | ( | FontTexture const & | fontTexture | ) | const |
void castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::upload | ( | UploadData & | uploader | ) |
uint32_t castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::allocated {} |
CameraUbo const& castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::cameraUbo |
ashes::DescriptorSetLayout const& castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::descriptorLayout |
ashes::DescriptorSetPoolPtr castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::descriptorPool |
RenderDevice const& castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::device |
Engine& castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::engine |
HdrConfigUbo const& castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::hdrConfigUbo |
uint32_t castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::index {} |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
castor::String castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::name |
castor::ArrayView< OverlayUboConfiguration > castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::overlaysBuffer |
ashes::BufferPtr< OverlayUboConfiguration > castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::overlaysData |
OverlayTextBufferPoolUPtr castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::textBuffer |
GpuBufferBase castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::vertexBuffer |