Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::TextureSource Class Reference

#include <TextureSource.hpp>

Inheritance diagram for castor3d::TextureSource:
Inheritance graph
[legend]
Collaboration diagram for castor3d::TextureSource:
Collaboration graph
[legend]

Public Member Functions

 TextureSource (castor::Image &image, castor::String name, castor::ImageLayout layout)
 The texture buffer.
 
void update (VkExtent3D const &extent, VkFormat format, uint32_t mipLevels, uint32_t arrayLayers)
 
- Public Member Functions inherited from castor::NamedBaseT< T >
 NamedBaseT (T name) noexcept
 Constructor.
 
T const & getName () const noexcept
 Retrieves the name.
 
void rename (T name) noexcept
 

Accessors.

castor::String const & toString () const noexcept
 
uint32_t getBaseLayer () const noexcept
 
uint32_t getLayerCount () const noexcept
 
uint32_t getBaseLevel () const noexcept
 
uint32_t getLevelCount () const noexcept
 
uint32_t getDepth () const noexcept
 
bool hasBuffer () const noexcept
 
castor::ImageLayout::ConstBuffer getBuffer () const noexcept
 
castor::ImageLayout::Buffer getBuffer () noexcept
 

Additional Inherited Members

- Protected Attributes inherited from castor::NamedBaseT< T >
m_name
 

Constructor & Destructor Documentation

◆ TextureSource()

castor3d::TextureSource::TextureSource ( castor::Image & image,
castor::String name,
castor::ImageLayout layout )
inlineexplicit

The texture buffer.

Parameters
[in]imageThe CPU image.
[in]nameThe source name.
[in]layoutThe CPU image layout.

Member Function Documentation

◆ getBaseLayer()

uint32_t castor3d::TextureSource::getBaseLayer ( ) const
inlinenoexcept

◆ getBaseLevel()

uint32_t castor3d::TextureSource::getBaseLevel ( ) const
inlinenoexcept

◆ getBuffer() [1/2]

castor::ImageLayout::ConstBuffer castor3d::TextureSource::getBuffer ( ) const
inlinenoexcept

References castor::ImageLayout::buffer(), and castor::Image::getPxBuffer().

Here is the call graph for this function:

◆ getBuffer() [2/2]

castor::ImageLayout::Buffer castor3d::TextureSource::getBuffer ( )
inlinenoexcept

References castor::ImageLayout::buffer(), and castor::Image::getPxBuffer().

Here is the call graph for this function:

◆ getDepth()

uint32_t castor3d::TextureSource::getDepth ( ) const
inlinenoexcept

◆ getLayerCount()

uint32_t castor3d::TextureSource::getLayerCount ( ) const
inlinenoexcept

◆ getLevelCount()

uint32_t castor3d::TextureSource::getLevelCount ( ) const
inlinenoexcept

◆ hasBuffer()

bool castor3d::TextureSource::hasBuffer ( ) const
inlinenoexcept

References castor::Image::getPxBuffer(), and castor::ImageLayout::hasBuffer().

Here is the call graph for this function:

◆ toString()

castor::String const & castor3d::TextureSource::toString ( ) const
inlinenoexcept

References castor::NamedBaseT< T >::getName().

Here is the call graph for this function:

◆ update()

void castor3d::TextureSource::update ( VkExtent3D const & extent,
VkFormat format,
uint32_t mipLevels,
uint32_t arrayLayers )
inline

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