Castor3D 0.15.0
Multiplatform 3D engine
|
Pool pour les sommets des overlays. Plus de détails...
#include <OverlayVertexBufferPool.hpp>
Types publics | |
using | Quad = std::array< VertexT, CountT > |
Fonctions membres publiques | |
OverlayVertexBufferPoolT (Engine &engine, std::string const &debugName, RenderDevice const &device, CameraUbo const &cameraUbo, 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) |
void | upload (ashes::CommandBuffer const &cb) |
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 |
Attributs publics | |
Engine & | engine |
RenderDevice const & | device |
CameraUbo const & | cameraUbo |
ashes::DescriptorSetLayout const & | descriptorLayout |
std::string | name |
ashes::BufferPtr< OverlayUboConfiguration > | overlaysData |
castor::ArrayView< OverlayUboConfiguration > | overlaysBuffer |
GpuBufferBase | vertexBuffer |
uint32_t | allocated {} |
uint32_t | index {} |
ashes::DescriptorSetPoolPtr | descriptorPool |
OverlayTextBufferPoolUPtr | textBuffer |
Attributs publics statiques | |
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 pour les sommets des overlays.
using castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::Quad = std::array< VertexT, CountT > |
castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::OverlayVertexBufferPoolT | ( | Engine & | engine, |
std::string const & | debugName, | ||
RenderDevice const & | device, | ||
CameraUbo const & | cameraUbo, | ||
ashes::DescriptorSetLayout const & | descriptorLayout, | ||
uint32_t | count, | ||
OverlayTextBufferPoolUPtr | textBuf = nullptr |
||
) |
void castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::clearDrawPipelineData | ( | FontTexture const * | fontTexture | ) |
bool castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::fill | ( | castor::Size const & | renderSize, |
OverlayT const & | overlay, | ||
OverlayDrawData & | data, | ||
bool | secondary, | ||
FontTexture const * | fontTexture | ||
) |
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 | ( | ashes::CommandBuffer const & | cb | ) |
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 |
uint32_t castor3d::OverlayVertexBufferPoolT< VertexT, CountT >::index {} |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
std::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 |