Castor3D 0.16.0
Multiplatform 3D engine
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
castor3d::FontGlyphBuffer Class Reference

#include <FontGlyphBuffer.hpp>

Classes

struct  FontGlyphData
 

Public Types

using FontGlyphsData = castor::ArrayView< FontGlyphData >
 

Public Member Functions

C3D_API FontGlyphBuffer (Engine &engine, RenderDevice const &device, FontTexture const &texture, uint32_t count)
 Constructor.
 
C3D_API void add (castor::Glyph const &glyph)
 Adds a glyph to the buffer.
 
C3D_API void update (UploadData &uploader)
 Updates the buffer.
 
C3D_API VkDescriptorSetLayoutBinding createLayoutBinding (uint32_t binding, VkShaderStageFlags stages=(VK_SHADER_STAGE_FRAGMENT_BIT|VK_SHADER_STAGE_GEOMETRY_BIT|VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT|VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT|VK_SHADER_STAGE_VERTEX_BIT)) const
 Creates the descriptor set layout binding.
 
C3D_API ashes::WriteDescriptorSet getBinding (uint32_t binding) const
 Creates the descriptor write for this buffer.
 
C3D_API void createBinding (ashes::DescriptorSet &descriptorSet, VkDescriptorSetLayoutBinding const &binding) const
 Creates the descriptor set binding at given point.
 
uint8_t * getPtr ()
 
ashes::BufferBase const & getBuffer () const
 
void setMaxHeight (uint32_t value)
 
void setImgWidth (uint32_t value)
 
void setImgHeight (uint32_t value)
 

Static Public Attributes

static uint32_t constexpr DataSize = uint32_t( sizeof( FontGlyphData ) )
 

Member Typedef Documentation

◆ FontGlyphsData

Constructor & Destructor Documentation

◆ FontGlyphBuffer()

C3D_API castor3d::FontGlyphBuffer::FontGlyphBuffer ( Engine & engine,
RenderDevice const & device,
FontTexture const & texture,
uint32_t count )

Constructor.

Parameters
[in]engineThe engine.
[in]deviceThe GPU device.
[in]textureThe parent font texture.
[in]countThe max configurations count.

Member Function Documentation

◆ add()

C3D_API void castor3d::FontGlyphBuffer::add ( castor::Glyph const & glyph)

Adds a glyph to the buffer.

Parameters
[in]glyphThe glyph.

◆ createBinding()

C3D_API void castor3d::FontGlyphBuffer::createBinding ( ashes::DescriptorSet & descriptorSet,
VkDescriptorSetLayoutBinding const & binding ) const

Creates the descriptor set binding at given point.

Parameters
[in]descriptorSetThe descriptor set that receives the binding.
[in]bindingThe descriptor set layout binding.

◆ createLayoutBinding()

C3D_API VkDescriptorSetLayoutBinding castor3d::FontGlyphBuffer::createLayoutBinding ( uint32_t binding,
VkShaderStageFlags stages = (VK_SHADER_STAGE_FRAGMENT_BIT|VK_SHADER_STAGE_GEOMETRY_BIT|VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT|VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT|VK_SHADER_STAGE_VERTEX_BIT) ) const

Creates the descriptor set layout binding.

◆ getBinding()

C3D_API ashes::WriteDescriptorSet castor3d::FontGlyphBuffer::getBinding ( uint32_t binding) const

Creates the descriptor write for this buffer.

◆ getBuffer()

ashes::BufferBase const & castor3d::FontGlyphBuffer::getBuffer ( ) const
inline

References castor3d::ShaderBuffer::getBuffer().

Here is the call graph for this function:

◆ getPtr()

uint8_t * castor3d::FontGlyphBuffer::getPtr ( )
inline

References castor3d::ShaderBuffer::getPtr().

Here is the call graph for this function:

◆ setImgHeight()

void castor3d::FontGlyphBuffer::setImgHeight ( uint32_t value)
inline

References castor3d::ShaderBuffer::setFourthCount().

Here is the call graph for this function:

◆ setImgWidth()

void castor3d::FontGlyphBuffer::setImgWidth ( uint32_t value)
inline

References castor3d::ShaderBuffer::setThirdCount().

Here is the call graph for this function:

◆ setMaxHeight()

void castor3d::FontGlyphBuffer::setMaxHeight ( uint32_t value)
inline

References castor3d::ShaderBuffer::setSecondCount().

Here is the call graph for this function:

◆ update()

C3D_API void castor3d::FontGlyphBuffer::update ( UploadData & uploader)

Updates the buffer.

Member Data Documentation

◆ DataSize

uint32_t constexpr castor3d::FontGlyphBuffer::DataSize = uint32_t( sizeof( FontGlyphData ) )
staticconstexpr

The documentation for this class was generated from the following file: