# spirv: introduce type/value representations · gitcafe/zig

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

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

Visibility: public

Requested revision: 2a8e784989b9053ce609a38a9d384a77ce5badaa

Requested commit: 2a8e784989b9053ce609a38a9d384a77ce5badaa

Commit: 2a8e784989b9053ce609a38a9d384a77ce5badaa

Tree: 1cf8dff5bb4e4049c18e86d97ca91d89158aeb64

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: introduce type/value representations

There are two main ways in which a value can be stored: "Direct", as it
will be operated on as an immediate value, and "indirect", as it is stored
in memory. Some types need a different representation here: Bools, for
example, are opaque in SPIR-V, and so these need to have a different
representation in memory. The bool operations are not easily interchangable
with integer operations, though, so they need to be OpTypeBool as
immediate value.

```

## Parents

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

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