VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::vulkan::VulkanTexture Class Reference
+ Inheritance diagram for venom::vulkan::VulkanTexture:

Public Member Functions

vc::Error LoadImage (unsigned char *pixels, int width, int height, int channels) override
 
vc::Error LoadImageBGRA (unsigned char *pixels, int width, int height, int channels) override
 
vc::Error LoadImage (uint16_t *pixels, int width, int height, int channels) override
 
vc::Error _InitDepthBuffer (int width, int height) override
 
vc::Error _CreateAttachment (int width, int height, int imageCount, vc::ShaderVertexFormat format) override
 
bool HasTexture () const override
 
const ImageGetImage () const
 
ImageGetImage ()
 
const ImageViewGetImageView () const
 
ImageViewGetImageView ()
 
- Public Member Functions inherited from venom::common::TextureImpl
vc::Error LoadImageFromFile (const char *path)
 
vc::Error LoadImage (const char *path, int id, char *bgraData, unsigned int width, unsigned int height)
 
vc::Error InitDepthBuffer (int width, int height)
 
vc::Error CreateAttachment (int width, int height, int imageCount, vc::ShaderVertexFormat format)
 
void SetTexturePeakLuminance (float peakLuminance)
 
const float & GetTexturePeakLuminance () const
 
- Public Member Functions inherited from venom::common::PluginObjectImpl
template<class T >
T * As ()
 
template<class T >
const T * As () const
 
template<class T >
T * ConstAs () const
 
template<class T >
T * RAs ()
 
template<class T >
const T * RAs () const
 
void IncRefCount ()
 
void DecRefCount ()
 
- Public Member Functions inherited from venom::common::IPluginObject
- Public Member Functions inherited from venom::common::GraphicsPluginObject
virtual void Destroy () override
 /!\ THIS FUNCTION MUST BE CALLED FOR DESTRUCTION, DO NOT USE delete
 
- Public Member Functions inherited from venom::common::PluginObject
 PluginObject (const PluginType type)
 
PluginType GetType () const override
 
template<class T >
T * DAs ()
 
template<class T >
const T * DAs () const
 
- Public Member Functions inherited from venom::common::GraphicsCachedResourceHolder
template<typename T >
T * As ()
 
void SetResource (const GraphicsCachedResourceHolder &resource)
 
void SetResource (const SPtr< GraphicsCachedResource > &resource)
 

Static Public Member Functions

static VulkanTextureGetDummyTexture ()
 
static void SetDummyTexture (VulkanTexture *texture)
 
- Static Public Member Functions inherited from venom::common::TextureImpl
static const TextureImplGetDummyTexture ()
 
- Static Public Member Functions inherited from venom::common::GraphicsPluginObject
static bool HasCachedObject (const std::string &path)
 Checks if an object is in the cache.
 
static SPtr< GraphicsCachedResourceGetCachedObject (const std::string &path)
 Gets a cached object from the graphics cache.
 
static const std::unordered_map< std::string, std::shared_ptr< GraphicsCachedResource > > & GetCachedObjects ()
 Gets all cached objects.
 

Additional Inherited Members

- Protected Member Functions inherited from venom::common::TextureImpl
- Protected Member Functions inherited from venom::common::GraphicsCachedResourceHolder
const SPtr< GraphicsCachedResource > & _GetResourceToCache () const
 
SPtr< GraphicsCachedResource > & _GetResourceToCache ()
 
void _LoadFromCache (const SPtr< GraphicsCachedResource > &cache)
 
- Static Protected Member Functions inherited from venom::common::GraphicsPluginObject
static void _SetInCache (const std::string &path, const SPtr< GraphicsCachedResource > &object)
 Sets an object in the cache.
 
static void _SetCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 
static void _AddCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 
- Protected Attributes inherited from venom::common::GraphicsCachedResourceHolder
SPtr< GraphicsCachedResource_resource
 

Member Function Documentation

◆ _CreateAttachment()

vc::Error venom::vulkan::VulkanTexture::_CreateAttachment ( int width,
int height,
int imageCount,
vc::ShaderVertexFormat format )
overridevirtual

◆ _InitDepthBuffer()

vc::Error venom::vulkan::VulkanTexture::_InitDepthBuffer ( int width,
int height )
overridevirtual

◆ HasTexture()

bool venom::vulkan::VulkanTexture::HasTexture ( ) const
inlineoverridevirtual

◆ LoadImage() [1/2]

vc::Error venom::vulkan::VulkanTexture::LoadImage ( uint16_t * pixels,
int width,
int height,
int channels )
overridevirtual

◆ LoadImage() [2/2]

vc::Error venom::vulkan::VulkanTexture::LoadImage ( unsigned char * pixels,
int width,
int height,
int channels )
overridevirtual

◆ LoadImageBGRA()

vc::Error venom::vulkan::VulkanTexture::LoadImageBGRA ( unsigned char * pixels,
int width,
int height,
int channels )
overridevirtual

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