upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/d3d12_com.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
-rw-r--r--runtime/shims/d3d12_com.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp
index 89b87e004..a1aa3ccc5 100644
--- a/runtime/shims/d3d12_com.cpp
+++ b/runtime/shims/d3d12_com.cpp
@@ -705,17 +705,6 @@ public:
705 d3d12_trace::record("ID3D12GraphicsCommandList::ClearRenderTargetView"); 705 d3d12_trace::record("ID3D12GraphicsCommandList::ClearRenderTargetView");
706 if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE) return check(false); 706 if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE) return check(false);
707 if (!view.ptr || !color) return check(false); 707 if (!view.ptr || !color) return check(false);
708 // LOCAL DIAGNOSTIC: LEONIDA_DEBUG_CLEAR=1 clears to magenta; the first clears are logged.
709 static const bool magenta = [] { const char* v = std::getenv("LEONIDA_DEBUG_CLEAR"); return v && *v == '1'; }();
710 const auto* target = reinterpret_cast<const leonida::TargetView*>(view.ptr);
711 static std::atomic<int> shown{0};
712 if (shown.fetch_add(1, std::memory_order_relaxed) < 6)
713 std::fprintf(stderr, "[rt] localdbg: clear resource=0x%llx colour=%g %g %g %g rects=%u\n",
714 static_cast<unsigned long long>(target->resource), color[0], color[1], color[2], color[3], count);
715 if (magenta) {
716 check(list_.clear_render_target(*target, {1.0f, 0.0f, 1.0f, 1.0f}, to_rects(count, rects)));
717 return;
718 }
719 check(list_.clear_render_target(*reinterpret_cast<const leonida::TargetView*>(view.ptr), 708 check(list_.clear_render_target(*reinterpret_cast<const leonida::TargetView*>(view.ptr),
720 {color[0], color[1], color[2], color[3]}, to_rects(count, rects))); 709 {color[0], color[1], color[2], color[3]}, to_rects(count, rects)));
721 } 710 }