summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-26 22:10:21 +0100
committerLiam <byteslice@airmail.cc>2024-02-09 15:20:53 +0100
commit0cb413c3d31b93ce347e997b9674c304094dab09 (patch)
tree959ef73963ea1e7975690d31eaf4ddc2f2ad6e19 /src/video_core/gpu.cpp
parentnvnflinger/gpu: implement blending (diff)
downloadyuzu-0cb413c3d31b93ce347e997b9674c304094dab09.tar
yuzu-0cb413c3d31b93ce347e997b9674c304094dab09.tar.gz
yuzu-0cb413c3d31b93ce347e997b9674c304094dab09.tar.bz2
yuzu-0cb413c3d31b93ce347e997b9674c304094dab09.tar.lz
yuzu-0cb413c3d31b93ce347e997b9674c304094dab09.tar.xz
yuzu-0cb413c3d31b93ce347e997b9674c304094dab09.tar.zst
yuzu-0cb413c3d31b93ce347e997b9674c304094dab09.zip
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index f4a5d831c..8e663f2a8 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -347,6 +347,17 @@ struct GPU::Impl {
WaitForSyncOperation(wait_fence);
}
+ std::vector<u8> GetAppletCaptureBuffer() {
+ std::vector<u8> out;
+
+ const auto wait_fence =
+ RequestSyncOperation([&] { out = renderer->GetAppletCaptureBuffer(); });
+ gpu_thread.TickGPU();
+ WaitForSyncOperation(wait_fence);
+
+ return out;
+ }
+
GPU& gpu;
Core::System& system;
Host1x::Host1x& host1x;
@@ -505,6 +516,10 @@ void GPU::RequestComposite(std::vector<Tegra::FramebufferConfig>&& layers,
impl->RequestComposite(std::move(layers), std::move(fences));
}
+std::vector<u8> GPU::GetAppletCaptureBuffer() {
+ return impl->GetAppletCaptureBuffer();
+}
+
u64 GPU::GetTicks() const {
return impl->GetTicks();
}