#include <TextureView.hpp>
|
C3D_API | TextureView (TextureLayout &layout, ashes::ImageViewCreateInfo info, uint32_t index, castor::String debugName) |
| Constructeur. Plus de détails...
|
|
C3D_API bool | initialise () |
| Initialise la vue. Plus de détails...
|
|
C3D_API void | update (VkImage image, uint32_t baseArrayLayer, uint32_t layerCount, uint32_t baseMipLevel, uint32_t levelCount) |
| Met à jour l'étendue de la vue. Plus de détails...
|
|
C3D_API void | update (VkExtent3D const &extent, VkFormat format, uint32_t mipLevels, uint32_t arrayLayers) |
| Met à jour l'étendue de la vue. Plus de détails...
|
|
C3D_API void | cleanup () |
| Nettoie la vue. Plus de détails...
|
|
◆ TextureView()
C3D_API castor3d::TextureView::TextureView |
( |
TextureLayout & |
layout, |
|
|
ashes::ImageViewCreateInfo |
info, |
|
|
uint32_t |
index, |
|
|
castor::String |
debugName |
|
) |
| |
Constructeur.
- Paramètres
-
[in] | layout | Le layout parent. |
[in] | info | Les informations de création. |
[in] | index | L'index de l'image dans son layout. |
[in] | debugName | Le nom de debug pour ce 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]
C3D_API castor::ImageLayout::Buffer castor3d::TextureView::getBuffer |
( |
| ) |
|
◆ getBuffer() [2/2]
C3D_API castor::ImageLayout::ConstBuffer castor3d::TextureView::getBuffer |
( |
| ) |
const |
◆ 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 |
( |
| ) |
|
Initialise la vue.
- Renvoie
true
si la vue est inversée.
◆ isMipmapsGenerationNeeded()
bool castor3d::TextureView::isMipmapsGenerationNeeded |
( |
| ) |
const |
|
inline |
◆ needsYInversion()
bool castor3d::TextureView::needsYInversion |
( |
| ) |
const |
|
inline |
◆ setMipmapsGenerationNeeded()
void castor3d::TextureView::setMipmapsGenerationNeeded |
( |
bool |
value | ) |
|
|
inline |
◆ toString()
C3D_API castor::String castor3d::TextureView::toString |
( |
| ) |
const |
◆ update() [1/2]
C3D_API void castor3d::TextureView::update |
( |
VkExtent3D const & |
extent, |
|
|
VkFormat |
format, |
|
|
uint32_t |
mipLevels, |
|
|
uint32_t |
arrayLayers |
|
) |
| |
Met à jour l'étendue de la vue.
- Paramètres
-
[in] | extent | Les dimensions. |
[in] | format | Le format des pixels. |
[in] | mipLevels | Le nombre de miplevels. |
[in] | arrayLayers | Le nombre de layers. |
◆ update() [2/2]
C3D_API void castor3d::TextureView::update |
( |
VkImage |
image, |
|
|
uint32_t |
baseArrayLayer, |
|
|
uint32_t |
layerCount, |
|
|
uint32_t |
baseMipLevel, |
|
|
uint32_t |
levelCount |
|
) |
| |
Met à jour l'étendue de la vue.
- Paramètres
-
[in] | image | L'image GPU. |
[in] | baseArrayLayer | La layer de départ. |
[in] | layerCount | Le nombre de layers. |
[in] | baseMipLevel | Le miplevel de départ. |
[in] | levelCount | Le nombre de miplevels. |
◆ TextureLayout
La documentation de cette classe a été générée à partir du fichier suivant :