#include <texture.h>
Public Types | |
enum | EUsage { Static, DynamicRead, DynamicWrite } |
Public Member Functions | |
Texture (Core &core) | |
virtual | ~Texture () |
virtual uint | getLayerCount () const =0 |
virtual uint | getMipLevels () const =0 |
virtual const ImageData & | getHandle () const =0 |
virtual VkImageLayout | getTargetLayout () const |
VkFormat | getFormat () const |
const SurfaceDescriptor & | getDescriptor () const |
RenderService & | getRenderService () |
const RenderService & | getRenderService () const |
virtual void | onDestroy () override |
![]() | |
Resource () | |
![]() | |
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... | |
![]() | |
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 bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Texture base class
|
strong |
|
virtual |
|
protectedvirtual |
Clears the texture to the specified clear colors.
const SurfaceDescriptor& getDescriptor | ( | ) | const |
VkFormat getFormat | ( | ) | const |
|
pure virtual |
Implemented in TextureCube, Texture2D, DepthRenderTexture2D, and RenderTexture2D.
|
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 |
|
virtual |
|
overridevirtual |
Notify listeners when texture is destroyed
Reimplemented from Object.
Reimplemented in CubeMapFromFile.
|
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.