memory: Add OpImageTexelPointer

This commit is contained in:
ReinUsesLisp 2020-06-02 02:13:37 -03:00
parent a62c5bbc10
commit eefca56afd
2 changed files with 11 additions and 0 deletions

View file

@ -284,6 +284,9 @@ public:
/// Allocate an object in memory, resulting in a copy to it.
Id OpVariable(Id result_type, spv::StorageClass storage_class, Id initializer = nullptr);
/// Form a pointer to a texel of an image. Use of such a pointer is limited to atomic operations.
Id OpImageTexelPointer(Id result_type, Id image, Id coordinate, Id sample);
/// Load through a pointer.
Id OpLoad(Id result_type, Id pointer, std::optional<spv::MemoryAccessMask> memory_access = {});