Luna::RG::IRenderPassContext
Represents one render graph execution context. This is used only as the parameter of IRenderPass::execute.
interface Luna::RG::IRenderPassContext : public virtual Interface
Base type
Member functions
-
virtual RHI::ICommandBuffer * get_command_buffer()=0
Gets the command buffer used to record commands for the render pass.
-
virtual RHI::IResource * get_input(const Name &name)=0
Gets the input resource of the render pass.
-
virtual RHI::IResource * get_output(const Name &name)=0
Gets the output resource of the render pass.
-
virtual RHI::IQueryHeap * get_timestamp_query_heap(u32 begin_index, u32 end_index)=0
Gets the timestamp query heap used to track the running time of the render pass.
-
virtual R< Ref< RHI::IResource > > allocate_temporary_resource(const ResourceDesc &desc)=0
Allocates new temporary resource that exists only in the current pass.
-
virtual void release_temporary_resource(RHI::IResource *res)=0
Releases the temporary resource allocated from allocate_temporary_resource.