summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-11 20:10:55 +0200
committerGitHub <noreply@github.com>2018-08-11 20:10:55 +0200
commitd64303d185f86901d0f587faf0e9a65d8497169c (patch)
tree27e105a3534a2a92d2ea6468dab723cc156118fa /src/video_core/gpu.h
parentMerge pull request #1003 from lioncash/var (diff)
parentvideo_core; Get rid of global g_toggle_framelimit_enabled variable (diff)
downloadyuzu-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 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 0164c747a..b57312b3b 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -6,7 +6,6 @@
#include <memory>
#include <unordered_map>
-#include <vector>
#include "common/common_types.h"
#include "core/hle/service/nvflinger/buffer_queue.h"
#include "video_core/memory_manager.h"
@@ -72,14 +71,7 @@ struct FramebufferConfig {
/**
* Returns the number of bytes per pixel.
*/
- static u32 BytesPerPixel(PixelFormat format) {
- switch (format) {
- case PixelFormat::ABGR8:
- return 4;
- }
-
- UNREACHABLE();
- }
+ static u32 BytesPerPixel(PixelFormat format);
VAddr address;
u32 offset;