#include <TextureView.hpp>
|
C3D_API | TextureView (TextureLayout &layout, ashes::ImageViewCreateInfo info, uint32_t index, castor::String debugName) |
| Constructor.
|
|
C3D_API bool | initialise () |
| Initialises the view.
|
|
C3D_API void | update (VkImage image, uint32_t baseArrayLayer, uint32_t layerCount, uint32_t baseMipLevel, uint32_t levelCount) |
| Updates the view range.
|
|
C3D_API void | update (VkExtent3D const &extent, VkFormat format, uint32_t mipLevels, uint32_t arrayLayers) |
| Updates the view range.
|
|
C3D_API void | cleanup () |
| Cleans up the view.
|
|
TextureLayout * | getOwner () const |
|
|
| OwnedBy (TextureLayout &owner) |
| Constructor.
|
|
◆ TextureView()
Constructor.
- Parameters
-
[in] | layout | The parent layout. |
[in] | info | The creation info. |
[in] | index | The image index in its layout. |
[in] | debugName | The debug name for this layout. |
◆ cleanup()
C3D_API void castor3d::TextureView::cleanup |
( |
| ) |
|
◆ convertToSampledView()
static VkImageViewCreateInfo castor3d::TextureView::convertToSampledView |
( |
VkImageViewCreateInfo | createInfo | ) |
|
|
static |
◆ convertToTargetView()
static VkImageViewCreateInfo castor3d::TextureView::convertToTargetView |
( |
VkImageViewCreateInfo | createInfo, |
|
|
uint32_t | depth ) |
|
static |
◆ getBaseMipLevel()
uint32_t castor3d::TextureView::getBaseMipLevel |
( |
| ) |
const |
|
inline |
◆ getBuffer() [1/2]
◆ getBuffer() [2/2]
◆ getIndex()
uint32_t castor3d::TextureView::getIndex |
( |
| ) |
const |
|
inline |
◆ getLevelCount()
C3D_API uint32_t castor3d::TextureView::getLevelCount |
( |
| ) |
const |
◆ getSampledView()
C3D_API ashes::ImageView const & castor3d::TextureView::getSampledView |
( |
| ) |
const |
◆ getSubresourceRange()
VkImageSubresourceRange const & castor3d::TextureView::getSubresourceRange |
( |
| ) |
const |
|
inline |
◆ getTargetView()
C3D_API ashes::ImageView const & castor3d::TextureView::getTargetView |
( |
| ) |
const |
◆ hasBuffer()
C3D_API bool castor3d::TextureView::hasBuffer |
( |
| ) |
const |
◆ initialise()
C3D_API bool castor3d::TextureView::initialise |
( |
| ) |
|
Initialises the view.
- Returns
true
if inverted.
◆ isMipmapsGenerationNeeded()
bool castor3d::TextureView::isMipmapsGenerationNeeded |
( |
| ) |
const |
|
inline |
◆ needsYInversion()
bool castor3d::TextureView::needsYInversion |
( |
| ) |
const |
|
inline |
◆ setMipmapsGenerationNeeded()
void castor3d::TextureView::setMipmapsGenerationNeeded |
( |
bool | value | ) |
|
|
inline |
◆ toString()
◆ update() [1/2]
C3D_API void castor3d::TextureView::update |
( |
VkExtent3D const & | extent, |
|
|
VkFormat | format, |
|
|
uint32_t | mipLevels, |
|
|
uint32_t | arrayLayers ) |
Updates the view range.
- Parameters
-
[in] | extent | The extent. |
[in] | format | The pixel format. |
[in] | mipLevels | The miplevel count. |
[in] | arrayLayers | The layer count. |
◆ update() [2/2]
C3D_API void castor3d::TextureView::update |
( |
VkImage | image, |
|
|
uint32_t | baseArrayLayer, |
|
|
uint32_t | layerCount, |
|
|
uint32_t | baseMipLevel, |
|
|
uint32_t | levelCount ) |
Updates the view range.
- Parameters
-
[in] | image | The GPU image. |
[in] | baseArrayLayer | The starting layer. |
[in] | layerCount | The layer count. |
[in] | baseMipLevel | The starting miplevel. |
[in] | levelCount | The miplevel count. |
◆ TextureLayout
The documentation for this class was generated from the following file: