"OpName %id \"gl_GlobalInvocationID\"\n"
"OpDecorate %id BuiltIn GlobalInvocationId\n"
- "OpDecorate %vec4arr ArrayStride 16\n"
+ string(s_InputOutputBufferTraits) + string(s_CommonTypes) +
"OpName %id \"gl_GlobalInvocationID\"\n"
"OpDecorate %id BuiltIn GlobalInvocationId\n"
- "OpDecorate %f32arr100 ArrayStride 4\n"
+ string(s_InputOutputBufferTraits) + string(s_CommonTypes) +
"%f32 = OpTypeFloat 32\n" \
"%v3f32 = OpTypeVector %f32 3\n" \
"%v4f32 = OpTypeVector %f32 4\n" \
- "%v4bool = OpTypeVector %bool 4\n" \
+ "%v4bool = OpTypeVector %bool 4\n" \
\
"%v4f32_function = OpTypeFunction %v4f32 %v4f32\n" \
"%fun = OpTypeFunction %void\n" \
"%is0 = OpFOrdEqual %bool %add %c_f32_0\n"
"%isn1n24 = OpFOrdEqual %bool %add %c_f32_n1pn24\n"
"%success = OpLogicalOr %bool %is0 %isn1n24\n"
- "%v4success = OpCompositeConstruct %v4bool %success %success %success %success\n"
+ "%v4success = OpCompositeConstruct %v4bool %success %success %success %success\n"
"%ret = OpSelect %v4f32 %v4success %c_vec4_0 %c_vec4_1\n"
" OpReturnValue %ret\n"
" OpFunctionEnd\n";
"%b = OpFAdd %f32 %test_constant %a\n"
"%c = OpQuantizeToF16 %f32 %b\n"
"${condition}\n"
- "%v4cond = OpCompositeConstruct %v4bool %cond %cond %cond %cond\n"
+ "%v4cond = OpCompositeConstruct %v4bool %cond %cond %cond %cond\n"
"%retval = OpSelect %v4f32 %v4cond %c_v4f32_1_0_0_1 %param1\n"
" OpReturnValue %retval\n"
"OpFunctionEnd\n"
"%param1 = OpFunctionParameter %v4f32\n"
"%label_testfun = OpLabel\n"
"${condition}\n"
- "%v4cond = OpCompositeConstruct %v4bool %cond %cond %cond %cond\n"
+ "%v4cond = OpCompositeConstruct %v4bool %cond %cond %cond %cond\n"
"%retval = OpSelect %v4f32 %v4cond %c_v4f32_1_0_0_1 %param1\n"
" OpReturnValue %retval\n"
"OpFunctionEnd\n"
"%eq_1 = OpFOrdEqual %bool %c %possible_solution1\n"
"%eq_2 = OpFOrdEqual %bool %c %possible_solution2\n"
"%cond = OpLogicalOr %bool %eq_1 %eq_2\n"
- "%v4cond = OpCompositeConstruct %v4bool %cond %cond %cond %cond\n"
+ "%v4cond = OpCompositeConstruct %v4bool %cond %cond %cond %cond\n"
"%retval = OpSelect %v4f32 %v4cond %c_v4f32_1_0_0_1 %param1"
" OpReturnValue %retval\n"
"OpFunctionEnd\n";