| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 65 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %constant_with_non_constant "constant_with_non_constant" |
| OpName %a "a" |
| OpName %b "b" |
| OpName %main "main" |
| OpName %bool_var1 "bool_var1" |
| OpName %bool_var2 "bool_var2" |
| OpName %bool_var3 "bool_var3" |
| OpName %i32_var1 "i32_var1" |
| OpName %i32_var2 "i32_var2" |
| OpName %u32_var1 "u32_var1" |
| OpName %u32_var2 "u32_var2" |
| OpName %v3bool_var1 "v3bool_var1" |
| OpName %v3bool_var11 "v3bool_var11" |
| OpName %v3bool_var2 "v3bool_var2" |
| OpName %v3bool_var3 "v3bool_var3" |
| OpName %v3i32_var1 "v3i32_var1" |
| OpName %v3i32_var2 "v3i32_var2" |
| OpName %v3u32_var1 "v3u32_var1" |
| OpName %v3u32_var2 "v3u32_var2" |
| OpName %v3bool_var4 "v3bool_var4" |
| OpName %v4bool_var5 "v4bool_var5" |
| %void = OpTypeVoid |
| %1 = OpTypeFunction %void |
| %float = OpTypeFloat 32 |
| %6 = OpConstantNull %float |
| %_ptr_Function_float = OpTypePointer Function %float |
| %v2float = OpTypeVector %float 2 |
| %float_1 = OpConstant %float 1 |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %15 = OpConstantNull %v2float |
| %bool = OpTypeBool |
| %true = OpConstantTrue %bool |
| %_ptr_Function_bool = OpTypePointer Function %bool |
| %22 = OpConstantNull %bool |
| %int = OpTypeInt 32 1 |
| %int_123 = OpConstant %int 123 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %29 = OpConstantNull %int |
| %uint = OpTypeInt 32 0 |
| %uint_123 = OpConstant %uint 123 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %35 = OpConstantNull %uint |
| %v3bool = OpTypeVector %bool 3 |
| %38 = OpConstantComposite %v3bool %true %true %true |
| %_ptr_Function_v3bool = OpTypePointer Function %v3bool |
| %41 = OpConstantNull %v3bool |
| %v3int = OpTypeVector %int 3 |
| %46 = OpConstantComposite %v3int %int_123 %int_123 %int_123 |
| %_ptr_Function_v3int = OpTypePointer Function %v3int |
| %49 = OpConstantNull %v3int |
| %v3uint = OpTypeVector %uint 3 |
| %52 = OpConstantComposite %v3uint %uint_123 %uint_123 %uint_123 |
| %_ptr_Function_v3uint = OpTypePointer Function %v3uint |
| %55 = OpConstantNull %v3uint |
| %57 = OpConstantComposite %v3bool %true %true %true |
| %v4bool = OpTypeVector %bool 4 |
| %false = OpConstantFalse %bool |
| %61 = OpConstantComposite %v4bool %true %false %true %false |
| %_ptr_Function_v4bool = OpTypePointer Function %v4bool |
| %64 = OpConstantNull %v4bool |
| %constant_with_non_constant = OpFunction %void None %1 |
| %4 = OpLabel |
| %a = OpVariable %_ptr_Function_float Function %6 |
| %b = OpVariable %_ptr_Function_v2float Function %15 |
| OpStore %a %6 |
| %11 = OpLoad %float %a |
| %12 = OpCompositeConstruct %v2float %float_1 %11 |
| OpStore %b %12 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %1 |
| %17 = OpLabel |
| %bool_var1 = OpVariable %_ptr_Function_bool Function %22 |
| %bool_var2 = OpVariable %_ptr_Function_bool Function %22 |
| %bool_var3 = OpVariable %_ptr_Function_bool Function %22 |
| %i32_var1 = OpVariable %_ptr_Function_int Function %29 |
| %i32_var2 = OpVariable %_ptr_Function_int Function %29 |
| %u32_var1 = OpVariable %_ptr_Function_uint Function %35 |
| %u32_var2 = OpVariable %_ptr_Function_uint Function %35 |
| %v3bool_var1 = OpVariable %_ptr_Function_v3bool Function %41 |
| %v3bool_var11 = OpVariable %_ptr_Function_v3bool Function %41 |
| %v3bool_var2 = OpVariable %_ptr_Function_v3bool Function %41 |
| %v3bool_var3 = OpVariable %_ptr_Function_v3bool Function %41 |
| %v3i32_var1 = OpVariable %_ptr_Function_v3int Function %49 |
| %v3i32_var2 = OpVariable %_ptr_Function_v3int Function %49 |
| %v3u32_var1 = OpVariable %_ptr_Function_v3uint Function %55 |
| %v3u32_var2 = OpVariable %_ptr_Function_v3uint Function %55 |
| %v3bool_var4 = OpVariable %_ptr_Function_v3bool Function %41 |
| %v4bool_var5 = OpVariable %_ptr_Function_v4bool Function %64 |
| OpStore %bool_var1 %true |
| OpStore %bool_var2 %true |
| OpStore %bool_var3 %true |
| OpStore %i32_var1 %int_123 |
| OpStore %i32_var2 %int_123 |
| OpStore %u32_var1 %uint_123 |
| OpStore %u32_var2 %uint_123 |
| OpStore %v3bool_var1 %38 |
| OpStore %v3bool_var11 %38 |
| OpStore %v3bool_var2 %38 |
| OpStore %v3bool_var3 %38 |
| OpStore %v3i32_var1 %46 |
| OpStore %v3i32_var2 %46 |
| OpStore %v3u32_var1 %52 |
| OpStore %v3u32_var2 %52 |
| OpStore %v3bool_var4 %57 |
| OpStore %v4bool_var5 %61 |
| OpReturn |
| OpFunctionEnd |