diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-17 16:21:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 16:21:50 +0100 |
commit | a3bac5550d144246fb95b12f0fb2b45befcb8035 (patch) | |
tree | 12d14847347c6fe006e5b7dfc4fd11439e48e195 /src/input_common/drivers/camera.h | |
parent | Merge pull request #9452 from ameerj/hle-read-buffer-resreve (diff) | |
parent | camera: Use pre-allocated vector for camera data (diff) | |
download | yuzu-a3bac5550d144246fb95b12f0fb2b45befcb8035.tar yuzu-a3bac5550d144246fb95b12f0fb2b45befcb8035.tar.gz yuzu-a3bac5550d144246fb95b12f0fb2b45befcb8035.tar.bz2 yuzu-a3bac5550d144246fb95b12f0fb2b45befcb8035.tar.lz yuzu-a3bac5550d144246fb95b12f0fb2b45befcb8035.tar.xz yuzu-a3bac5550d144246fb95b12f0fb2b45befcb8035.tar.zst yuzu-a3bac5550d144246fb95b12f0fb2b45befcb8035.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/drivers/camera.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input_common/drivers/camera.h b/src/input_common/drivers/camera.h index b8a7c75e5..38fb1ae4c 100644 --- a/src/input_common/drivers/camera.h +++ b/src/input_common/drivers/camera.h @@ -3,6 +3,8 @@ #pragma once +#include <span> + #include "input_common/input_engine.h" namespace InputCommon { @@ -15,7 +17,7 @@ class Camera final : public InputEngine { public: explicit Camera(std::string input_engine_); - void SetCameraData(std::size_t width, std::size_t height, std::vector<u32> data); + void SetCameraData(std::size_t width, std::size_t height, std::span<const u32> data); std::size_t getImageWidth() const; std::size_t getImageHeight() const; |