fix accidentally lost from #105 (#109)
diff --git a/src/backend/d3d12/CommandBufferD3D12.cpp b/src/backend/d3d12/CommandBufferD3D12.cpp
index 845d7f3..3822c7c 100644
--- a/src/backend/d3d12/CommandBufferD3D12.cpp
+++ b/src/backend/d3d12/CommandBufferD3D12.cpp
@@ -281,7 +281,7 @@
if (attachmentInfo.firstSubpass == currentSubpass) {
// Load op - color
if (attachmentInfo.colorLoadOp == nxt::LoadOp::Clear) {
- auto handle = currentFramebuffer->GetDSVDescriptor(attachmentSlot);
+ auto handle = currentFramebuffer->GetRTVDescriptor(attachmentSlot);
const auto& clear = currentFramebuffer->GetClearColor(attachmentSlot);
commandList->ClearRenderTargetView(handle, clear.color, 0, nullptr);
}
@@ -308,7 +308,7 @@
clearFlags |= D3D12_CLEAR_FLAG_STENCIL;
}
if (clearFlags) {
- auto handle = currentFramebuffer->GetRTVDescriptor(attachmentSlot);
+ auto handle = currentFramebuffer->GetDSVDescriptor(attachmentSlot);
const auto& clear = currentFramebuffer->GetClearDepthStencil(attachmentSlot);
// TODO(kainino@chromium.org): investigate: should the NXT clear stencil type be uint8_t?
uint8_t clearStencil = static_cast<uint8_t>(clear.stencil);
diff --git a/third_party/spirv-cross b/third_party/spirv-cross
index e8eae4d..2cbeaac 160000
--- a/third_party/spirv-cross
+++ b/third_party/spirv-cross
@@ -1 +1 @@
-Subproject commit e8eae4d7dde433b1a8dc7e9a977508f8cef9c984
+Subproject commit 2cbeaac76f6fac04f077a6aea2bd1417909798f3