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