28class [[deprecated(
"Use the HandleResource classes instead")]]
Resource {
62 uint32_t
Allocate(
const std::string& resourceDesc);
82 std::vector<bool> m_isAllocated;
28class [[deprecated(
"Use the HandleResource classes instead")]]
Resource {
…};
The Resource class is a convenient way to track allocated resources.
Definition Resource.h:28
void Free(uint32_t index)
Free an allocated resource.
uint32_t Allocate(uint32_t index, const std::string &resourceDesc)
Allocate a specific resource value.
virtual ~Resource()=default
Resource(uint32_t size)
Allocate storage for a new instance of Resource.
uint32_t Allocate(const std::string &resourceDesc)
Allocate a resource.
static void CreateResourceObject(std::unique_ptr< Resource > &r, uint32_t elements)
Factory method to create a Resource allocation-tracker if needed.
::std::mutex mutex
Definition mutex.h:17