results in following glsl code:
ivec2 _497=mix(ivec2(0),ivec2(1),lessThan(TemporalOffsetStart,vec2(0.0)));
which results in error:
error C7011: implicit cast from "vec2" to "ivec2"
(on GeForce 1050 Ti latest driver, windows, and same with Intel GPU)
It works fine when using spvc_compiler_options_set_uint(options, SPVC_COMPILER_OPTION_GLSL_VERSION, 300);. However on latest spirv-cross version, using 300 prevents from using texture gather. So I'm stuck with using an older spirv-cross version and 300 glsl es.
Hello,
when compiling this code in HLSL (microsoft directx shader compiler -> SpirV)
and using:
results in following glsl code:
ivec2 _497=mix(ivec2(0),ivec2(1),lessThan(TemporalOffsetStart,vec2(0.0)));
which results in error:
error C7011: implicit cast from "vec2" to "ivec2"
(on GeForce 1050 Ti latest driver, windows, and same with Intel GPU)It works fine when using
spvc_compiler_options_set_uint(options, SPVC_COMPILER_OPTION_GLSL_VERSION, 300);
. However on latest spirv-cross version, using 300 prevents from using texture gather. So I'm stuck with using an older spirv-cross version and 300 glsl es.