summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2021-01-01 02:42:05 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-01-01 02:42:05 +0000
commit84f5306f57a09815f7bd19c4b414695f0d1637ec (patch)
tree970c5257aff42540a2885023514876353cb8879c /Graphics/GraphicsEngineD3D12
parentImplemented initialization of staging textures in D3D12 and Vulkan backends (diff)
downloadDiligentCore-84f5306f57a09815f7bd19c4b414695f0d1637ec.tar.gz
DiligentCore-84f5306f57a09815f7bd19c4b414695f0d1637ec.zip
Fixed 32-bit build
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp
index 496255e5..03be0852 100644
--- a/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/TextureD3D12Impl.cpp
@@ -370,7 +370,7 @@ TextureD3D12Impl::TextureD3D12Impl(IReferenceCounters* pRefCounters,
);
}
}
- D3D12_RANGE FlushRange{0, stagingBufferSize};
+ D3D12_RANGE FlushRange{0, static_cast<SIZE_T>(stagingBufferSize)};
m_pd3d12Resource->Unmap(0, &FlushRange);
}
}