Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/API/MTL/MTLDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,11 @@ class MTLDevice : public offloadtest::Device {
Contributions.push_back(Inst.InstanceContributionToHitGroupIndex &
0xFFFFFFu);
const BufferCreateDesc Desc{MemoryLocation::GpuToCpu,
BufferUsage::Storage};
MemoryBacking::Automatic,
BufferUsage::Storage,
BufferShaderAccessType::Raw,
{},
false};
Comment on lines 1416 to +1421

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this use one of the static BufferCreateDesc helper functions instead? BufferCreateDesc::readBackBuffer I guess?

auto ContribBufOrErr = createBufferWithData(
*IS.CB->Dev, "AS-Contributions", Desc, Contributions.data(),
InstCount * sizeof(uint32_t), nullptr, nullptr);
Expand Down
Loading