|
Berserk
|
2d texture resource for rendering More...
#include <ResTexture.hpp>


Public Member Functions | |
| BRK_API | ResTexture ()=default |
| BRK_API | ~ResTexture () override=default |
| BRK_API const StringName & | GetResourceType () const override |
| BRK_API void | CreateFromImage (const Image &image, bool mipmaps, bool cache) |
| BRK_API void | SetSampler (Ref< RHISampler > sampler) |
| BRK_API uint32 | GetWidth () const |
| BRK_API uint32 | GetHeight () const |
| BRK_API Image::Format | GetFormat () const |
| BRK_API bool | MipMaps () const |
| BRK_API const Image & | GetImage () const |
| BRK_API const Ref< RHITexture > & | GetRHITexture () const |
| BRK_API const Ref< RHISampler > & | GetRHISampler () const |
Public Member Functions inherited from Resource | |
| BRK_API | ~Resource () override=default |
| BRK_API void | SetName (StringName name) |
| BRK_API void | SetPath (String path) |
| BRK_API void | SetUUID (UUID uuid) |
| BRK_API const StringName & | GetName () const |
| BRK_API const String & | GetPath () const |
| BRK_API const UUID & | GetUUID () const |
Public Member Functions inherited from RefCnt | |
| virtual | ~RefCnt () |
| bool | IsUnique () const |
| std::int32_t | GetRefs () const |
| std::int32_t | AddRef () const |
| std::int32_t | RelRef () const |
Static Public Member Functions | |
| static BRK_API const StringName & | GetResourceTypeStatic () |
Additional Inherited Members | |
Protected Member Functions inherited from RefCnt | |
| virtual void | Destroy () const |
2d texture resource for rendering
|
default |
|
overridedefault |
| void ResTexture::CreateFromImage | ( | const Image & | image, |
| bool | mipmaps, | ||
| bool | cache | ||
| ) |
|
inline |
|
overridevirtual |
Implements Resource.
|
static |
|
inline |
|
inline |
|
inline |
| void ResTexture::SetSampler | ( | Ref< RHISampler > | sampler | ) |