summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar Rodrigo Locatti2019-12-10 21:20:52 -0300
committerGravatar GitHub2019-12-10 21:20:52 -0300
commitc8db7d1399bf83937debe347e6d214c501afdff6 (patch)
tree82e494fd45cf84d676b1e0b3c88e08bc0ce17300 /src/video_core/engines
parentMerge pull request #3208 from ReinUsesLisp/vk-shader-decompiler (diff)
parentMaxwell3D: Implement Depth Mode. (diff)
downloadyuzu-c8db7d1399bf83937debe347e6d214c501afdff6.tar.gz
yuzu-c8db7d1399bf83937debe347e6d214c501afdff6.tar.xz
yuzu-c8db7d1399bf83937debe347e6d214c501afdff6.zip
Merge pull request #3211 from FernandoS27/depth-mode
Maxwell3D: Implement Depth Mode.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index dcc7cd1fe..dbb4e597f 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -310,6 +310,11 @@ public:
310 } 310 }
311 }; 311 };
312 312
313 enum class DepthMode : u32 {
314 MinusOneToOne = 0,
315 ZeroToOne = 1,
316 };
317
313 enum class PrimitiveTopology : u32 { 318 enum class PrimitiveTopology : u32 {
314 Points = 0x0, 319 Points = 0x0,
315 Lines = 0x1, 320 Lines = 0x1,
@@ -491,11 +496,6 @@ public:
491 INSERT_UNION_PADDING_WORDS(1); 496 INSERT_UNION_PADDING_WORDS(1);
492 }; 497 };
493 498
494 enum class DepthMode : u32 {
495 MinusOneToOne = 0,
496 ZeroToOne = 1,
497 };
498
499 enum class TessellationPrimitive : u32 { 499 enum class TessellationPrimitive : u32 {
500 Isolines = 0, 500 Isolines = 0,
501 Triangles = 1, 501 Triangles = 1,
@@ -676,7 +676,7 @@ public:
676 u32 count; 676 u32 count;
677 } vertex_buffer; 677 } vertex_buffer;
678 678
679 INSERT_UNION_PADDING_WORDS(1); 679 DepthMode depth_mode;
680 680
681 float clear_color[4]; 681 float clear_color[4];
682 float clear_depth; 682 float clear_depth;
@@ -1425,6 +1425,7 @@ ASSERT_REG_POSITION(rt, 0x200);
1425ASSERT_REG_POSITION(viewport_transform, 0x280); 1425ASSERT_REG_POSITION(viewport_transform, 0x280);
1426ASSERT_REG_POSITION(viewports, 0x300); 1426ASSERT_REG_POSITION(viewports, 0x300);
1427ASSERT_REG_POSITION(vertex_buffer, 0x35D); 1427ASSERT_REG_POSITION(vertex_buffer, 0x35D);
1428ASSERT_REG_POSITION(depth_mode, 0x35F);
1428ASSERT_REG_POSITION(clear_color[0], 0x360); 1429ASSERT_REG_POSITION(clear_color[0], 0x360);
1429ASSERT_REG_POSITION(clear_depth, 0x364); 1430ASSERT_REG_POSITION(clear_depth, 0x364);
1430ASSERT_REG_POSITION(clear_stencil, 0x368); 1431ASSERT_REG_POSITION(clear_stencil, 0x368);