|
SPARK
0.1.0
A general purpose game engine written in C++.
|
Describes a chunk of memory on the GPU. More...
#include <DeviceMemory.h>
Public Member Functions | |
| virtual unsigned int | elements () const noexcept=0 |
| Get the number of sub-resources in the memory chunk. | |
| virtual std::size_t | size () const noexcept=0 |
| Gets the size (in bytes) of the memory chunk. | |
| virtual std::size_t | elementSize () const noexcept=0 |
| Gets the size (in bytes) of one element in the memory chunk. If there is only one element, this equals the result of IDeviceMemory::size(). | |
| virtual std::size_t | elementAlignment () const =0 |
| Gets the alignment of one element in the memory chunk. | |
| virtual std::size_t | alignedElementSize () const noexcept=0 |
| Gets the real size (in bytes) of the memory chunk. | |
| virtual bool | writable () const noexcept=0 |
| Checks if the resource can be bound to a read/write descriptor. | |
Describes a chunk of memory on the GPU.
|
nodiscardpure virtualnoexcept |
Gets the real size (in bytes) of the memory chunk.
Implemented in spark::render::vk::VulkanBuffer, and spark::render::vk::VulkanImage.
|
nodiscardpure virtual |
Gets the alignment of one element in the memory chunk.
Implemented in spark::render::vk::VulkanBuffer, and spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Get the number of sub-resources in the memory chunk.
Implemented in spark::render::vk::VulkanBuffer, and spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Gets the size (in bytes) of one element in the memory chunk. If there is only one element, this equals the result of IDeviceMemory::size().
Implemented in spark::render::vk::VulkanBuffer, and spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Gets the size (in bytes) of the memory chunk.
Implemented in spark::render::IImage, spark::render::vk::VulkanBuffer, and spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Checks if the resource can be bound to a read/write descriptor.
true if the resource can be bound to a read/write descriptor, false otherwise.Implemented in spark::render::vk::VulkanBuffer, and spark::render::vk::VulkanImage.