|
|
gfx_device_vulkan const & | device |
| |
|
vk::ShaderModule | vertexShaderModule |
| |
|
vk::ShaderModule | fragmentShaderModule |
| |
|
specialization_constants | specializationConstants |
| |
|
std::vector< vk::SpecializationMapEntry > | fragmentShaderSpecializationMapEntries |
| |
|
vk::SpecializationInfo | fragmentShaderSpecializationInfo |
| |
|
std::vector< vk::PipelineShaderStageCreateInfo > | shaderStages |
| |
|
texture_map | stagingTexture |
| |
|
std::vector< texture_map > | atlasTextures |
| |
|
std::array< vk::DescriptorImageInfo, atlasMaximumNrImages > | atlasDescriptorImageInfos |
| |
|
vk::Sampler | atlasSampler |
| |
|
vk::DescriptorImageInfo | atlasSamplerDescriptorImageInfo |
| |
|
point3 | atlas_allocation_position = {} |
| |
| int | atlasAllocationMaxHeight = 0 |
| | During allocation on a row, we keep track of the tallest glyph.
|
| |
◆ allocate_rect()
Allocate an glyph in the atlas.
This may allocate an atlas texture, up to atlasMaximumNrImages.
◆ destroy()
◆ place_vertices()
Place vertices for a single glyph.
- Parameters
-
| vertices | The list of vertices to add to. |
| clipping_rectangle | The rectangle to clip the glyph. |
| box | The rectangle of the glyph in window coordinates. The box's size must be the size of the glyph's bounding box times glyph_size. |
| font | The font to render the glyph from. |
| glyph | The glyph to render. |
| colors | The color of each corner of the glyph. |
- Returns
- True is atlas was updated.
◆ prepare_atlas_for_rendering()
| void v1::pipeline_SDF::device_shared::prepare_atlas_for_rendering |
( |
| ) |
|
This will transition the atlas to 'shader-read'.
◆ prepareStagingPixmapForDrawing()
| void v1::pipeline_SDF::device_shared::prepareStagingPixmapForDrawing |
( |
| ) |
|
This will transition the staging texture to 'general' for writing by the CPU.
◆ uploadStagingPixmapToAtlas()
Once drawing in the staging pixmap is completed, you can upload it to the atlas.
This will transition the stating texture to 'source' and the atlas to 'destination'.
◆ atlasAllocationMaxHeight
| int v1::pipeline_SDF::device_shared::atlasAllocationMaxHeight = 0 |
During allocation on a row, we keep track of the tallest glyph.
The documentation for this struct was generated from the following file: