|
@@ -671,7 +671,7 @@ namespace AtomSampleViewer
|
|
|
{
|
|
|
RHI::BufferScopeAttachmentDescriptor descriptor{};
|
|
|
descriptor.m_attachmentId = m_bufferAttachmentIds[1];
|
|
|
- descriptor.m_bufferViewDescriptor = RHI::BufferViewDescriptor::CreateRaw(0, m_stagingBufferToCPU->GetDescriptor().m_byteCount);
|
|
|
+ descriptor.m_bufferViewDescriptor = RHI::BufferViewDescriptor::CreateRaw(0, static_cast<uint32_t>(m_stagingBufferToCPU->GetDescriptor().m_byteCount));
|
|
|
descriptor.m_loadStoreAction.m_loadAction = RHI::AttachmentLoadAction::DontCare;
|
|
|
descriptor.m_loadStoreAction.m_storeAction = RHI::AttachmentStoreAction::Store;
|
|
|
frameGraph.UseCopyAttachment(descriptor, RHI::ScopeAttachmentAccess::Write);
|