|
|
gui_device_vulkan const & | device |
| |
|
vk::ShaderModule | vertexShaderModule |
| |
|
vk::ShaderModule | fragmentShaderModule |
| |
|
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 |
| |
|
std::vector< Page > | atlasFreePages |
| |
|
|
static constexpr int | atlasNrHorizontalPages = 16 |
| |
|
static constexpr int | atlasNrVerticalPages = 16 |
| |
|
static constexpr int | atlasImageWidth = atlasNrHorizontalPages * Page::widthIncludingBorder |
| |
|
static constexpr int | atlasImageHeight = atlasNrVerticalPages * Page::heightIncludingBorder |
| |
|
static constexpr int | atlasNrPagesPerImage = atlasNrHorizontalPages * atlasNrVerticalPages |
| |
|
static constexpr int | atlasMaximumNrImages = 16 |
| |
|
static constexpr int | stagingImageWidth = 1024 |
| |
|
static constexpr int | stagingImageHeight = 1024 |
| |
◆ allocatePages()
| std::vector< Page > tt::pipeline_image::device_shared::allocatePages |
( |
int const | nrPages | ) |
|
|
noexcept |
Allocate pages from the atlas.
◆ destroy()
◆ freePages()
| void tt::pipeline_image::device_shared::freePages |
( |
std::vector< Page > const & | pages | ) |
|
|
noexcept |
Deallocate pages back to the atlas.
◆ getAtlasPositionFromPage()
| static i32x4 tt::pipeline_image::device_shared::getAtlasPositionFromPage |
( |
Page | page | ) |
|
|
inlinestaticnoexcept |
Get the coordinate in the atlas from a page index.
- Parameters
-
- Returns
- x, y pixel coordinate in an atlasTexture and z the atlasTextureIndex.
◆ makeImage()
| Image tt::pipeline_image::device_shared::makeImage |
( |
i32x4 | extent | ) |
|
|
noexcept |
Allocate an image in the atlas.
- Parameters
-
The documentation for this struct was generated from the following file: