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

A specialization of Attachment for a buffer. Provides access to the buffer. More...

#include <BufferFrameAttachment.h>

Inherits AZ::RHI::FrameAttachment.

Public Member Functions

 AZ_RTTI (BufferFrameAttachment, "{2E6463F2-AB93-46C4-AD3C-30C3DD0B7151}", FrameAttachment)
 
 AZ_CLASS_ALLOCATOR (BufferFrameAttachment, SystemAllocator)
 
 BufferFrameAttachment (const AttachmentId &attachmentId, Ptr< Buffer > buffer)
 Initialization for imported buffers.
 
 BufferFrameAttachment (const TransientBufferDescriptor &descriptor)
 Initialization for transient buffers.
 
const BufferScopeAttachmentGetFirstScopeAttachment () const
 Returns the first scope attachment in the linked list.
 
BufferScopeAttachmentGetFirstScopeAttachment ()
 
const BufferScopeAttachmentGetLastScopeAttachment () const
 Returns the last scope attachment in the linked list.
 
BufferScopeAttachmentGetLastScopeAttachment ()
 
const BufferGetBuffer () const
 
BufferGetBuffer ()
 
const BufferDescriptorGetBufferDescriptor () const
 Returns the buffer descriptor assigned to this attachment.
 
- Public Member Functions inherited from AZ::RHI::FrameAttachment
 AZ_RTTI (FrameAttachment, "{F35548B3-4B2C-478C-9ED9-759CAEAE2729}")
 
const AttachmentId & GetId () const
 Returns the attachment id.
 
ResourceGetResource ()
 Returns the resource associated with this frame attachment.
 
const ResourceGetResource () const
 
AttachmentLifetimeType GetLifetimeType () const
 Returns the attachment lifetime type.
 
const ScopeAttachmentGetFirstScopeAttachment () const
 Returns the first scope attachment in the linked list.
 
ScopeAttachmentGetFirstScopeAttachment ()
 
const ScopeAttachmentGetLastScopeAttachment () const
 Returns the last scope attachment in the linked list.
 
ScopeAttachmentGetLastScopeAttachment ()
 
ScopeGetFirstScope () const
 
ScopeGetLastScope () const
 
HardwareQueueClassMask GetUsedQueueMask () const
 Returns the mask of all the hardware queues that this attachment is used on.
 
HardwareQueueClassMask GetSupportedQueueMask () const
 Returns the mask of all the hardware queues that this attachment is supported on.
 
void SetResource (Ptr< Resource > resource)
 [Internal] Assigns the resource. This may only be done once.
 

Protected Attributes

BufferDescriptor m_bufferDescriptor
 

Additional Inherited Members

- Protected Member Functions inherited from AZ::RHI::FrameAttachment
 FrameAttachment (const AttachmentId &attachmentId, HardwareQueueClassMask supportedQueueMask, AttachmentLifetimeType lifetimeType)
 
 FrameAttachment (const FrameAttachment &)=delete
 
 FrameAttachment (FrameAttachment &&)=delete
 

Detailed Description

A specialization of Attachment for a buffer. Provides access to the buffer.

Member Function Documentation

◆ GetBuffer()

const Buffer * AZ::RHI::BufferFrameAttachment::GetBuffer ( ) const

Returns the buffer resource assigned to this attachment. This is not guaranteed to exist until after frame graph compilation.


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