SPARK
0.1.0
A general purpose game engine written in C++.
|
Public Member Functions | |
virtual std::size_t | size (unsigned int level) const =0 |
Get the size of the image (in bytes) at the specified mip-map level. | |
virtual math::Vector3< unsigned > | extent (unsigned level=0) const noexcept=0 |
Get the extent of the image at the specified mip-map level. | |
virtual Format | format () const noexcept=0 |
Gets the internal format of the image. | |
virtual ImageDimensions | dimensions () const noexcept=0 |
Gets the dimensions of the image. (1D, 2D, 3D, Cube) | |
virtual unsigned int | levels () const noexcept=0 |
Gets the number of mip-map levels of the image. | |
virtual unsigned int | layers () const noexcept=0 |
Gets the number of layers of the image. | |
virtual unsigned int | planes () const noexcept=0 |
Returns the number of planes of the image. | |
virtual MultiSamplingLevel | samples () const noexcept=0 |
Gets the number of samples with which the image is sampled. | |
virtual ImageLayout | layout (unsigned int sub_resource=0) const =0 |
Gets the layout of the image. | |
virtual unsigned int | subResourceId (unsigned &level, unsigned &layer, unsigned &plane) const noexcept |
Returns the sub-resource ID for a combination of mip-map level , array layer and plane . | |
std::tuple< unsigned, unsigned, unsigned > | resolveSubresource (const unsigned subresource) const noexcept |
Returns the sub-resource ID for a combination of mip-map level , array layer and plane . | |
virtual std::size_t | size () const noexcept=0 |
Gets the size (in bytes) of the memory chunk. | |
![]() | |
virtual const std::string & | name () const noexcept=0 |
Gets the name of the state resource. | |
![]() | |
virtual unsigned int | elements () const noexcept=0 |
Get the number of sub-resources in 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. | |
|
nodiscardpure virtualnoexcept |
Gets the dimensions of the image. (1D, 2D, 3D, Cube)
Implemented in spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Get the extent of the image at the specified mip-map level.
level | The mip-map level for which to get the extent. |
0
if the mip-map level is invalid.x
component. See ImageDimensions. Implemented in spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Gets the internal format of the image.
Implemented in spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Gets the number of layers of the image.
Implemented in spark::render::vk::VulkanImage.
|
nodiscardpure virtual |
Gets the layout of the image.
sub_resource | The sub-resource id for which to get the layout. |
|
nodiscardpure virtualnoexcept |
Gets the number of mip-map levels of the image.
Implemented in spark::render::vk::VulkanImage.
|
nodiscardpure virtualnoexcept |
Returns the number of planes of the image.
Implemented in spark::render::vk::VulkanImage.
|
inlinenodiscardnoexcept |
Returns the sub-resource ID for a combination of mip-map level
, array layer
and plane
.
subresource | The sub-resource ID. |
level
, layer
and plane
.
|
nodiscardpure virtualnoexcept |
Gets the number of samples with which the image is sampled.
Implemented in spark::render::vk::VulkanImage.
|
nodiscardvirtualnoexcept |
Gets the size (in bytes) of the memory chunk.
Implements spark::render::IDeviceMemory.
Reimplemented in spark::render::vk::VulkanImage.
|
nodiscardpure virtual |
Get the size of the image (in bytes) at the specified mip-map level.
0
if the mip-map level is invalid.
|
inlinenodiscardvirtualnoexcept |
Returns the sub-resource ID for a combination of mip-map level
, array layer
and plane
.
level | The mip-map level of the sub-resource. |
layer | The array layer of the sub-resource. |
plane | The plane of the sub-resource. |
level
, layer
and plane
.