#include <PassTemplate.h>
Public Member Functions | |
AZ_RTTI (PassTemplate, "{BF485F6D-02EC-4BAD-94BA-519248F59D14}") | |
AZ_CLASS_ALLOCATOR (PassTemplate, SystemAllocator) | |
AZStd::shared_ptr< PassTemplate > | Clone () const |
AZStd::unique_ptr< PassTemplate > | CloneUnique () const |
const PassRequest * | FindPassRequest (const Name &passName) const |
Find a pass request by name in m_passRequests. | |
void | AddSlot (PassSlot passSlot) |
Adds a slot to the PassTemplate. | |
void | AddOutputConnection (PassConnection connection) |
Adds an output connection to the PassTemplate. | |
void | AddImageAttachment (PassImageAttachmentDesc imageAttachment) |
Adds an image descriptor to the PassTemplate. | |
void | AddBufferAttachment (PassBufferAttachmentDesc bufferAttachment) |
Adds an image descriptor to the PassTemplate. | |
void | AddPassRequest (PassRequest passRequest) |
Adds a pass request to the PassTemplate. | |
Static Public Member Functions | |
static void | Reflect (ReflectContext *context) |
Public Attributes | |
Name | m_name |
Name | m_passClass |
Name of the pass class to instantiate. | |
PassSlotList | m_slots |
Lists of inputs, outputs and input/outputs. | |
PassConnectionList | m_connections |
PassFallbackConnectionList | m_fallbackConnections |
PassImageAttachmentDescList | m_imageAttachments |
List of descriptors for the image attachments the Pass will own. | |
PassBufferAttachmentDescList | m_bufferAttachments |
List of descriptors for the buffer attachments the Pass will own. | |
PassRequestList | m_passRequests |
List of requests to create child passes. | |
AZStd::shared_ptr< PassData > | m_passData = nullptr |
Optional data to be used during pass initialization. | |
Friends | |
class | PassAsset |
Used to data drive passes in the pass system. Contains lists of input and output attachment slots as well as requests to instantiate child passes.
PassConnectionList AZ::RPI::PassTemplate::m_connections |
Connections for the Pass. Most of the time these will be output connections (which often point to attachments owned by the pass), since input connections should be specified by the PassRequest (inputs are generally hooked up to other passes). Cases where you would want to specify input connections on the PassTemplate are images imported as assets.
PassFallbackConnectionList AZ::RPI::PassTemplate::m_fallbackConnections |
Fallback connections for the Pass's outputs. These connections will hook up to inputs of the pass and provide a fallback attachment for when the pass is disabled.