Castor3D 0.16.0
Multiplatform 3D engine
|
#include <TextureLayout.hpp>
Fonctions membres publiques | |
C3D_API | TextureLayout (RenderSystem &renderSystem, ashes::ImageCreateInfo info, VkMemoryPropertyFlags memoryProperties, castor::String const &debugName, bool isStatic=false) |
Constructeur. | |
C3D_API | TextureLayout (RenderSystem &renderSystem, castor::String const &name, VkImage image, crg::ImageViewId imageView) |
Constructeur. | |
C3D_API | TextureLayout (RenderSystem &renderSystem, ashes::ImagePtr image, VkImageCreateInfo const &createInfo) |
Constructeur. | |
C3D_API bool | initialise (RenderDevice const &device) |
Initialise la texture et toutes ses vues. | |
C3D_API void | upload (UploadData &uploader) |
Upload les données d'image dans le buffer de la texture. | |
C3D_API void | cleanup () |
Nettoie la texture et toutes ses vues. | |
C3D_API void | generateMipmaps (RenderDevice const &device, VkImageLayout srcLayout=VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) const |
Génère les mipmaps de la texture. | |
C3D_API void | generateMipmaps (QueueData const &queueData, VkImageLayout srcLayout=VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) const |
Génère les mipmaps de la texture. | |
C3D_API void | generateMipmaps (ashes::CommandBuffer const &cmd, VkImageLayout srcLayout=VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) const |
Génère les mipmaps de la texture. | |
Texture source setup. | |
C3D_API void | setSource (castor::PxBufferBaseUPtr buffer, uint32_t bufferOrigLevels, bool isStatic=false) |
Définit la source de tout le layout. | |
C3D_API void | setSource (castor::PxBufferBaseUPtr buffer, bool isStatic=false) |
C3D_API void | setSource (castor::Path const &folder, castor::Path const &relative) |
C3D_API void | setSource (VkExtent3D const &extent, VkFormat format) |
void | setSource (VkExtent2D const &extent, VkFormat format) |
Getters. | |
C3D_API castor::String | getDefaultSourceString () const |
C3D_API ashes::ImageView const & | getDefaultSampledView () const noexcept |
C3D_API ashes::ImageView const & | getDefaultTargetView () const noexcept |
C3D_API castor::String | getLayerCubeSourceString (size_t layer) const noexcept |
C3D_API ashes::ImageView const & | getLayerCubeTargetView (size_t layer) const noexcept |
C3D_API castor::String | getLayerCubeFaceSourceString (size_t layer, CubeMapFace face) const noexcept |
C3D_API ashes::ImageView const & | getLayerCubeFaceTargetView (size_t layer, CubeMapFace face) const noexcept |
C3D_API castor::String | getName () const |
C3D_API castor::Path | getPath () const |
C3D_API bool | needsYInversion () const |
C3D_API bool | hasBuffer () const |
uint32_t | getLayersCount () const noexcept |
uint32_t | isCube () const noexcept |
bool | isInitialised () const noexcept |
bool | isStatic () const noexcept |
VkImageType | getType () const noexcept |
castor::Image const & | getImage () const noexcept |
castor::Image & | getImage () noexcept |
ashes::Image const & | getTexture () const noexcept |
ashes::ImageCreateInfo const & | getCreateInfo () const noexcept |
uint32_t | getWidth () const noexcept |
uint32_t | getHeight () const noexcept |
uint32_t | getDepth () const noexcept |
uint32_t | getMipLevels () const noexcept |
VkExtent3D const & | getDimensions () const noexcept |
VkFormat | getPixelFormat () const noexcept |
Fonctions membres publiques hérités de castor::OwnedBy< RenderSystem > | |
RenderSystem * | getOwner () const |
L'objet propriétaire. | |
Amis | |
class | TextureView |
Membres hérités additionnels | |
Fonctions membres protégées hérités de castor::OwnedBy< RenderSystem > | |
OwnedBy (RenderSystem &owner) | |
Constructeur. | |
C3D_API castor3d::TextureLayout::TextureLayout | ( | RenderSystem & | renderSystem, |
ashes::ImageCreateInfo | info, | ||
VkMemoryPropertyFlags | memoryProperties, | ||
castor::String const & | debugName, | ||
bool | isStatic = false ) |
Constructeur.
[in] | renderSystem | Le render system. |
[in] | info | Les informations de l'image. |
[in] | memoryProperties | Les propriétés requise pour la mémoire. |
[in] | debugName | Le nom de debug pour ce layout. |
[in] | isStatic | Dit si ce layout est statique. |
C3D_API castor3d::TextureLayout::TextureLayout | ( | RenderSystem & | renderSystem, |
castor::String const & | name, | ||
VkImage | image, | ||
crg::ImageViewId | imageView ) |
Constructeur.
[in] | renderSystem | Le render system. |
[in] | name | Le nom de debug pour ce layout. |
[in] | image | L'image. |
[in] | imageView | La vue sur l'image. |
C3D_API castor3d::TextureLayout::TextureLayout | ( | RenderSystem & | renderSystem, |
ashes::ImagePtr | image, | ||
VkImageCreateInfo const & | createInfo ) |
Constructeur.
[in] | renderSystem | Le render system. |
[in] | image | L'image. |
[in] | createInfo | Les informations de l'image. |
C3D_API void castor3d::TextureLayout::cleanup | ( | ) |
Nettoie la texture et toutes ses vues.
C3D_API void castor3d::TextureLayout::generateMipmaps | ( | ashes::CommandBuffer const & | cmd, |
VkImageLayout | srcLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ) const |
Génère les mipmaps de la texture.
[in] | cmd | Le command buffer recevant les commandes. |
[in] | srcLayout | Le layout actuel de l'image. |
C3D_API void castor3d::TextureLayout::generateMipmaps | ( | QueueData const & | queueData, |
VkImageLayout | srcLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ) const |
Génère les mipmaps de la texture.
[in] | queueData | La queue recevant les commandes GPU. |
[in] | srcLayout | Le layout actuel de l'image. |
C3D_API void castor3d::TextureLayout::generateMipmaps | ( | RenderDevice const & | device, |
VkImageLayout | srcLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ) const |
Génère les mipmaps de la texture.
[in] | device | Le device GPU. |
[in] | srcLayout | Le layout actuel de l'image. |
|
inlinenoexcept |
|
noexcept |
C3D_API castor::String castor3d::TextureLayout::getDefaultSourceString | ( | ) | const |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API castor::String castor3d::TextureLayout::getName | ( | ) | const |
C3D_API castor::Path castor3d::TextureLayout::getPath | ( | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
Références CU_Require.
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API bool castor3d::TextureLayout::hasBuffer | ( | ) | const |
C3D_API bool castor3d::TextureLayout::initialise | ( | RenderDevice const & | device | ) |
Initialise la texture et toutes ses vues.
[in] | device | Le device GPU. |
true
si tout s'est bien passé.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
C3D_API bool castor3d::TextureLayout::needsYInversion | ( | ) | const |
C3D_API void castor3d::TextureLayout::setSource | ( | castor::Path const & | folder, |
castor::Path const & | relative ) |
C3D_API void castor3d::TextureLayout::setSource | ( | castor::PxBufferBaseUPtr | buffer, |
bool | isStatic = false ) |
C3D_API void castor3d::TextureLayout::setSource | ( | castor::PxBufferBaseUPtr | buffer, |
uint32_t | bufferOrigLevels, | ||
bool | isStatic = false ) |
Définit la source de tout le layout.
Référencé par setSource().
|
inline |
C3D_API void castor3d::TextureLayout::setSource | ( | VkExtent3D const & | extent, |
VkFormat | format ) |
C3D_API void castor3d::TextureLayout::upload | ( | UploadData & | uploader | ) |
Upload les données d'image dans le buffer de la texture.
|
friend |