Add OpAccessChain

This commit is contained in:
ReinUsesLisp 2018-10-31 03:37:36 -03:00
parent 00fc8daf56
commit 97825750a3
2 changed files with 15 additions and 0 deletions

View file

@ -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.