[vertex shader passthrough] [fragment shader spirv] OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %main "main" %fragCoord %_entryPointOutput OpExecutionMode %main OriginUpperLeft OpSource HLSL 500 OpName %main "main" OpName %fragCoord "fragCoord" OpName %_entryPointOutput "@entryPointOutput" OpDecorate %fragCoord BuiltIn FragCoord OpDecorate %_entryPointOutput Location 0 %void = OpTypeVoid %3 = OpTypeFunction %void %float = OpTypeFloat 32 %v4float = OpTypeVector %float 4 %float_0 = OpConstant %float 0 %15 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0 %int = OpTypeInt 32 1 %int_0 = OpConstant %int 0 %int_2 = OpConstant %int 2 %bool = OpTypeBool %int_1 = OpConstant %int 1 %_ptr_Input_v4float = OpTypePointer Input %v4float %fragCoord = OpVariable %_ptr_Input_v4float Input %_ptr_Output_v4float = OpTypePointer Output %v4float %_entryPointOutput = OpVariable %_ptr_Output_v4float Output %float_0_25 = OpConstant %float 0.25 %90 = OpConstantComposite %v4float %float_0_25 %float_0_25 %float_0_25 %float_0_25 %main = OpFunction %void None %3 %5 = OpLabel %54 = OpLoad %v4float %fragCoord OpBranch %64 %64 = OpLabel %92 = OpPhi %v4float %15 %5 %95 %72 %91 = OpPhi %int %int_0 %5 %84 %72 %69 = OpSLessThan %bool %91 %int_2 OpLoopMerge %65 %72 None OpBranchConditional %69 %70 %65 %70 = OpLabel OpBranch %71 %71 = OpLabel %95 = OpPhi %v4float %92 %70 %80 %77 %93 = OpPhi %int %int_0 %70 %82 %77 %76 = OpSLessThan %bool %93 %int_2 OpLoopMerge %72 %77 None OpBranchConditional %76 %77 %72 %77 = OpLabel %80 = OpFAdd %v4float %95 %54 %82 = OpIAdd %int %93 %int_1 OpBranch %71 %72 = OpLabel %84 = OpIAdd %int %91 %int_1 OpBranch %64 %65 = OpLabel %87 = OpFMul %v4float %92 %90 OpStore %_entryPointOutput %87 OpReturn OpFunctionEnd [test] draw rect -1 -1 2 2