aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2020-06-02 02:13:37 -0300
committerReinUsesLisp <[email protected]>2020-06-02 02:13:37 -0300
commiteefca56afd49379bdebc97ded8b480839f930881 (patch)
tree95f34af4eb06a6390d586dad9d89f24d9a48e36a /include
parenta62c5bbc100a5e5a31ea0ccc4a78d8fa6a4167ce (diff)
downloadsirit-eefca56afd49379bdebc97ded8b480839f930881.tar.gz
sirit-eefca56afd49379bdebc97ded8b480839f930881.zip
memory: Add OpImageTexelPointer
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 1fb8013..5d90b33 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -284,6 +284,9 @@ public:
/// Allocate an object in memory, resulting in a copy to it.
Id OpVariable(Id result_type, spv::StorageClass storage_class, Id initializer = nullptr);
+ /// Form a pointer to a texel of an image. Use of such a pointer is limited to atomic operations.
+ Id OpImageTexelPointer(Id result_type, Id image, Id coordinate, Id sample);
+
/// Load through a pointer.
Id OpLoad(Id result_type, Id pointer, std::optional<spv::MemoryAccessMask> memory_access = {});