Castor3D 0.16.0
Multiplatform 3D engine
|
#include <ImageLayout.hpp>
Public Types | |
enum | Type : uint8_t { e1D = 0 , e2D = 1 , e3D = 2 , eCube = 3 , e1DArray = 4 , e2DArray = 5 , eCubeArray = 6 , Type_COUNT , Type_MIN = e1D } |
using | Buffer = ByteArrayView |
using | ConstBuffer = ConstByteArrayView |
using | DeviceSize = uint64_t |
using | SubresourceRange = Range< DeviceSize > |
Public Member Functions | |
ImageLayout (Type type=e2D, PixelFormat format=PixelFormat::eR8G8B8A8_UNORM, Point3ui extent={ 1u, 1u, 1u }, uint32_t baseLayer=0u, uint32_t layers=1u, uint32_t baseLevel=0u, uint32_t levels=1u, uint32_t alignment=1u) | |
ImageLayout (PxBufferBase const &buffer) | |
ImageLayout (Type type, PxBufferBase const &buffer) | |
Size | dimensions () const noexcept |
Size | dimensions (uint32_t level) const noexcept |
uint32_t | depthLayers () const noexcept |
CU_API SubresourceRange | range () const noexcept |
CU_API SubresourceRange | slice (uint32_t index) const noexcept |
CU_API SubresourceRange | sliceMip (uint32_t index, uint32_t level) const noexcept |
CU_API DeviceSize | size () const noexcept |
CU_API DeviceSize | sliceSize () const noexcept |
CU_API DeviceSize | sliceMipSize (uint32_t level) const noexcept |
CU_API DeviceSize | offset () const noexcept |
CU_API DeviceSize | sliceOffset (uint32_t index) const noexcept |
CU_API DeviceSize | sliceMipOffset (uint32_t index, uint32_t level) const noexcept |
CU_API Buffer | buffer (PxBufferBase &buffer) const noexcept |
CU_API Buffer | sliceBuffer (PxBufferBase &buffer, uint32_t index) const noexcept |
CU_API Buffer | sliceMipBuffer (PxBufferBase &buffer, uint32_t index, uint32_t level) const noexcept |
CU_API ConstBuffer | buffer (PxBufferBase const &buffer) const noexcept |
CU_API ConstBuffer | sliceBuffer (PxBufferBase const &buffer, uint32_t index) const noexcept |
CU_API ConstBuffer | sliceMipBuffer (PxBufferBase const &buffer, uint32_t index, uint32_t level) const noexcept |
CU_API bool | hasBuffer (PxBufferBase const &buffer) const noexcept |
CU_API bool | hasSliceBuffer (PxBufferBase const &buffer, uint32_t index) const noexcept |
CU_API bool | hasSliceMipBuffer (PxBufferBase const &buffer, uint32_t index, uint32_t level) const noexcept |
SubresourceRange | layer (uint32_t index) const noexcept |
SubresourceRange | layerMip (uint32_t index, uint32_t level) const noexcept |
DeviceSize | layerSize () const noexcept |
DeviceSize | layerMipSize (uint32_t level) const noexcept |
DeviceSize | layerOffset (uint32_t index) const noexcept |
DeviceSize | layerMipOffset (uint32_t index, uint32_t level) const noexcept |
Buffer | layerBuffer (PxBufferBase &buffer, uint32_t index) const noexcept |
Buffer | layerMipBuffer (PxBufferBase &buffer, uint32_t index, uint32_t level) const noexcept |
ConstBuffer | layerBuffer (PxBufferBase const &buffer, uint32_t index) const noexcept |
ConstBuffer | layerMipBuffer (PxBufferBase const &buffer, uint32_t index, uint32_t level) const noexcept |
bool | hasLayerBuffer (PxBufferBase const &buffer, uint32_t index) const noexcept |
bool | hasLayerMipBuffer (PxBufferBase const &buffer, uint32_t index, uint32_t level) const noexcept |
Static Public Member Functions | |
static StringView | getName (Type t) |
static Type | getType (PxBufferBase const &buffer) |
Public Attributes | |
Type | type |
PixelFormat | format |
Point3ui | extent |
uint32_t | baseLayer |
uint32_t | layers |
uint32_t | baseLevel |
uint32_t | levels |
uint32_t | alignment |
using castor::ImageLayout::Buffer = ByteArrayView |
using castor::ImageLayout::ConstBuffer = ConstByteArrayView |
using castor::ImageLayout::DeviceSize = uint64_t |
using castor::ImageLayout::SubresourceRange = Range< DeviceSize > |
enum castor::ImageLayout::Type : uint8_t |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
noexcept |
Referenced by castor3d::TextureSource::getBuffer(), castor3d::TextureSource::getBuffer(), castor::getBuffer(), castor::getBuffer(), getType(), hasLayerBuffer(), hasLayerMipBuffer(), layerBuffer(), layerBuffer(), layerMipBuffer(), and layerMipBuffer().
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
|
inlinestatic |
|
noexcept |
|
inlinenoexcept |
References buffer(), and hasSliceBuffer().
Referenced by castor::hasLayerBuffer().
|
inlinenoexcept |
References buffer(), and hasSliceMipBuffer().
Referenced by castor::hasLayerMipBuffer().
|
noexcept |
Referenced by hasLayerBuffer(), and castor::hasSliceBuffer().
|
noexcept |
Referenced by hasLayerMipBuffer(), and castor::hasSliceMipBuffer().
|
inlinenoexcept |
|
inlinenoexcept |
References buffer(), and sliceBuffer().
Referenced by castor::getLayerBuffer(), and castor::getLayerBuffer().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
References buffer(), and sliceMipBuffer().
Referenced by castor::getLayerMipBuffer(), and castor::getLayerMipBuffer().
|
inlinenoexcept |
|
inlinenoexcept |
References sliceMipOffset().
Referenced by castor::getLayerMipOffset().
|
inlinenoexcept |
References sliceMipSize().
Referenced by castor::getLayerMipSize().
|
inlinenoexcept |
References sliceOffset().
Referenced by castor::getLayerOffset().
|
inlinenoexcept |
References sliceSize().
Referenced by castor::getLayerSize().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Referenced by castor::getSliceBuffer(), castor::getSliceBuffer(), layerBuffer(), and layerBuffer().
|
noexcept |
|
noexcept |
|
noexcept |
Referenced by castor::getSliceMipBuffer(), castor::getSliceMipBuffer(), layerMipBuffer(), and layerMipBuffer().
|
noexcept |
|
noexcept |
Referenced by castor::getSliceMipOffset(), and layerMipOffset().
|
noexcept |
Referenced by castor::getSliceMipSize(), and layerMipSize().
|
noexcept |
Referenced by castor::getSliceOffset(), and layerOffset().
|
noexcept |
uint32_t castor::ImageLayout::alignment |
uint32_t castor::ImageLayout::baseLayer |
Referenced by castor3d::TextureSource::getBaseLayer().
uint32_t castor::ImageLayout::baseLevel |
Referenced by castor3d::TextureSource::getBaseLevel().
Point3ui castor::ImageLayout::extent |
Referenced by depthLayers(), dimensions(), castor3d::TextureSource::getDepth(), and castor3d::TextureSource::update().
PixelFormat castor::ImageLayout::format |
Referenced by castor3d::TextureSource::update().
uint32_t castor::ImageLayout::layers |
Referenced by depthLayers(), castor3d::TextureSource::getLayerCount(), and castor3d::TextureSource::update().
uint32_t castor::ImageLayout::levels |
Referenced by castor3d::TextureSource::getLevelCount(), and castor3d::TextureSource::update().
Type castor::ImageLayout::type |