VPP  0.7
A high-level modern C++ API for Vulkan
Public Member Functions | List of all members
vpp::MappableDeviceMemory Class Reference
Inheritance diagram for vpp::MappableDeviceMemory:
vpp::DeviceMemory

Public Member Functions

 MappableDeviceMemory (VkDeviceSize size, std::uint32_t typeMask, const MemProfile &memProfile, Device hDevice)
 
 MappableDeviceMemory (const DeviceMemory &mem)
 
unsigned char * beginMapped () const
 
unsigned char * endMapped () const
 
VkResult map (VkDeviceSize offset=0, VkDeviceSize size=VK_WHOLE_SIZE)
 
void unmap ()
 
void syncFromDevice ()
 
void syncToDevice ()
 
void load (const void *pBegin, size_t size)
 
- Public Member Functions inherited from vpp::DeviceMemory
 DeviceMemory (VkDeviceSize size, std::uint32_t typeMask, const MemProfile &memProfile, Device hDevice)
 
VkDeviceMemory handle () const
 
bool valid () const
 
std::uint32_t properties () const
 
VkDeviceSize size () const
 
bool isHostVisible () const
 
bool isHostCoherent () const
 

Additional Inherited Members

- Public Types inherited from vpp::DeviceMemory
enum  EProperties {
  DEVICE_LOCAL = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, HOST_VISIBLE = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, HOST_COHERENT = VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, HOST_CACHED = VK_MEMORY_PROPERTY_HOST_CACHED_BIT,
  LAZILY_ALLOCATED = VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT
}
 
- Static Public Member Functions inherited from vpp::DeviceMemory
static size_t availableMemory (const MemProfile &memProfile, Device hDevice)
 

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