|
|
GUIDevice const & | device |
| |
|
vk::ShaderModule | vertexShaderModule |
| |
|
vk::ShaderModule | fragmentShaderModule |
| |
|
std::vector< vk::PipelineShaderStageCreateInfo > | shaderStages |
| |
|
TextureMap | stagingTexture |
| |
|
std::vector< TextureMap > | 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::PipelineImage::DeviceShared::allocatePages |
( |
int const | nrPages | ) |
|
|
noexcept |
Allocate pages from the atlas.
◆ destroy()
| void tt::PipelineImage::DeviceShared::destroy |
( |
GUIDevice * | vulkanDevice | ) |
|
◆ freePages()
| void tt::PipelineImage::DeviceShared::freePages |
( |
std::vector< Page > const & | pages | ) |
|
|
noexcept |
Deallocate pages back to the atlas.
◆ getAtlasPositionFromPage()
| static ivec tt::PipelineImage::DeviceShared::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::PipelineImage::DeviceShared::makeImage |
( |
ivec | extent | ) |
|
|
noexcept |
Allocate an image in the atlas.
- Parameters
-
The documentation for this struct was generated from the following file: