summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_variables.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-01-19 10:21:28 -0600
committerJason Ekstrand <[email protected]>2019-01-26 13:41:50 -0600
commit837ed2ba51b55598ca0d9d1e6b21c6a83fca6833 (patch)
treec59de35efa58e55edc86a8f212fb68a62fcfa703 /src/compiler/spirv/vtn_variables.c
parent4602e705e45fce6e69667c7a734ded920991e72b (diff)
spirv: Handle OpTypeForwardPointer
We handle forward declarations by creating the pointer type with it's storage type based on storage class and just waiting to fill out the actual deref type until we get the OpTypePointer. Because any composites using the forward declared type only care about the storage type (i.e. uint64_t, uvec2, etc.) when creating their glsl_type, this works fine and we can defer the actual deref_type as far as we need. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_variables.c')
0 files changed, 0 insertions, 0 deletions