|
Berserk
|
Base class for RHI resource. More...
#include <RHIResource.hpp>


Public Member Functions | |
| BRK_API | ~RHIResource () override=default |
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 |
Protected Member Functions | |
| void | Destroy () const override |
Base class for RHI resource.
Base class for any RHI resource, created by driver and exposed to the user. Uses automated reference counting, required for safe resource life-time tracking and passing among several system threads.
Resource utilise rhi thread command buffer, so it creation/destruction is deferred and executed only on rhi thread as a command.
|
overridedefault |
|
overrideprotectedvirtual |
Internal: Destroy resource on rhi thread
Reimplemented from RefCnt.