summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTriang3l <triang3l@yandex.ru>2022-10-09 22:06:41 +0300
committerTriang3l <triang3l@yandex.ru>2022-10-09 22:06:41 +0300
commit45050b2380022dcd39d79bd071e87f4131cabf62 (patch)
treef108d7245cfbda67062ebbee973ad6f8ef97d8ff /tools
parent9ab4db285c31e10823e3a6810ba0d688fd128bfb (diff)
[GPU] Vulkan fragment shader interlock RB and related fixes/cleanup
Also fixes addressing of MSAA samples 2 and 3 for 64bpp color render targets in the ROV RB implementation on Direct3D 12. Additionally, with FSI/ROV, alpha test and alpha to coverage are done only if the render target 0 was dynamically written to (according to the Direct3D 9 rules for writing to color render targets, though not sure if they actually apply to the alpha tests on Direct3D 9, but for safety). There is also some code cleanup for things spotted during the development of the feature.
Diffstat (limited to 'tools')
-rw-r--r--tools/shader-playground/Editor.Designer.cs7
-rw-r--r--tools/shader-playground/Editor.cs6
2 files changed, 8 insertions, 5 deletions
diff --git a/tools/shader-playground/Editor.Designer.cs b/tools/shader-playground/Editor.Designer.cs
index f57e550e4..dfb971e91 100644
--- a/tools/shader-playground/Editor.Designer.cs
+++ b/tools/shader-playground/Editor.Designer.cs
@@ -191,9 +191,10 @@
this.translationComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.translationComboBox.FormattingEnabled = true;
this.translationComboBox.Items.AddRange(new object[] {
- "DXBC (RTV/DSV RB)",
- "DXBC (ROV RB)",
- "SPIR-V"});
+ "DXBC (render target RB)",
+ "DXBC (rasterizer-ordered view RB)",
+ "SPIR-V (framebuffer RB)",
+ "SPIR-V (fragment shader interlock RB)"});
this.translationComboBox.Location = new System.Drawing.Point(1224, 0);
this.translationComboBox.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0);
this.translationComboBox.Name = "translationComboBox";
diff --git a/tools/shader-playground/Editor.cs b/tools/shader-playground/Editor.cs
index 52d1f6a6e..cb0aa7145 100644
--- a/tools/shader-playground/Editor.cs
+++ b/tools/shader-playground/Editor.cs
@@ -235,6 +235,7 @@ namespace shader_playground {
outputType = "dxbctext";
break;
case 2:
+ case 3:
outputType = "spirvtext";
break;
}
@@ -269,8 +270,9 @@ namespace shader_playground {
"--vertex_shader_output_type=" + vertexShaderType,
"--dxbc_source_map=true",
};
- if (translationComboBox.SelectedIndex == 1) {
- startArguments.Add("--shader_output_dxbc_rov=true");
+ if (translationComboBox.SelectedIndex == 1 ||
+ translationComboBox.SelectedIndex == 3) {
+ startArguments.Add("--shader_output_pixel_shader_interlock=true");
}
startInfo = new ProcessStartInfo(compilerPath_);