mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-04 05:35:27 +01:00
Add OpLoad
This commit is contained in:
parent
97825750a3
commit
01c658b891
2 changed files with 14 additions and 0 deletions
|
|
@ -200,6 +200,10 @@ class Module {
|
|||
Ref Variable(Ref result_type, spv::StorageClass storage_class,
|
||||
Ref initializer = nullptr);
|
||||
|
||||
/// Load through a pointer.
|
||||
Ref Load(Ref result_type, Ref pointer,
|
||||
std::optional<spv::MemoryAccessMask> memory_access = {});
|
||||
|
||||
/// Create a pointer into a composite object that can be used with OpLoad
|
||||
/// and OpStore.
|
||||
Ref AccessChain(Ref result_type, Ref base,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue