# spirv: make load\(\) and store\(\) accept MemoryOptions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5090d75e48ba0a044997b93b0c5cf1f7dcec60f1)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5090d75e48ba0a044997b93b0c5cf1f7dcec60f1

Requested commit: 5090d75e48ba0a044997b93b0c5cf1f7dcec60f1

Commit: 5090d75e48ba0a044997b93b0c5cf1f7dcec60f1

Tree: ba940a217a474f6eace8a3b42970c941da5741db

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: make load() and store() accept MemoryOptions

This struct is used to configure the load, such as to make
it volatile. Previously this was done using a single bool, but
this struct makes it shorter to write non-volatile loads (the
usual) and more clear whats going on when a volatile load is
required.

```

## Parents

- [200bca360e333abeb29f4af6d050adf42c2ca5a7](https://git.cafe/gitcafe/zig/commit/200bca360e333abeb29f4af6d050adf42c2ca5a7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5090d75e48ba0a044997b93b0c5cf1f7dcec60f1?format=markdown)
