diff options
author | ReinUsesLisp <[email protected]> | 2019-09-09 15:41:53 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2019-09-09 15:42:47 -0300 |
commit | 4a0c6e03e173f140192d0cde3355e1f68ec51883 (patch) | |
tree | f1ff66ed2b52a99364e361a24a31448cc4cf6ea2 /include | |
parent | 60a856d2669bde23f9a4a0fb3879ec89a16d904e (diff) | |
download | sirit-4a0c6e03e173f140192d0cde3355e1f68ec51883.tar.gz sirit-4a0c6e03e173f140192d0cde3355e1f68ec51883.zip |
Add OpVectorExtractDynamic and OpVectorInsertDynamic
Diffstat (limited to 'include')
-rw-r--r-- | include/sirit/sirit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h index ea7dc8e..0c86601 100644 --- a/include/sirit/sirit.h +++ b/include/sirit/sirit.h @@ -285,6 +285,12 @@ public: return OpAccessChain(result_type, base, {indexes...}); } + /// Extract a single, dynamically selected, component of a vector. + Id OpVectorExtractDynamic(Id result_type, Id vector, Id index); + + /// Make a copy of a vector, with a single, variably selected, component modified. + Id OpVectorInsertDynamic(Id result_type, Id vector, Id component, Id index); + /// Make a copy of a composite object, while modifying one part of it. Id OpCompositeInsert(Id result_type, Id object, Id composite, const std::vector<Literal>& indexes = {}); |