| 1 |
; SPIR-V |
| 2 |
; Version: 1.3 |
| 3 |
; Generator: Google spiregg; 0 |
| 4 |
; Bound: 29 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpCapability Float16 |
| 8 |
OpCapability StorageInputOutput16 |
| 9 |
OpMemoryModel Logical GLSL450 |
| 10 |
OpEntryPoint Vertex %vertexShader "main" %in_var_POSITION %gl_Position %gl_FragCoord %out_var_SV_Target |
| 11 |
OpEntryPoint Fragment %fragmentShader "fragmentShader" %in_var_POSITION %gl_Position %gl_FragCoord %out_var_SV_Target |
| 12 |
OpExecutionMode %fragmentShader OriginUpperLeft |
| 13 |
OpSource HLSL 640 |
| 14 |
OpName %in_var_POSITION "in.var.POSITION" |
| 15 |
OpName %out_var_SV_Target "out.var.SV_Target" |
| 16 |
OpName %vertexShader "vertexShader" |
| 17 |
OpName %fragmentShader "fragmentShader" |
| 18 |
OpDecorate %gl_Position BuiltIn Position |
| 19 |
OpDecorate %gl_FragCoord BuiltIn FragCoord |
| 20 |
OpDecorate %in_var_POSITION Location 0 |
| 21 |
OpDecorate %out_var_SV_Target Location 0 |
| 22 |
%float = OpTypeFloat 32 |
| 23 |
%float_0 = OpConstant %float 0 |
| 24 |
%float_1 = OpConstant %float 1 |
| 25 |
%half = OpTypeFloat 16 |
| 26 |
%half_0x1p_0 = OpConstant %half 0x1p+0 |
| 27 |
%half_0x0p_0 = OpConstant %half 0x0p+0 |
| 28 |
%v4half = OpTypeVector %half 4 |
| 29 |
%14 = OpConstantComposite %v4half %half_0x1p_0 %half_0x0p_0 %half_0x1p_0 %half_0x1p_0 |
| 30 |
%v2float = OpTypeVector %float 2 |
| 31 |
%_ptr_Input_v2float = OpTypePointer Input %v2float |
| 32 |
%v4float = OpTypeVector %float 4 |
| 33 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 34 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 35 |
%_ptr_Output_v4half = OpTypePointer Output %v4half |
| 36 |
%void = OpTypeVoid |
| 37 |
%22 = OpTypeFunction %void |
| 38 |
%in_var_POSITION = OpVariable %_ptr_Input_v2float Input |
| 39 |
%gl_Position = OpVariable %_ptr_Output_v4float Output |
| 40 |
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input |
| 41 |
%out_var_SV_Target = OpVariable %_ptr_Output_v4half Output |
| 42 |
%vertexShader = OpFunction %void None %22 |
| 43 |
%23 = OpLabel |
| 44 |
%24 = OpLoad %v2float %in_var_POSITION |
| 45 |
%25 = OpCompositeExtract %float %24 0 |
| 46 |
%26 = OpCompositeExtract %float %24 1 |
| 47 |
%27 = OpCompositeConstruct %v4float %25 %26 %float_0 %float_1 |
| 48 |
OpStore %gl_Position %27 |
| 49 |
OpReturn |
| 50 |
OpFunctionEnd |
| 51 |
%fragmentShader = OpFunction %void None %22 |
| 52 |
%28 = OpLabel |
| 53 |
OpStore %out_var_SV_Target %14 |
| 54 |
OpReturn |
| 55 |
OpFunctionEnd |