86 lines
2.3 KiB
Plaintext
86 lines
2.3 KiB
Plaintext
Version 1.0
|
|
Generator: 2560130
|
|
Bound: 51
|
|
Schema: 0
|
|
OpCapability Capability(Shader)
|
|
OpCapability Capability(Float64)
|
|
OpMemoryModel AddressingModel(Logical) MemoryModel(GLSL450)
|
|
OpEntryPoint ExecutionModel(Fragment) %18 "main" %6
|
|
OpExecutionMode %18 ExecutionMode(OriginUpperLeft)
|
|
OpSource SourceLanguage(NZSL) 4198400
|
|
OpSourceExtension "Version: 1.1"
|
|
OpName %7 "FragOut"
|
|
OpMemberName %7 0 "color"
|
|
OpName %6 "color"
|
|
OpName %18 "main"
|
|
OpDecorate %6 Decoration(Location) 0
|
|
OpMemberDecorate %7 0 Decoration(Offset) 0
|
|
%1 = OpTypeVoid
|
|
%2 = OpTypeFunction %1
|
|
%3 = OpTypeFloat 32
|
|
%4 = OpTypeVector %3 4
|
|
%5 = OpTypePointer StorageClass(Output) %4
|
|
%7 = OpTypeStruct %4
|
|
%8 = OpConstant %3 f32(1)
|
|
%9 = OpTypePointer StorageClass(Function) %3
|
|
%10 = OpTypeInt 32 1
|
|
%11 = OpConstant %10 i32(1)
|
|
%12 = OpTypePointer StorageClass(Function) %10
|
|
%13 = OpConstant %10 i32(5)
|
|
%14 = OpTypeBool
|
|
%15 = OpConstant %10 i32(3)
|
|
%16 = OpTypePointer StorageClass(Function) %7
|
|
%17 = OpConstant %10 i32(0)
|
|
%48 = OpTypePointer StorageClass(Function) %4
|
|
%6 = OpVariable %5 StorageClass(Output)
|
|
%18 = OpFunction %1 FunctionControl(0) %2
|
|
%19 = OpLabel
|
|
%20 = OpVariable %9 StorageClass(Function)
|
|
%21 = OpVariable %12 StorageClass(Function)
|
|
%22 = OpVariable %12 StorageClass(Function)
|
|
%23 = OpVariable %16 StorageClass(Function)
|
|
OpStore %20 %8
|
|
OpStore %21 %11
|
|
OpStore %22 %13
|
|
OpBranch %24
|
|
%24 = OpLabel
|
|
%28 = OpLoad %10 %21
|
|
%29 = OpLoad %10 %22
|
|
%30 = OpSLessThan %14 %28 %29
|
|
OpLoopMerge %26 %27 LoopControl(0)
|
|
OpBranchConditional %30 %25 %26
|
|
%25 = OpLabel
|
|
%34 = OpLoad %10 %21
|
|
%35 = OpIEqual %14 %34 %15
|
|
OpSelectionMerge %31 SelectionControl(0)
|
|
OpBranchConditional %35 %32 %33
|
|
%32 = OpLabel
|
|
OpBranch %27
|
|
%33 = OpLabel
|
|
OpBranch %31
|
|
%31 = OpLabel
|
|
%36 = OpLoad %3 %20
|
|
%37 = OpLoad %10 %21
|
|
%38 = OpConvertSToF %3 %37
|
|
%39 = OpFMul %3 %36 %38
|
|
OpStore %20 %39
|
|
%40 = OpLoad %10 %21
|
|
%41 = OpIAdd %10 %40 %11
|
|
OpStore %21 %41
|
|
OpBranch %27
|
|
%27 = OpLabel
|
|
OpBranch %24
|
|
%26 = OpLabel
|
|
%42 = OpLoad %3 %20
|
|
%43 = OpLoad %3 %20
|
|
%44 = OpLoad %3 %20
|
|
%45 = OpLoad %3 %20
|
|
%46 = OpCompositeConstruct %4 %42 %43 %44 %45
|
|
%47 = OpAccessChain %48 %23 %17
|
|
OpStore %47 %46
|
|
%49 = OpLoad %7 %23
|
|
%50 = OpCompositeExtract %4 %49 0
|
|
OpStore %6 %50
|
|
OpReturn
|
|
OpFunctionEnd
|