Castor3D 0.12.0
Multiplatform 3D engine
Fonctions membres publiques | Attributs publics | Liste de tous les membres
Référence de la structure castor3d::Texture

#include <Texture.hpp>

Graphe de collaboration de castor3d::Texture:
Collaboration graph
[légende]

Fonctions membres publiques

C3D_API Texture (Texture const &)=delete
 
C3D_API Textureoperator= (Texture const &)=delete
 
C3D_API Texture (Texture &&rhs)
 
C3D_API Textureoperator= (Texture &&rhs)
 
C3D_API Texture ()
 
C3D_API Texture (RenderDevice const &device, crg::ResourceHandler &handler, castor::String const &name, VkImageCreateFlags createFlags, VkExtent3D const &size, uint32_t layerCount, uint32_t mipLevels, VkFormat format, VkImageUsageFlags usageFlags, VkBorderColor const &borderColor=VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK, bool createSubviews=true)
 
C3D_API Texture (RenderDevice const &device, crg::ResourceHandler &handler, castor::String const &name, VkImageCreateFlags createFlags, VkExtent3D const &size, uint32_t layerCount, uint32_t mipLevels, VkFormat format, VkImageUsageFlags usageFlags, VkFilter minFilter, VkFilter magFilter, VkSamplerMipmapMode mipFilter, VkSamplerAddressMode addressMode=VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, VkBorderColor const &borderColor=VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK, bool createSubviews=true)
 
C3D_API ~Texture ()
 
C3D_API void create ()
 
C3D_API void destroy ()
 
C3D_API VkImageMemoryBarrier makeGeneralLayout (VkImageLayout srcLayout, VkAccessFlags dstAccessFlags, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeTransferDestination (VkImageLayout srcLayout, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeTransferSource (VkImageLayout srcLayout, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeShaderInputResource (VkImageLayout srcLayout, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeDepthStencilReadOnly (VkImageLayout srcLayout, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeColourAttachment (VkImageLayout srcLayout, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeDepthStencilAttachment (VkImageLayout srcLayout, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makePresentSource (VkImageLayout srcLayout, uint32_t srcQueueFamily=VK_QUEUE_FAMILY_IGNORED, uint32_t dstQueueFamily=VK_QUEUE_FAMILY_IGNORED, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeLayoutTransition (VkImageLayout sourceLayout, VkImageLayout destinationLayout, uint32_t srcQueueFamily, uint32_t dstQueueFamily, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeLayoutTransition (VkImageLayout srcLayout, VkImageLayout dstLayout, VkAccessFlags srcAccessFlags, uint32_t srcQueueFamily, uint32_t dstQueueFamily, bool target=false) const
 
C3D_API VkImageMemoryBarrier makeLayoutTransition (VkImageLayout srcLayout, VkImageLayout dstLayout, VkAccessFlags srcAccessFlags, VkAccessFlags dstAccessMask, uint32_t srcQueueFamily, uint32_t dstQueueFamily, bool target=false) const
 
uint32_t getMipLevels () const
 
VkFormat getFormat () const
 
VkExtent3D getExtent () const
 

Attributs publics

crg::ResourceHandler * handler {}
 
RenderDevice const * device {}
 
crg::ImageId imageId {}
 
VkImage image {}
 
crg::ImageViewId wholeViewId {}
 
crg::ImageViewId targetViewId {}
 
crg::ImageViewId sampledViewId {}
 
VkImageView wholeView {}
 
VkImageView targetView {}
 
VkImageView sampledView {}
 
crg::ImageViewIdArray subViewsId {}
 
ashes::Sampler const * sampler {}
 

Documentation des constructeurs et destructeur

◆ Texture() [1/5]

C3D_API castor3d::Texture::Texture ( Texture const &  )
delete

◆ Texture() [2/5]

C3D_API castor3d::Texture::Texture ( Texture &&  rhs)

◆ Texture() [3/5]

C3D_API castor3d::Texture::Texture ( )

◆ Texture() [4/5]

C3D_API castor3d::Texture::Texture ( RenderDevice const &  device,
crg::ResourceHandler &  handler,
castor::String const &  name,
VkImageCreateFlags  createFlags,
VkExtent3D const &  size,
uint32_t  layerCount,
uint32_t  mipLevels,
VkFormat  format,
VkImageUsageFlags  usageFlags,
VkBorderColor const &  borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK,
bool  createSubviews = true 
)

◆ Texture() [5/5]

C3D_API castor3d::Texture::Texture ( RenderDevice const &  device,
crg::ResourceHandler &  handler,
castor::String const &  name,
VkImageCreateFlags  createFlags,
VkExtent3D const &  size,
uint32_t  layerCount,
uint32_t  mipLevels,
VkFormat  format,
VkImageUsageFlags  usageFlags,
VkFilter  minFilter,
VkFilter  magFilter,
VkSamplerMipmapMode  mipFilter,
VkSamplerAddressMode  addressMode = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE,
VkBorderColor const &  borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK,
bool  createSubviews = true 
)

◆ ~Texture()

C3D_API castor3d::Texture::~Texture ( )

Documentation des fonctions membres

◆ create()

C3D_API void castor3d::Texture::create ( )

◆ destroy()

C3D_API void castor3d::Texture::destroy ( )

◆ getExtent()

VkExtent3D castor3d::Texture::getExtent ( ) const
inline

Références imageId.

◆ getFormat()

VkFormat castor3d::Texture::getFormat ( ) const
inline

Références imageId.

◆ getMipLevels()

uint32_t castor3d::Texture::getMipLevels ( ) const
inline

Références imageId.

◆ makeColourAttachment()

C3D_API VkImageMemoryBarrier castor3d::Texture::makeColourAttachment ( VkImageLayout  srcLayout,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ makeDepthStencilAttachment()

C3D_API VkImageMemoryBarrier castor3d::Texture::makeDepthStencilAttachment ( VkImageLayout  srcLayout,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ makeDepthStencilReadOnly()

C3D_API VkImageMemoryBarrier castor3d::Texture::makeDepthStencilReadOnly ( VkImageLayout  srcLayout,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ makeGeneralLayout()

C3D_API VkImageMemoryBarrier castor3d::Texture::makeGeneralLayout ( VkImageLayout  srcLayout,
VkAccessFlags  dstAccessFlags,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ makeLayoutTransition() [1/3]

C3D_API VkImageMemoryBarrier castor3d::Texture::makeLayoutTransition ( VkImageLayout  sourceLayout,
VkImageLayout  destinationLayout,
uint32_t  srcQueueFamily,
uint32_t  dstQueueFamily,
bool  target = false 
) const

◆ makeLayoutTransition() [2/3]

C3D_API VkImageMemoryBarrier castor3d::Texture::makeLayoutTransition ( VkImageLayout  srcLayout,
VkImageLayout  dstLayout,
VkAccessFlags  srcAccessFlags,
uint32_t  srcQueueFamily,
uint32_t  dstQueueFamily,
bool  target = false 
) const

◆ makeLayoutTransition() [3/3]

C3D_API VkImageMemoryBarrier castor3d::Texture::makeLayoutTransition ( VkImageLayout  srcLayout,
VkImageLayout  dstLayout,
VkAccessFlags  srcAccessFlags,
VkAccessFlags  dstAccessMask,
uint32_t  srcQueueFamily,
uint32_t  dstQueueFamily,
bool  target = false 
) const

◆ makePresentSource()

C3D_API VkImageMemoryBarrier castor3d::Texture::makePresentSource ( VkImageLayout  srcLayout,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ makeShaderInputResource()

C3D_API VkImageMemoryBarrier castor3d::Texture::makeShaderInputResource ( VkImageLayout  srcLayout,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ makeTransferDestination()

C3D_API VkImageMemoryBarrier castor3d::Texture::makeTransferDestination ( VkImageLayout  srcLayout,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ makeTransferSource()

C3D_API VkImageMemoryBarrier castor3d::Texture::makeTransferSource ( VkImageLayout  srcLayout,
uint32_t  srcQueueFamily = VK_QUEUE_FAMILY_IGNORED,
uint32_t  dstQueueFamily = VK_QUEUE_FAMILY_IGNORED,
bool  target = false 
) const

◆ operator=() [1/2]

C3D_API Texture & castor3d::Texture::operator= ( Texture &&  rhs)

◆ operator=() [2/2]

C3D_API Texture & castor3d::Texture::operator= ( Texture const &  )
delete

Documentation des données membres

◆ device

RenderDevice const* castor3d::Texture::device {}

◆ handler

crg::ResourceHandler* castor3d::Texture::handler {}

◆ image

VkImage castor3d::Texture::image {}

◆ imageId

crg::ImageId castor3d::Texture::imageId {}

◆ sampledView

VkImageView castor3d::Texture::sampledView {}

◆ sampledViewId

crg::ImageViewId castor3d::Texture::sampledViewId {}

◆ sampler

ashes::Sampler const* castor3d::Texture::sampler {}

◆ subViewsId

crg::ImageViewIdArray castor3d::Texture::subViewsId {}

◆ targetView

VkImageView castor3d::Texture::targetView {}

◆ targetViewId

crg::ImageViewId castor3d::Texture::targetViewId {}

◆ wholeView

VkImageView castor3d::Texture::wholeView {}

◆ wholeViewId

crg::ImageViewId castor3d::Texture::wholeViewId {}

La documentation de cette structure a été générée à partir du fichier suivant :