summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-01-21 20:12:47 +0100
committerGitHub <noreply@github.com>2019-01-21 20:12:47 +0100
commit125599c2d51fba0bb9466d92382631ed7f34bed9 (patch)
treea0fc21fcf2d49ff81938f0463cf3a5da4dcd3184 /src/video_core
parentMerge pull request #2034 from jroweboy/loading-widget (diff)
parentChange const char* to const char[] (diff)
downloadyuzu-125599c2d51fba0bb9466d92382631ed7f34bed9.tar
yuzu-125599c2d51fba0bb9466d92382631ed7f34bed9.tar.gz
yuzu-125599c2d51fba0bb9466d92382631ed7f34bed9.tar.bz2
yuzu-125599c2d51fba0bb9466d92382631ed7f34bed9.tar.lz
yuzu-125599c2d51fba0bb9466d92382631ed7f34bed9.tar.xz
yuzu-125599c2d51fba0bb9466d92382631ed7f34bed9.tar.zst
yuzu-125599c2d51fba0bb9466d92382631ed7f34bed9.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/rasterizer_interface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index 06fc59dbe..ff5310848 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -4,6 +4,7 @@
#pragma once
+#include <functional>
#include "common/common_types.h"
#include "video_core/engines/fermi_2d.h"
#include "video_core/gpu.h"
@@ -11,6 +12,14 @@
namespace VideoCore {
+enum class LoadCallbackStage {
+ Prepare,
+ Decompile,
+ Build,
+ Complete,
+};
+using DiskResourceLoadCallback = std::function<void(LoadCallbackStage, std::size_t, std::size_t)>;
+
class RasterizerInterface {
public:
virtual ~RasterizerInterface() {}