#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 | ||
} | ||
}; | ||
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.