MythTV  master
mythuniformbuffervulkan.h
Go to the documentation of this file.
1 #ifndef MYTHUNIFORMBUFFERVULKAN_H
2 #define MYTHUNIFORMBUFFERVULKAN_H
3 
4 // MythTV
6 
8 {
9  public:
10  static MythUniformBufferVulkan* Create(MythVulkanObject* Vulkan, VkDeviceSize Size);
12 
13  VkDeviceSize Size (void) const;
14  VkDescriptorBufferInfo GetBufferInfo (void) const;
15  void Update (void *Source);
16 
17  protected:
18  MythUniformBufferVulkan(MythVulkanObject* Vulkan, VkDeviceSize Size);
19 
20  private:
21  VkDeviceSize m_bufferSize { 0 };
22  VkBuffer m_buffer { MYTH_NULL_DISPATCH };
23  VkDeviceMemory m_bufferMemory { MYTH_NULL_DISPATCH };
24  void* m_mappedMemory { nullptr };
25 };
26 
27 #endif
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
MythVulkanObject
Definition: mythrendervulkan.h:29
MYTH_NULL_DISPATCH
#define MYTH_NULL_DISPATCH
Definition: mythrendervulkan.h:26
MythVulkanObject::Create
static MythVulkanObject * Create(MythRenderVulkan *Render)
Definition: mythrendervulkan.cpp:16
Source
Definition: channelsettings.cpp:69
MythUniformBufferVulkan
Definition: mythuniformbuffervulkan.h:7
mythrendervulkan.h