Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::DeviceMemory Class Referenceexport

Public Member Functions

 DeviceMemory ()
 DeviceMemory (VkDevice device, VkMemoryPropertyFlags memory_type, VkDeviceSize max_size, std::uint32_t index, VkDeviceSize alignment)
 DeviceMemory (DeviceMemory &&dm) noexcept
DeviceMemoryoperator= (DeviceMemory &&other) noexcept
 ~DeviceMemory ()=default
std::uint32_t bindBufferToMemory (VkBuffer buffer, VkDeviceSize const size, VkDeviceSize const alignment)
void bindImageToMemory (VkImage image, VkDeviceSize const size, VkDeviceSize const alignment) __attribute__((no_thread_safety_analysis))
void clear ()
VkDeviceSize getID () const
VkDeviceMemory * getMemory ()
VkDeviceSize getOffset () const
VkDeviceSize getSize () const
VkDeviceSize getSpaceLeft () const
VkMemoryPropertyFlags getType () const
bool hasEnoughSpaceLeft (VkDeviceSize size, VkDeviceSize const alignment) __attribute__((no_thread_safety_analysis))
bool isFull () const
void lock ()
void unLock ()
VkBuffer getBuffer (std::size_t index)
std::size_t getOffset (std::size_t index) const

Constructor & Destructor Documentation

◆ DeviceMemory() [1/3]

Vyroda::DeviceMemory::DeviceMemory ( )
Here is the caller graph for this function:

◆ DeviceMemory() [2/3]

Vyroda::DeviceMemory::DeviceMemory ( VkDevice device,
VkMemoryPropertyFlags memory_type,
VkDeviceSize max_size,
std::uint32_t index,
VkDeviceSize alignment )

◆ DeviceMemory() [3/3]

Vyroda::DeviceMemory::DeviceMemory ( DeviceMemory && dm)
inlinenoexcept
Here is the call graph for this function:

◆ ~DeviceMemory()

Vyroda::DeviceMemory::~DeviceMemory ( )
default

Member Function Documentation

◆ bindBufferToMemory()

std::uint32_t Vyroda::DeviceMemory::bindBufferToMemory ( VkBuffer buffer,
VkDeviceSize const size,
VkDeviceSize const alignment )
Here is the call graph for this function:

◆ bindImageToMemory()

void Vyroda::DeviceMemory::bindImageToMemory ( VkImage image,
VkDeviceSize const size,
VkDeviceSize const alignment )
Here is the call graph for this function:

◆ clear()

void Vyroda::DeviceMemory::clear ( )
Here is the caller graph for this function:

◆ getBuffer()

VkBuffer Vyroda::DeviceMemory::getBuffer ( std::size_t index)

◆ getID()

VkDeviceSize Vyroda::DeviceMemory::getID ( ) const

◆ getMemory()

VkDeviceMemory * Vyroda::DeviceMemory::getMemory ( )

◆ getOffset() [1/2]

VkDeviceSize Vyroda::DeviceMemory::getOffset ( ) const

◆ getOffset() [2/2]

std::size_t Vyroda::DeviceMemory::getOffset ( std::size_t index) const

◆ getSize()

VkDeviceSize Vyroda::DeviceMemory::getSize ( ) const
Here is the caller graph for this function:

◆ getSpaceLeft()

VkDeviceSize Vyroda::DeviceMemory::getSpaceLeft ( ) const

◆ getType()

VkMemoryPropertyFlags Vyroda::DeviceMemory::getType ( ) const
Here is the caller graph for this function:

◆ hasEnoughSpaceLeft()

bool Vyroda::DeviceMemory::hasEnoughSpaceLeft ( VkDeviceSize size,
VkDeviceSize const alignment )

◆ isFull()

bool Vyroda::DeviceMemory::isFull ( ) const

◆ lock()

void Vyroda::DeviceMemory::lock ( )

◆ operator=()

DeviceMemory & Vyroda::DeviceMemory::operator= ( DeviceMemory && other)
inlinenoexcept
Here is the call graph for this function:

◆ unLock()

void Vyroda::DeviceMemory::unLock ( )

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