diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-11 20:10:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-11 20:10:55 +0200 |
commit | d64303d185f86901d0f587faf0e9a65d8497169c (patch) | |
tree | 27e105a3534a2a92d2ea6468dab723cc156118fa /src/video_core/gpu.cpp | |
parent | Merge pull request #1003 from lioncash/var (diff) | |
parent | video_core; Get rid of global g_toggle_framelimit_enabled variable (diff) | |
download | yuzu-d64303d185f86901d0f587faf0e9a65d8497169c.tar yuzu-d64303d185f86901d0f587faf0e9a65d8497169c.tar.gz yuzu-d64303d185f86901d0f587faf0e9a65d8497169c.tar.bz2 yuzu-d64303d185f86901d0f587faf0e9a65d8497169c.tar.lz yuzu-d64303d185f86901d0f587faf0e9a65d8497169c.tar.xz yuzu-d64303d185f86901d0f587faf0e9a65d8497169c.tar.zst yuzu-d64303d185f86901d0f587faf0e9a65d8497169c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index b90937d17..ceaf86654 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include "common/assert.h" #include "video_core/engines/fermi_2d.h" #include "video_core/engines/maxwell_3d.h" #include "video_core/engines/maxwell_compute.h" @@ -11,6 +12,15 @@ namespace Tegra { +u32 FramebufferConfig::BytesPerPixel(PixelFormat format) { + switch (format) { + case PixelFormat::ABGR8: + return 4; + } + + UNREACHABLE(); +} + GPU::GPU(VideoCore::RasterizerInterface& rasterizer) { memory_manager = std::make_unique<MemoryManager>(); maxwell_3d = std::make_unique<Engines::Maxwell3D>(rasterizer, *memory_manager); |