diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2017-01-23 17:14:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-23 17:14:06 +0100 |
| commit | 1c854f2daa2929ae5d8bb0e6978a11eb9abf442b (patch) | |
| tree | 6eb4c70f6e6dcdf8c9eaf5fbbb9c73360091e493 /Source/Core/VideoBackends/Vulkan/Renderer.cpp | |
| parent | 6d879f7f3ae2cf4a20f574f301e3edb458f27c90 (diff) | |
| parent | 940aa6f32d5348c40fdc904e42b47fbe032fcd4d (diff) | |
Merge pull request #4727 from lioncash/enum-class
VideoBackendBase: Convert EFBAccessType and FieldType into enum classes
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/Renderer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/Renderer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/Renderer.cpp b/Source/Core/VideoBackends/Vulkan/Renderer.cpp index d87b8c6519..2c180fd70b 100644 --- a/Source/Core/VideoBackends/Vulkan/Renderer.cpp +++ b/Source/Core/VideoBackends/Vulkan/Renderer.cpp @@ -179,7 +179,7 @@ void Renderer::RenderText(const std::string& text, int left, int top, u32 color) u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) { - if (type == PEEK_COLOR) + if (type == EFBAccessType::PeekColor) { u32 color = FramebufferManager::GetInstance()->PeekEFBColor(x, y); @@ -215,7 +215,7 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) return color & 0x00FFFFFF; // GX_READ_00 } } - else // if (type == PEEK_Z) + else // if (type == EFBAccessType::PeekZ) { // Depth buffer is inverted for improved precision near far plane float depth = 1.0f - FramebufferManager::GetInstance()->PeekEFBDepth(x, y); @@ -237,7 +237,7 @@ u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) void Renderer::PokeEFB(EFBAccessType type, const EfbPokeData* points, size_t num_points) { - if (type == POKE_COLOR) + if (type == EFBAccessType::PokeColor) { for (size_t i = 0; i < num_points; i++) { @@ -249,7 +249,7 @@ void Renderer::PokeEFB(EFBAccessType type, const EfbPokeData* points, size_t num FramebufferManager::GetInstance()->PokeEFBColor(point.x, point.y, color); } } - else // if (type == POKE_Z) + else // if (type == EFBAccessType::PokeZ) { for (size_t i = 0; i < num_points; i++) { |
