# spirv: add type_map to map AIR types to SPIR-V types · gitcafe/zig

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

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

Visibility: public

Requested revision: ced8a2c3a650fdddc489f97a1d12dd029856fe9e

Requested commit: ced8a2c3a650fdddc489f97a1d12dd029856fe9e

Commit: ced8a2c3a650fdddc489f97a1d12dd029856fe9e

Tree: eee7a8fe7d1f3cd984015f997ac98e0bdb58c205

Author: Robin Voetter

Committer: Andrew Kelley

## Message

```
spirv: add type_map to map AIR types to SPIR-V types

This will help us both to make the implementation a little
more efficient by caching emission for certain types like structs,
and also allow us to attach extra information about types that we
can use while lowering without performing a search over the entire
type tree for some property.

```

## Parents

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

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