diff options
| author | 2018-03-24 00:45:24 -0400 | |
|---|---|---|
| committer | 2018-03-26 21:16:49 -0400 | |
| commit | 94c70693f941484c40fae7c321ef9f3d866de684 (patch) | |
| tree | 902352126cae1abbfe63c4bad65a173d9b98baf0 /src | |
| parent | renderer_opengl: Only draw the screen if a framebuffer is specified. (diff) | |
| download | yuzu-94c70693f941484c40fae7c321ef9f3d866de684.tar.gz yuzu-94c70693f941484c40fae7c321ef9f3d866de684.tar.xz yuzu-94c70693f941484c40fae7c321ef9f3d866de684.zip | |
maxwell: Add RenderTargetFormat enum.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 7 | ||||
| -rw-r--r-- | src/video_core/gpu.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 8e2d888e7..3c49cd27f 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include "common/bit_field.h" | 11 | #include "common/bit_field.h" |
| 12 | #include "common/common_funcs.h" | 12 | #include "common/common_funcs.h" |
| 13 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 14 | #include "video_core/gpu.h" | ||
| 14 | #include "video_core/memory_manager.h" | 15 | #include "video_core/memory_manager.h" |
| 15 | #include "video_core/textures/texture.h" | 16 | #include "video_core/textures/texture.h" |
| 16 | 17 | ||
| @@ -167,9 +168,9 @@ public: | |||
| 167 | struct { | 168 | struct { |
| 168 | u32 address_high; | 169 | u32 address_high; |
| 169 | u32 address_low; | 170 | u32 address_low; |
| 170 | u32 horiz; | 171 | u32 width; |
| 171 | u32 vert; | 172 | u32 height; |
| 172 | u32 format; | 173 | Tegra::RenderTargetFormat format; |
| 173 | u32 block_dimensions; | 174 | u32 block_dimensions; |
| 174 | u32 array_mode; | 175 | u32 array_mode; |
| 175 | u32 layer_stride; | 176 | u32 layer_stride; |
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 8183b12e9..ab24504a6 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | namespace Tegra { | 14 | namespace Tegra { |
| 15 | 15 | ||
| 16 | enum class RenderTargetFormat { | 16 | enum class RenderTargetFormat : u32 { |
| 17 | RGBA8_UNORM = 0xD5, | 17 | RGBA8_UNORM = 0xD5, |
| 18 | }; | 18 | }; |
| 19 | 19 | ||