22 if (target ==
nullptr) {
24 return { target.get(), uid };
34 if (handle.
_rt ==
nullptr) {
static RenderTarget_uptr newRT(GFXDevice &device, const RenderTargetDescriptor &descriptor)
Rough around the edges Adapter pattern abstracting the actual rendering API and access to the GPU.
RenderTarget * getRenderTarget(const RenderTargetID target) const
vector< RenderTarget_uptr > _renderTargets
RenderTargetHandle allocateRT(const RenderTargetDescriptor &descriptor)
SharedMutex _renderTargetLock
RenderTargetID _renderTargetIndex
bool deallocateRT(RenderTargetHandle &handle)
GFXRTPool(GFXDevice &parent)
Handle console commands that start with a forward slash.
std::lock_guard< mutex > LockGuard
std::shared_lock< mutex > SharedLock
constexpr RenderTargetID INVALID_RENDER_TARGET_ID
constexpr auto to_base(const Type value) -> Type