• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %a "a"
9OpName %main "main"
10OpDecorate %sk_FragColor RelaxedPrecision
11OpDecorate %sk_FragColor Location 0
12OpDecorate %sk_FragColor Index 0
13OpDecorate %sk_Clockwise BuiltIn FrontFacing
14OpDecorate %a RelaxedPrecision
15OpDecorate %18 RelaxedPrecision
16OpDecorate %19 RelaxedPrecision
17OpDecorate %24 RelaxedPrecision
18%float = OpTypeFloat 32
19%v4float = OpTypeVector %float 4
20%_ptr_Output_v4float = OpTypePointer Output %v4float
21%sk_FragColor = OpVariable %_ptr_Output_v4float Output
22%bool = OpTypeBool
23%_ptr_Input_bool = OpTypePointer Input %bool
24%sk_Clockwise = OpVariable %_ptr_Input_bool Input
25%mat4v4float = OpTypeMatrix %v4float 4
26%_ptr_Private_mat4v4float = OpTypePointer Private %mat4v4float
27%a = OpVariable %_ptr_Private_mat4v4float Private
28%void = OpTypeVoid
29%14 = OpTypeFunction %void
30%_ptr_Function_mat4v4float = OpTypePointer Function %mat4v4float
31%int = OpTypeInt 32 1
32%int_0 = OpConstant %int 0
33%_ptr_Function_v4float = OpTypePointer Function %v4float
34%main = OpFunction %void None %14
35%15 = OpLabel
36%16 = OpVariable %_ptr_Function_mat4v4float Function
37%19 = OpLoad %mat4v4float %a
38%18 = OpExtInst %mat4v4float %1 MatrixInverse %19
39OpStore %16 %18
40%22 = OpAccessChain %_ptr_Function_v4float %16 %int_0
41%24 = OpLoad %v4float %22
42OpStore %sk_FragColor %24
43OpReturn
44OpFunctionEnd
45