Ignore color target / depth target / texture alpha in the trace viewer.
This commit is contained in:
parent
a8dfd6a21a
commit
e77af94c7c
|
@ -639,8 +639,8 @@ void TraceViewer::DrawTextureInfo(
|
||||||
|
|
||||||
ImGui::Columns(2);
|
ImGui::Columns(2);
|
||||||
ImVec2 button_size(256, 256);
|
ImVec2 button_size(256, 256);
|
||||||
if (ImGui::ImageButton(ImTextureID(texture), button_size, ImVec2(0, 0),
|
if (ImGui::ImageButton(ImTextureID(texture | ui::ImGuiDrawer::kIgnoreAlpha),
|
||||||
ImVec2(1, 1))) {
|
button_size, ImVec2(0, 0), ImVec2(1, 1))) {
|
||||||
// show viewer
|
// show viewer
|
||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
@ -1316,9 +1316,9 @@ void TraceViewer::DrawStateUI() {
|
||||||
ImVec2 button_size(256, 256);
|
ImVec2 button_size(256, 256);
|
||||||
ImTextureID tex = 0;
|
ImTextureID tex = 0;
|
||||||
if (write_mask) {
|
if (write_mask) {
|
||||||
auto color_target = GetColorRenderTarget(
|
auto color_target = GetColorRenderTarget(surface_pitch, surface_msaa,
|
||||||
i, surface_pitch, surface_msaa, color_base, color_format);
|
color_base, color_format);
|
||||||
tex = ImTextureID(color_target);
|
tex = ImTextureID(color_target | ui::ImGuiDrawer::kIgnoreAlpha);
|
||||||
if (ImGui::ImageButton(tex, button_size, ImVec2(0, 0),
|
if (ImGui::ImageButton(tex, button_size, ImVec2(0, 0),
|
||||||
ImVec2(1, 1))) {
|
ImVec2(1, 1))) {
|
||||||
// show viewer
|
// show viewer
|
||||||
|
@ -1407,8 +1407,9 @@ void TraceViewer::DrawStateUI() {
|
||||||
|
|
||||||
auto button_pos = ImGui::GetCursorScreenPos();
|
auto button_pos = ImGui::GetCursorScreenPos();
|
||||||
ImVec2 button_size(256, 256);
|
ImVec2 button_size(256, 256);
|
||||||
ImGui::ImageButton(ImTextureID(depth_target), button_size, ImVec2(0, 0),
|
ImGui::ImageButton(
|
||||||
ImVec2(1, 1));
|
ImTextureID(depth_target | ui::ImGuiDrawer::kIgnoreAlpha),
|
||||||
|
button_size, ImVec2(0, 0), ImVec2(1, 1));
|
||||||
if (ImGui::IsItemHovered()) {
|
if (ImGui::IsItemHovered()) {
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue