Skip to content

Commit b750dfb

Browse files
committed
compile error
1 parent d735f6b commit b750dfb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/API/DX/Device.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,8 +3414,7 @@ llvm::Error DXComputeEncoder::batchBuildAS(llvm::ArrayRef<ASBuildItem> Items) {
34143414
GD.Triangles.IndexFormat = getDXGIIndexFormat(T.IdxFormat);
34153415
}
34163416
if (T.Transform) {
3417-
const BufferCreateDesc XformDesc{MemoryLocation::CpuToGpu,
3418-
BufferUsage::Storage};
3417+
const BufferCreateDesc XformDesc = BufferCreateDesc::uploadBuffer();
34193418
auto XformOrErr = offloadtest::createBufferWithData(
34203419
*Dev, "AS-Geom-Transform", XformDesc, T.Transform->data(),
34213420
T.Transform->size() * sizeof(float), nullptr, nullptr);

0 commit comments

Comments
 (0)