|
Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
ManagedResource variant which automates GetTypeName() overloading by returning a stringified version of VkObjectType. More...
#include <foray_managedresource.hpp>
Public Member Functions | |
| VulkanResource () | |
| VulkanResource (std::string_view name) | |
| virtual std::string_view | GetTypeName () const |
| Returns <OBJECT_TYPE> stringified. | |
Public Member Functions inherited from foray::core::ManagedResource | |
| virtual bool | Exists () const =0 |
| Return true, if the managed resource is allocated. | |
| virtual void | Destroy ()=0 |
| Destroy the resource. | |
| ManagedResource () | |
| Default constructor registers the resource. | |
| ManagedResource (std::string_view name) | |
| Registers the resource and sets its name. | |
| virtual | ~ManagedResource () |
| Unregisters the resource. | |
| std::string_view | GetName () const |
| Return a custom name for the object. | |
| virtual void | SetName (std::string_view name) |
| Set a custom name for the object. | |
| std::string | Print () const |
| Print name and type in one string. | |
Public Member Functions inherited from foray::NoMoveDefaults | |
| NoMoveDefaults ()=default | |
| NoMoveDefaults (const NoMoveDefaults &other)=delete | |
| NoMoveDefaults (NoMoveDefaults &&other)=default | |
| NoMoveDefaults & | operator= (const NoMoveDefaults &other)=delete |
Protected Member Functions | |
| virtual void | SetObjectName (core::Context *context, const void *handle, std::string_view name, bool updateResourceName=true) |
| Set the object name. Sets both ManagedResource::mName aswell as vulkan debug object name. | |
Additional Inherited Members | |
Static Public Member Functions inherited from foray::core::ManagedResource | |
| static void | sPrintAllocatedResources (bool printAsWarning) |
| Print a list of all registered existing resources. | |
| static const std::unordered_set< ManagedResource * > * | GetTotalAllocatedResources () |
Protected Attributes inherited from foray::core::ManagedResource | |
| std::string | mName |
| This objects custom name. | |
ManagedResource variant which automates GetTypeName() overloading by returning a stringified version of VkObjectType.
| OBJECT_TYPE | Object type managed by the inheriting class |
|
inline |
|
inlineexplicit |
|
inlinevirtual |
Returns <OBJECT_TYPE> stringified.
Reimplemented from foray::core::ManagedResource.
Reimplemented in foray::as::Blas.
|
inlineprotectedvirtual |
Set the object name. Sets both ManagedResource::mName aswell as vulkan debug object name.
| context | Requires DispatchTable |
| handle | Object handle |
| name | Name |
| updateResourceName | If true, sets ManagedResource::mName |