Luna::RG::IRenderPassContext::allocate_temporary_resource

virtual R< Ref< RHI::IResource > > allocate_temporary_resource(const ResourceDesc &desc)=0

Allocates new temporary resource that exists only in the current pass.

The allocated The resource will be released when the pass is finished, or the user can release it manually using release_temporary_resource.