#include <FrameGraphCompileContext.h>
Public Member Functions | |
FrameGraphCompileContext (const ScopeId &scopeId, const FrameGraphAttachmentDatabase &attachmentDatabase) | |
const ScopeId & | GetScopeId () const |
Returns the scope id associated with this context. | |
bool | IsAttachmentValid (const AttachmentId &attachmentId) const |
Returns whether the given attachment id is valid within the current frame. | |
const size_t | GetScopeAttachmentCount (const AttachmentId &attachmentId) const |
Returns the number of scope attachments used by the current scope for the given attachment. | |
const BufferView * | GetBufferView (const ScopeAttachment *scopeAttachment) const |
Returns the buffer view associated with the scope attachment. | |
const BufferView * | GetBufferView (const AttachmentId &attachmentId) const |
Returns the buffer view associated with the attachmentId. | |
const BufferView * | GetBufferView (const AttachmentId &attachmentId, RHI::ScopeAttachmentUsage attachmentUsage) const |
Returns the buffer view associated with attachmentId and the attachmentUsage on the current scope. | |
const Buffer * | GetBuffer (const AttachmentId &attachmentId) const |
Returns the buffer associated with attachmentId. | |
const ImageView * | GetImageView (const ScopeAttachment *scopeAttacment) const |
Returns the image view associated with the scope attachment. | |
const ImageView * | GetImageView (const AttachmentId &attachmentId, const ImageViewDescriptor &imageViewDescriptor, const RHI::ScopeAttachmentUsage attachmentUsage) const |
Returns the image view associated with attachmentId, attachmentUsage and imageViewDescriptor on the current scope. | |
const ImageView * | GetImageView (const AttachmentId &attachmentId) const |
Returns the image view associated with the attachmentId. | |
const Image * | GetImage (const AttachmentId &attachmentId) const |
Returns the image associated with the attachmentId. | |
BufferDescriptor | GetBufferDescriptor (const AttachmentId &attachmentId) const |
Returns the buffer descriptor for the given attachment id. | |
ImageDescriptor | GetImageDescriptor (const AttachmentId &attachmentId) const |
Returns the image descriptor for the given attachment id. | |
FrameGraphCompileContext provides access to compiled image and buffer views associated with the provided scope id, along with other query methods for accessing attachment resource data. This information can be used to compile ShaderResourceGroups.