![]() |
LLGL 0.05 Beta
|
#include <Texture.h>
Public Member Functions | |
| ResourceType | GetResourceType () const override final |
| Returns ResourceType::Texture. | |
| TextureType | GetType () const |
| Returns the type of this texture. | |
| long | GetBindFlags () const |
| virtual TextureDescriptor | GetDesc () const =0 |
| Queries a descriptor of this texture. | |
| virtual Format | GetFormat () const =0 |
| Returns the hardware format of this texture. | |
| virtual Extent3D | GetMipExtent (std::uint32_t mipLevel) const =0 |
| Returns the texture extent for the specified MIP-level. This also includes the number of array layers. | |
| virtual SubresourceFootprint | GetSubresourceFootprint (std::uint32_t mipLevel) const =0 |
| Returns the memory footprint of the specified MIP-map subresource. | |
| Public Member Functions inherited from LLGL::Resource | |
| virtual bool | GetNativeHandle (void *nativeHandle, std::size_t nativeHandleSize)=0 |
| Returns the native resource handle. | |
| Public Member Functions inherited from LLGL::RenderSystemChild | |
| virtual void | SetDebugName (const char *name) |
| Sets the name of this class instance for debugging purposes. | |
| Public Member Functions inherited from LLGL::Interface | |
| virtual bool | IsInstanceOf (int id) const |
| Returns true if this object is an instance of the specified interface. | |
| Public Member Functions inherited from LLGL::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| virtual | ~NonCopyable ()=default |
Protected Member Functions | |
| Texture (const TextureType type, long bindFlags) | |
| Protected Member Functions inherited from LLGL::NonCopyable | |
| NonCopyable ()=default | |
Texture interface.
|
protected |
|
inline |
|
pure virtual |
Queries a descriptor of this texture.
type bindFlags format extent arrayLayers mipLevels samples miscFlags and clearValue) cannot be queried by this function. Those attributes are either set to zero (for flags) or the default value specified in TextureDescriptor is used. If only the texture format is required, use GetFormat instead.
|
pure virtual |
Returns the hardware format of this texture.
|
pure virtual |
Returns the texture extent for the specified MIP-level. This also includes the number of array layers.
| [in] | mipLevel | Specifies the MIP-map level to query from. The first and largest MIP-map is level zero. If this level is greater than or equal to the maximum number of MIP-maps for this texture, the return value is undefined (i.e. depends on the render system). |
|
finaloverridevirtual |
Returns ResourceType::Texture.
Implements LLGL::Resource.
|
pure virtual |
Returns the memory footprint of the specified MIP-map subresource.
| [in] | mipLevel | Specifies the MIP-map level to query from. The first and largest MIP-map level is zero. |
|
inline |
Returns the type of this texture.