#include <texture.h>
Public Member Functions | |
| Texture (Core &core) | |
| virtual | ~Texture () |
| virtual uint | getLayerCount () const =0 |
| virtual uint | getMipLevels () const =0 |
| virtual const ImageData & | getHandle () const =0 |
| VkFormat | getFormat () const |
| const SurfaceDescriptor & | getDescriptor () const |
| RenderService & | getRenderService () |
| const RenderService & | getRenderService () const |
| virtual void | onDestroy () override |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| virtual bool | init (utility::ErrorState &errorState) |
| Object (Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| Object (Object &&)=delete | |
| Object & | operator= (Object &&)=delete |
Public Attributes | |
| nap::Signal | textureDestroyed |
| Signal that is triggered before texture is destroyed. More... | |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Protected Member Functions | |
| virtual ImageData & | getHandle ()=0 |
| virtual void | clear (VkCommandBuffer commandBuffer) |
| void | requestClear () |
Protected Attributes | |
| RenderService & | mRenderService |
| Reference to the render service. More... | |
| SurfaceDescriptor | mDescriptor |
| Texture description. More... | |
| VkFormat | mFormat = VK_FORMAT_UNDEFINED |
| Vulkan texture format. More... | |
| VkClearColorValue | mClearColor = { 0.0f, 0.0f, 0.0f, 0.0f } |
| Color used for clearing the texture. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Texture base class
|
virtual |
|
protectedvirtual |
Clears the texture to the specified clear colors.
| const SurfaceDescriptor& getDescriptor | ( | ) | const |
| VkFormat getFormat | ( | ) | const |
|
pure virtual |
Implemented in TextureCube, and Texture2D.
|
protectedpure virtual |
Implemented in TextureCube, and Texture2D.
|
pure virtual |
Implemented in TextureCube, and Texture2D.
|
pure virtual |
Implemented in TextureCube, and Texture2D.
| RenderService& getRenderService | ( | ) |
| const RenderService& getRenderService | ( | ) | const |
|
overridevirtual |
Notify listeners when texture is destroyed
Reimplemented from Object.
Reimplemented in EquiRectangularCubeMap.
|
protected |
Queues a clear command in the render service.
|
protected |
Color used for clearing the texture.
|
protected |
Texture description.
|
protected |
Vulkan texture format.
|
protected |
Reference to the render service.
| nap::Signal textureDestroyed |
Signal that is triggered before texture is destroyed.