aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2018-10-31 03:37:36 -0300
committerReinUsesLisp <[email protected]>2018-10-31 03:37:36 -0300
commit97825750a3b281e265039d0eff4be144bc56230e (patch)
treec7dbb06feaf857b5744cd2b33d45767374de672a /include
parent00fc8daf56d0a070dc75036cb13ffbfc7a6567c6 (diff)
downloadsirit-97825750a3b281e265039d0eff4be144bc56230e.tar.gz
sirit-97825750a3b281e265039d0eff4be144bc56230e.zip
Add OpAccessChain
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 8ddf9b5..b54699f 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -200,6 +200,11 @@ class Module {
Ref Variable(Ref result_type, spv::StorageClass storage_class,
Ref initializer = nullptr);
+ /// Create a pointer into a composite object that can be used with OpLoad
+ /// and OpStore.
+ Ref AccessChain(Ref result_type, Ref base,
+ const std::vector<Ref>& indexes = {});
+
// Annotation
/// Add a decoration to target.