MythTV  master
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
MythTextureVulkan Class Reference

#include <libmythui/vulkan/mythtexturevulkan.h>

Inheritance diagram for MythTextureVulkan:
[legend]
Collaboration diagram for MythTextureVulkan:
[legend]

Public Member Functions

 ~MythTextureVulkan ()
 
void StagingFinished (void)
 
VkDescriptorImageInfo GetDescriptorImage (void) const
 
VkDescriptorSet TakeDescriptor (void)
 
void AddDescriptor (VkDescriptorSet Descriptor)
 
- Public Member Functions inherited from MythComboBufferVulkan
 MythComboBufferVulkan (float Width, float Height)
 
const void * Data (void) const
 
void PushData (const QMatrix4x4 &Transform, QRect Source, QRect Destination, int Alpha)
 
void PopData (void)
 

Static Public Member Functions

static MythTextureVulkanCreate (MythVulkanObject *Vulkan, QImage *Image, VkSampler Sampler, VkCommandBuffer CommandBuffer=nullptr)
 

Public Attributes

VkDescriptorSet m_descriptor { MYTH_NULL_DISPATCH }
 
uint64_t m_dataSize { 0 }
 
- Public Attributes inherited from MythComboBufferVulkan
std::vector< VulkanComboBufferm_data
 
float m_width { 0.0F }
 
float m_height { 0.0F }
 

Protected Member Functions

 MythTextureVulkan (MythVulkanObject *Vulkan, QImage *Image, VkSampler Sampler, VkCommandBuffer CommandBuffer=nullptr)
 
- Protected Member Functions inherited from MythVulkanObject
void CheckValid ()
 
 MythVulkanObject (MythRenderVulkan *Render)
 
 MythVulkanObject (MythVulkanObject *Other)
 
bool IsValidVulkan () const
 
MythRenderVulkanRender ()
 
VkDevice Device ()
 
QVulkanDeviceFunctions * Funcs ()
 
MythWindowVulkanWindow ()
 
- Protected Member Functions inherited from MythComboBufferVulkan
 MythComboBufferVulkan (float Width, float Height)
 
const void * Data (void) const
 
void PushData (const QMatrix4x4 &Transform, QRect Source, QRect Destination, int Alpha)
 
void PopData (void)
 

Private Attributes

VkBuffer m_stagingBuffer { MYTH_NULL_DISPATCH }
 
VkDeviceMemory m_stagingMemory { MYTH_NULL_DISPATCH }
 
VkImage m_image { MYTH_NULL_DISPATCH }
 
VkDeviceMemory m_deviceMemory { MYTH_NULL_DISPATCH }
 
bool m_createdSampler { false }
 
VkSampler m_sampler { MYTH_NULL_DISPATCH }
 
VkImageView m_view { MYTH_NULL_DISPATCH }
 

Additional Inherited Members

- Static Protected Member Functions inherited from MythVulkanObject
static MythVulkanObjectCreate (MythRenderVulkan *Render)
 
- Protected Attributes inherited from MythVulkanObject
bool m_vulkanValid { true }
 
MythRenderVulkanm_vulkanRender { nullptr }
 
VkDevice m_vulkanDevice { nullptr }
 
QVulkanDeviceFunctions * m_vulkanFuncs { nullptr }
 
MythWindowVulkanm_vulkanWindow { nullptr }
 
- Protected Attributes inherited from MythComboBufferVulkan
std::vector< VulkanComboBufferm_data
 
float m_width { 0.0F }
 
float m_height { 0.0F }
 

Detailed Description

Definition at line 14 of file mythtexturevulkan.h.

Constructor & Destructor Documentation

◆ ~MythTextureVulkan()

MythTextureVulkan::~MythTextureVulkan ( )

Definition at line 111 of file mythtexturevulkan.cpp.

◆ MythTextureVulkan()

MythTextureVulkan::MythTextureVulkan ( MythVulkanObject Vulkan,
QImage *  Image,
VkSampler  Sampler,
VkCommandBuffer  CommandBuffer = nullptr 
)
protected

Definition at line 22 of file mythtexturevulkan.cpp.

Referenced by Create().

Member Function Documentation

◆ Create()

MythTextureVulkan * MythTextureVulkan::Create ( MythVulkanObject Vulkan,
QImage *  Image,
VkSampler  Sampler,
VkCommandBuffer  CommandBuffer = nullptr 
)
static

Definition at line 7 of file mythtexturevulkan.cpp.

Referenced by MythPainterVulkan::GetTextureFromCache().

◆ StagingFinished()

void MythTextureVulkan::StagingFinished ( void  )

Definition at line 127 of file mythtexturevulkan.cpp.

Referenced by MythTextureVulkan(), and ~MythTextureVulkan().

◆ GetDescriptorImage()

VkDescriptorImageInfo MythTextureVulkan::GetDescriptorImage ( void  ) const

Definition at line 135 of file mythtexturevulkan.cpp.

Referenced by MythPainterVulkan::GetTextureFromCache().

◆ TakeDescriptor()

VkDescriptorSet MythTextureVulkan::TakeDescriptor ( void  )

Definition at line 145 of file mythtexturevulkan.cpp.

Referenced by MythPainterVulkan::DeleteTextures().

◆ AddDescriptor()

void MythTextureVulkan::AddDescriptor ( VkDescriptorSet  Descriptor)

Definition at line 140 of file mythtexturevulkan.cpp.

Referenced by MythPainterVulkan::GetTextureFromCache().

Member Data Documentation

◆ m_descriptor

VkDescriptorSet MythTextureVulkan::m_descriptor { MYTH_NULL_DISPATCH }

Definition at line 26 of file mythtexturevulkan.h.

Referenced by AddDescriptor(), TakeDescriptor(), and ~MythTextureVulkan().

◆ m_dataSize

uint64_t MythTextureVulkan::m_dataSize { 0 }

◆ m_stagingBuffer

VkBuffer MythTextureVulkan::m_stagingBuffer { MYTH_NULL_DISPATCH }
private

Definition at line 36 of file mythtexturevulkan.h.

Referenced by MythTextureVulkan(), and StagingFinished().

◆ m_stagingMemory

VkDeviceMemory MythTextureVulkan::m_stagingMemory { MYTH_NULL_DISPATCH }
private

Definition at line 37 of file mythtexturevulkan.h.

Referenced by MythTextureVulkan(), and StagingFinished().

◆ m_image

VkImage MythTextureVulkan::m_image { MYTH_NULL_DISPATCH }
private

Definition at line 38 of file mythtexturevulkan.h.

Referenced by MythTextureVulkan(), and ~MythTextureVulkan().

◆ m_deviceMemory

VkDeviceMemory MythTextureVulkan::m_deviceMemory { MYTH_NULL_DISPATCH }
private

Definition at line 39 of file mythtexturevulkan.h.

Referenced by MythTextureVulkan(), and ~MythTextureVulkan().

◆ m_createdSampler

bool MythTextureVulkan::m_createdSampler { false }
private

Definition at line 40 of file mythtexturevulkan.h.

Referenced by MythTextureVulkan(), and ~MythTextureVulkan().

◆ m_sampler

VkSampler MythTextureVulkan::m_sampler { MYTH_NULL_DISPATCH }
private

Definition at line 41 of file mythtexturevulkan.h.

Referenced by GetDescriptorImage(), MythTextureVulkan(), and ~MythTextureVulkan().

◆ m_view

VkImageView MythTextureVulkan::m_view { MYTH_NULL_DISPATCH }
private

Definition at line 42 of file mythtexturevulkan.h.

Referenced by GetDescriptorImage(), MythTextureVulkan(), and ~MythTextureVulkan().


The documentation for this class was generated from the following files: