SPIRV-Cross/reference/opt/shaders/frag
Hans-Kristian Arntzen d92de00cc1 Rewrite how IDs are iterated over.
This is a fairly fundamental change on how IDs are handled.
It serves many purposes:

- Improve performance. We only need to iterate over IDs which are
  relevant at any one time.
- Makes sure we iterate through IDs in SPIR-V module declaration order
  rather than ID space. IDs don't have to be monotonically increasing,
  which was an assumption SPIRV-Cross used to have. It has apparently
  never been a problem until now.
- Support LUTs of structs. We do this by interleaving declaration of
  constants and struct types in SPIR-V module order.

To support this, the ParsedIR interface needed to change slightly.
Before setting any ID with variant_set<T> we let ParsedIR know
that an ID with a specific type has been added. The surface for change
should be minimal.

ParsedIR will maintain a per-type list of IDs which the cross-compiler
will need to consider for later.

Instead of looping over ir.ids[] (which can be extremely large), we loop
over types now, using:

ir.for_each_typed_id<SPIRVariable>([&](uint32_t id, SPIRVariable &var) {
	handle_variable(var);
});

Now we make sure that we're never looking at irrelevant types.
2019-01-10 12:52:56 +01:00
..
16bit-constants.frag Support constants of 16-bit integral type in GLSL and MSL. 2018-11-02 14:39:55 -05:00
array-lut-no-loop-variable.frag Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
basic.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
complex-expression-in-access-chain.frag Register implied expression reads in OpLoad/OpAccessChain. 2019-01-04 14:56:12 +01:00
composite-extract-forced-temporary.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
constant-array.frag Rewrite how IDs are iterated over. 2019-01-10 12:52:56 +01:00
constant-composites.frag Rewrite how IDs are iterated over. 2019-01-10 12:52:56 +01:00
false-loop-init.frag Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
flush_params.frag Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00
for-loop-init.frag Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
frexp-modf.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
front-facing.frag Add IsFrontFace support to HLSL. 2018-02-15 12:42:56 +01:00
gather-dref.frag Fix GatherDref on GLSL. 2018-04-30 12:45:23 +02:00
ground.frag Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00
helper-invocation.frag Support gl_HelperInvocation on GLSL and MSL. 2018-11-28 15:18:43 +01:00
hoisted-temporary-use-continue-block-as-value.frag Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
image-load-store-uint-coord.asm.frag Make sure image integer coords are int, not uint. 2017-12-01 15:02:50 +01:00
loop-dominator-and-switch-default.frag Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
lut-promotion.frag Update glslang and SPIRV-Tools. 2018-09-27 11:10:22 +02:00
mix.frag Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00
partial-write-preserve.frag Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00
pls.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
sample-parameter.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
sampler-ms.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
sampler-proj.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
sampler.frag Add reference output for --opt. 2017-11-23 09:50:11 +01:00
switch-unsigned-case.frag Fix unsigned switch case selectors. 2018-11-26 10:36:50 +01:00
swizzle.frag Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00
texel-fetch-offset.frag MSL: Fix support for texelFetchOffset. 2018-08-07 15:28:04 +02:00
ubo_layout.frag Update tests. 2018-03-05 16:34:42 +01:00
unary-enclose.frag Update tests for latest SPIRV-Tools and glslang. 2018-03-12 15:11:55 +01:00