Skip to content

Commit 76635d2

Browse files
Remove dead code.
1 parent 37a52c6 commit 76635d2

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

lib/API/DX/Device.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,27 +2023,6 @@ class DXDevice : public offloadtest::Device {
20232023
return std::make_unique<DXAccelerationStructure>(ASBuffer);
20242024
}
20252025

2026-
void addResourceUploadCommands(Resource &R, InvocationState &IS,
2027-
ComPtr<ID3D12Resource> Destination,
2028-
ComPtr<ID3D12Resource> Source) {
2029-
addUploadBeginBarrier(IS, Destination);
2030-
if (R.isTexture()) {
2031-
const offloadtest::CPUBuffer &B = *R.BufferPtr;
2032-
const D3D12_PLACED_SUBRESOURCE_FOOTPRINT Footprint{
2033-
0, CD3DX12_SUBRESOURCE_FOOTPRINT(
2034-
getDXFormat(B.Format, B.Channels), B.OutputProps.Width,
2035-
B.OutputProps.Height, 1,
2036-
B.OutputProps.Width * B.getElementSize())};
2037-
const CD3DX12_TEXTURE_COPY_LOCATION DstLoc(Destination.Get(), 0);
2038-
const CD3DX12_TEXTURE_COPY_LOCATION SrcLoc(Source.Get(), Footprint);
2039-
2040-
IS.CB->CmdList->CopyTextureRegion(&DstLoc, 0, 0, 0, &SrcLoc, nullptr);
2041-
} else
2042-
IS.CB->CmdList->CopyBufferRegion(Destination.Get(), 0, Source.Get(), 0,
2043-
R.size());
2044-
addUploadEndBarrier(IS, Destination, R.isReadWrite());
2045-
}
2046-
20472026
static UINT getNumTiles(std::optional<uint32_t> NumTiles, uint32_t Width) {
20482027
UINT Ret;
20492028
if (NumTiles.has_value())

0 commit comments

Comments
 (0)