diff options
author | ReinUsesLisp <[email protected]> | 2018-10-31 03:37:36 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2018-10-31 03:37:36 -0300 |
commit | 97825750a3b281e265039d0eff4be144bc56230e (patch) | |
tree | c7dbb06feaf857b5744cd2b33d45767374de672a /include | |
parent | 00fc8daf56d0a070dc75036cb13ffbfc7a6567c6 (diff) | |
download | sirit-97825750a3b281e265039d0eff4be144bc56230e.tar.gz sirit-97825750a3b281e265039d0eff4be144bc56230e.zip |
Add OpAccessChain
Diffstat (limited to 'include')
-rw-r--r-- | include/sirit/sirit.h | 5 |
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. |