# spirv: replace most use of spv.ptrType with self.ptrType · gitcafe/zig

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

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

Visibility: public

Requested revision: 200bca360e333abeb29f4af6d050adf42c2ca5a7

Requested commit: 200bca360e333abeb29f4af6d050adf42c2ca5a7

Commit: 200bca360e333abeb29f4af6d050adf42c2ca5a7

Tree: fed7782d93a84b7b0bfa53d200b1ce25538cb20d

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: replace most use of spv.ptrType with self.ptrType

To support self-referential pointers, in the future we will
need to pass the Zig type to any pointer that is created. This
lays some ground work for that by replacing most uses of
spv.ptrType with a new ptrType function that also accepts the
Zig type. This function's contents will soon be replaced by
a version that also supports self-referential pointers.

Also fixed some bugs regarding the use of direct/indirect.

```

## Parents

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

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