RavEngine
Loading...
Searching...
No Matches
RGL::TextureVk Struct Reference
Inheritance diagram for RGL::TextureVk:
[legend]
Collaboration diagram for RGL::TextureVk:
[legend]

Public Member Functions

 TextureVk (decltype(owningDevice), decltype(vkImageView) imageView, decltype(vkImage) image, const Dimension &size)
 
 TextureVk (decltype(owningDevice), const TextureConfig &, const TextureUploadData &bytes)
 
 TextureVk (decltype(owningDevice), const TextureConfig &)
 
Dimension GetSize () const final
 
TextureView GetDefaultView () const final
 
TextureView GetViewForMip (uint32_t mip) const final
 
RGLCustomTextureViewPtr MakeCustomTextureView (const CustomTextureViewConfig &config) const
 
uint8_t GetNumMips () const final
 
- Public Member Functions inherited from RGL::ITexture
 ITexture (decltype(size) size)
 

Public Attributes

VkImageView vkImageView = VK_NULL_HANDLE
 
VkImage vkImage = VK_NULL_HANDLE
 
struct SwapchainVK * owningSwapchain = nullptr
 
const std::shared_ptr< DeviceVk > owningDevice
 
bool owning = false
 
const TextureConfig createdConfig
 
VkImageAspectFlags createdAspectVk = VK_IMAGE_ASPECT_COLOR_BIT
 
VkFormat format
 
VkImageLayout nativeFormat = VK_IMAGE_LAYOUT_UNDEFINED
 
VmaAllocation_T * alloc = VK_NULL_HANDLE
 
std::vector< TextureView > mipViews
 
std::string debugName
 
uint32_t globalDescriptorIndex = 0
 

Additional Inherited Members

- Protected Attributes inherited from RGL::ITexture
Dimension size
 

Member Function Documentation

◆ GetDefaultView()

TextureView RGL::TextureVk::GetDefaultView ( ) const
finalvirtual

Implements RGL::ITexture.

◆ GetNumMips()

uint8_t RGL::TextureVk::GetNumMips ( ) const
inlinefinalvirtual

Implements RGL::ITexture.

◆ GetSize()

Dimension RGL::TextureVk::GetSize ( ) const
finalvirtual

Implements RGL::ITexture.

◆ GetViewForMip()

TextureView RGL::TextureVk::GetViewForMip ( uint32_t  mip) const
finalvirtual

Implements RGL::ITexture.

◆ MakeCustomTextureView()

RGLCustomTextureViewPtr RGL::TextureVk::MakeCustomTextureView ( const CustomTextureViewConfig &  config) const
virtual

Implements RGL::ITexture.


The documentation for this struct was generated from the following file: