summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/hle_ipc.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-01-28 07:18:06 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-01-28 07:32:24 +0100
commit008afa5d5951b5390fccdd9c677718bc4335cc35 (patch)
tree6d39403c7cf7357af2efb7815cacc9c2a4964663 /src/core/hle/kernel/hle_ipc.h
parentMerge pull request #5786 from ReinUsesLisp/glsl-cbuf (diff)
downloadyuzu-008afa5d5951b5390fccdd9c677718bc4335cc35.tar
yuzu-008afa5d5951b5390fccdd9c677718bc4335cc35.tar.gz
yuzu-008afa5d5951b5390fccdd9c677718bc4335cc35.tar.bz2
yuzu-008afa5d5951b5390fccdd9c677718bc4335cc35.tar.lz
yuzu-008afa5d5951b5390fccdd9c677718bc4335cc35.tar.xz
yuzu-008afa5d5951b5390fccdd9c677718bc4335cc35.tar.zst
yuzu-008afa5d5951b5390fccdd9c677718bc4335cc35.zip
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.h')
-rw-r--r--src/core/hle/kernel/hle_ipc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index b112e1ebd..698f607e6 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -207,6 +207,12 @@ public:
/// Helper function to get the size of the output buffer
std::size_t GetWriteBufferSize(std::size_t buffer_index = 0) const;
+ /// Helper function to test whether the input buffer at buffer_index can be read
+ bool CanReadBuffer(std::size_t buffer_index = 0) const;
+
+ /// Helper function to test whether the output buffer at buffer_index can be written
+ bool CanWriteBuffer(std::size_t buffer_index = 0) const;
+
template <typename T>
std::shared_ptr<T> GetCopyObject(std::size_t index) {
return DynamicObjectCast<T>(copy_objects.at(index));