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

#include <UnifiedAttachmentDescriptor.h>

Public Member Functions

 UnifiedAttachmentDescriptor (const BufferDescriptor &bufferDescriptor)
 
 UnifiedAttachmentDescriptor (const ImageDescriptor &imageDescriptor)
 
 UnifiedAttachmentDescriptor (const BufferDescriptor &bufferDescriptor, const BufferViewDescriptor &bufferViewDescriptor)
 
 UnifiedAttachmentDescriptor (const ImageDescriptor &imageDescriptor, const ImageViewDescriptor &imageViewDescriptor)
 
HashValue64 GetHash (HashValue64 seed=HashValue64{ 0 }) const
 

Public Attributes

AttachmentType m_type = AttachmentType::Uninitialized
 Differentiates between an image, buffer and resolve attachment.
 
union { 
 
   struct { 
 
      BufferDescriptor   m_buffer 
 
      BufferViewDescriptor   m_bufferView 
 
   }  
 
   struct { 
 
      ImageDescriptor   m_image 
 
      ImageViewDescriptor   m_imageView 
 
   }  
 
};  
 

Detailed Description

A unified attachment descriptor used to store either an image or a buffer descriptor. Used primarily to simplify pass attachment logic while supporting both attachment types.


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