1#include "ResourceBase.h"
5 if (
info && other.info) {
16 other.attachment =
nullptr;
26 if (info && other.info) {
27 if (!info->name && other.info->name) {
28 info->name = other.info->name;
32 if (!attachment && other.attachment) {
33 attachment = other.attachment;
36 other.attachment =
nullptr;
constexpr bool empty() const noexcept
Check if the string is empty.
@ Active
The resource is in use.
Base class for engine resources.
struct RenderResource * attachment
Attached GPU resource.
ResourceBase & operator=(const ResourceBase &other)=delete
Disable copy-assignment of resources.
StringView getName() const
Get the name of the resource.
ResourceInfo * info
Additional resource info structure.
Atomic< uint32_t > flags
Resource flags.
ResourceBase()=default
Constructs a new resource base.
StringRef name
User friendly name, used when referring to the resource in log messages etc.