summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/node.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-07-12 02:54:07 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-09-06 01:35:51 +0200
commit3a450c1395cdb8b4f73687f8c49648e9190fc3a0 (patch)
tree4be17483ce66e8631bea393f9ca557da3af61214 /src/video_core/shader/node.h
parentgl_rasterizer: Split SetupTextures (diff)
downloadyuzu-3a450c1395cdb8b4f73687f8c49648e9190fc3a0.tar
yuzu-3a450c1395cdb8b4f73687f8c49648e9190fc3a0.tar.gz
yuzu-3a450c1395cdb8b4f73687f8c49648e9190fc3a0.tar.bz2
yuzu-3a450c1395cdb8b4f73687f8c49648e9190fc3a0.tar.lz
yuzu-3a450c1395cdb8b4f73687f8c49648e9190fc3a0.tar.xz
yuzu-3a450c1395cdb8b4f73687f8c49648e9190fc3a0.tar.zst
yuzu-3a450c1395cdb8b4f73687f8c49648e9190fc3a0.zip
Diffstat (limited to 'src/video_core/shader/node.h')
-rw-r--r--src/video_core/shader/node.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h
index 5db9313c4..0397f4c6e 100644
--- a/src/video_core/shader/node.h
+++ b/src/video_core/shader/node.h
@@ -303,6 +303,10 @@ public:
return is_bindless;
}
+ std::pair<u32, u32> GetBindlessCBuf() const {
+ return {static_cast<u32>(offset >> 32), static_cast<u32>(offset)};
+ }
+
bool operator<(const Image& rhs) const {
return std::tie(offset, index, type, is_bindless) <
std::tie(rhs.offset, rhs.index, rhs.type, rhs.is_bindless);