| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Wine VKD3D Shader Compiler; 0 |
| 4 |
; Bound: 67 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpMemoryModel Logical GLSL450 |
| 8 |
OpEntryPoint Fragment %main "main" %8 %16 %22 %28 %33 %o0 |
| 9 |
OpExecutionMode %main OriginUpperLeft |
| 10 |
OpName %main "main" |
| 11 |
OpName %v1 "v1" |
| 12 |
OpName %v2 "v2" |
| 13 |
OpName %o0 "o0" |
| 14 |
OpName %r0 "r0" |
| 15 |
OpDecorate %8 Location 1 |
| 16 |
OpDecorate %16 Location 1 |
| 17 |
OpDecorate %16 Component 2 |
| 18 |
OpDecorate %22 Location 2 |
| 19 |
OpDecorate %22 Flat |
| 20 |
OpDecorate %28 Location 2 |
| 21 |
OpDecorate %28 Component 1 |
| 22 |
OpDecorate %28 Flat |
| 23 |
OpDecorate %33 Location 2 |
| 24 |
OpDecorate %33 Component 2 |
| 25 |
OpDecorate %33 Flat |
| 26 |
OpDecorate %o0 Location 0 |
| 27 |
%void = OpTypeVoid |
| 28 |
%2 = OpTypeFunction %void |
| 29 |
%float = OpTypeFloat 32 |
| 30 |
%v2float = OpTypeVector %float 2 |
| 31 |
%_ptr_Input_v2float = OpTypePointer Input %v2float |
| 32 |
%8 = OpVariable %_ptr_Input_v2float Input |
| 33 |
%v4float = OpTypeVector %float 4 |
| 34 |
%_ptr_Private_v4float = OpTypePointer Private %v4float |
| 35 |
%v1 = OpVariable %_ptr_Private_v4float Private |
| 36 |
%_ptr_Input_float = OpTypePointer Input %float |
| 37 |
%16 = OpVariable %_ptr_Input_float Input |
| 38 |
%_ptr_Private_float = OpTypePointer Private %float |
| 39 |
%uint = OpTypeInt 32 0 |
| 40 |
%uint_2 = OpConstant %uint 2 |
| 41 |
%22 = OpVariable %_ptr_Input_float Input |
| 42 |
%v2 = OpVariable %_ptr_Private_v4float Private |
| 43 |
%uint_0 = OpConstant %uint 0 |
| 44 |
%_ptr_Input_uint = OpTypePointer Input %uint |
| 45 |
%28 = OpVariable %_ptr_Input_uint Input |
| 46 |
%uint_1 = OpConstant %uint 1 |
| 47 |
%33 = OpVariable %_ptr_Input_uint Input |
| 48 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 49 |
%o0 = OpVariable %_ptr_Output_v4float Output |
| 50 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 51 |
%int = OpTypeInt 32 1 |
| 52 |
%_ptr_Function_float = OpTypePointer Function %float |
| 53 |
%_ptr_Output_float = OpTypePointer Output %float |
| 54 |
%main = OpFunction %void None %2 |
| 55 |
%4 = OpLabel |
| 56 |
%r0 = OpVariable %_ptr_Function_v4float Function |
| 57 |
%12 = OpLoad %v2float %8 |
| 58 |
%13 = OpLoad %v4float %v1 |
| 59 |
%14 = OpVectorShuffle %v4float %13 %12 4 5 2 3 |
| 60 |
OpStore %v1 %14 |
| 61 |
%17 = OpLoad %float %16 |
| 62 |
%21 = OpInBoundsAccessChain %_ptr_Private_float %v1 %uint_2 |
| 63 |
OpStore %21 %17 |
| 64 |
%24 = OpLoad %float %22 |
| 65 |
%26 = OpInBoundsAccessChain %_ptr_Private_float %v2 %uint_0 |
| 66 |
OpStore %26 %24 |
| 67 |
%29 = OpLoad %uint %28 |
| 68 |
%30 = OpBitcast %float %29 |
| 69 |
%32 = OpInBoundsAccessChain %_ptr_Private_float %v2 %uint_1 |
| 70 |
OpStore %32 %30 |
| 71 |
%34 = OpLoad %uint %33 |
| 72 |
%35 = OpBitcast %float %34 |
| 73 |
%36 = OpInBoundsAccessChain %_ptr_Private_float %v2 %uint_2 |
| 74 |
OpStore %36 %35 |
| 75 |
%42 = OpInBoundsAccessChain %_ptr_Private_float %v2 %uint_1 |
| 76 |
%43 = OpLoad %float %42 |
| 77 |
%44 = OpBitcast %int %43 |
| 78 |
%45 = OpInBoundsAccessChain %_ptr_Private_float %v2 %uint_2 |
| 79 |
%46 = OpLoad %float %45 |
| 80 |
%47 = OpBitcast %int %46 |
| 81 |
%48 = OpIAdd %int %44 %47 |
| 82 |
%49 = OpBitcast %float %48 |
| 83 |
%51 = OpInBoundsAccessChain %_ptr_Function_float %r0 %uint_0 |
| 84 |
OpStore %51 %49 |
| 85 |
%52 = OpInBoundsAccessChain %_ptr_Function_float %r0 %uint_0 |
| 86 |
%53 = OpLoad %float %52 |
| 87 |
%54 = OpBitcast %uint %53 |
| 88 |
%55 = OpConvertUToF %float %54 |
| 89 |
%57 = OpInBoundsAccessChain %_ptr_Output_float %o0 %uint_1 |
| 90 |
OpStore %57 %55 |
| 91 |
%58 = OpInBoundsAccessChain %_ptr_Private_float %v1 %uint_1 |
| 92 |
%59 = OpLoad %float %58 |
| 93 |
%60 = OpInBoundsAccessChain %_ptr_Private_float %v2 %uint_0 |
| 94 |
%61 = OpLoad %float %60 |
| 95 |
%62 = OpFAdd %float %59 %61 |
| 96 |
%63 = OpInBoundsAccessChain %_ptr_Output_float %o0 %uint_0 |
| 97 |
OpStore %63 %62 |
| 98 |
%64 = OpLoad %v4float %v1 |
| 99 |
%65 = OpLoad %v4float %o0 |
| 100 |
%66 = OpVectorShuffle %v4float %65 %64 0 1 6 4 |
| 101 |
OpStore %o0 %66 |
| 102 |
OpReturn |
| 103 |
OpFunctionEnd |