Open 3D Engine Atom Gem API Reference 26.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Metal::FrameGraphExecuteGroupHandler Class Reference

#include <FrameGraphExecuteGroupHandler.h>

Inherited by AZ::Metal::FrameGraphExecuteGroupPrimaryHandler, and AZ::Metal::FrameGraphExecuteGroupSecondaryHandler.

Public Member Functions

 AZ_CLASS_ALLOCATOR (FrameGraphExecuteGroupHandler, AZ::SystemAllocator)
 
RHI::ResultCode Init (Device &device, const AZStd::vector< RHI::FrameGraphExecuteGroup * > &executeGroups)
 
void Shutdown ()
 
void End ()
 
bool IsComplete () const
 Returns true if all FrameGraphExecuteGroup of this handler have finished.
 
bool IsExecuted () const
 Returns true if the work has been submitted to the queue.
 
void BeginGroup (const FrameGraphExecuteGroup *group)
 Callback from a FrameGraphExecuteGroup signaling that has begun it's execution.
 
void EndGroup (const FrameGraphExecuteGroup *group)
 Callback from a FrameGraphExecuteGroup signaling that has ended it's execution.
 

Protected Member Functions

void AddWorkRequest (const ExecuteWorkRequest &workRequest)
 Adds the workRequest to the handler's workRequest.
 
void UpdateSwapChain (RenderPassContext &context)
 Request the next drawable from the Swapchain and updates the MTLRenderPassDescriptor.
 

Protected Attributes

Device * m_device = nullptr
 
ExecuteWorkRequest m_workRequest
 
RHI::HardwareQueueClass m_hardwareQueueClass = RHI::HardwareQueueClass::Graphics
 
AZStd::vector< RHI::FrameGraphExecuteGroup * > m_executeGroups
 
bool m_isExecuted = false
 
CommandQueueCommandBuffer m_commandBuffer
 
AZStd::atomic_bool m_hasBegun {false}
 

Detailed Description

Base class for handler classes that manage frame graph execute groups. Contains common functionality for all types of handlers including how execute groups are handled and how work requests are sent to the command queue.


The documentation for this class was generated from the following file: