blob: 7478ddb5f3c9899f407f808f90f4b1e0e38ab803 [file] [log] [blame]
John Stiles5f675be2020-12-09 16:19:37 -05001OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
Brian Osman8c595fe2021-03-15 14:58:57 -04004OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
John Stiles5f675be2020-12-09 16:19:37 -05005OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
Brian Osman8c595fe2021-03-15 14:58:57 -04008OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "a"
John Stiles5f675be2020-12-09 16:19:37 -050010OpName %main "main"
11OpDecorate %sk_FragColor RelaxedPrecision
12OpDecorate %sk_FragColor Location 0
13OpDecorate %sk_FragColor Index 0
Ethan Nicholasa9c187e2021-03-15 21:24:32 +000014OpDecorate %sk_Clockwise RelaxedPrecision
John Stiles5f675be2020-12-09 16:19:37 -050015OpDecorate %sk_Clockwise BuiltIn FrontFacing
Brian Osman8c595fe2021-03-15 14:58:57 -040016OpMemberDecorate %_UniformBuffer 0 Offset 0
17OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
18OpDecorate %_UniformBuffer Block
19OpDecorate %10 Binding 0
20OpDecorate %10 DescriptorSet 0
21OpDecorate %21 RelaxedPrecision
John Stiles5f675be2020-12-09 16:19:37 -050022%float = OpTypeFloat 32
23%v4float = OpTypeVector %float 4
24%_ptr_Output_v4float = OpTypePointer Output %v4float
25%sk_FragColor = OpVariable %_ptr_Output_v4float Output
26%bool = OpTypeBool
27%_ptr_Input_bool = OpTypePointer Input %bool
28%sk_Clockwise = OpVariable %_ptr_Input_bool Input
Brian Osman8c595fe2021-03-15 14:58:57 -040029%_UniformBuffer = OpTypeStruct %float
30%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
31%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
John Stiles5f675be2020-12-09 16:19:37 -050032%void = OpTypeVoid
Brian Osman8c595fe2021-03-15 14:58:57 -040033%14 = OpTypeFunction %void
34%_ptr_Uniform_float = OpTypePointer Uniform %float
John Stiles5f675be2020-12-09 16:19:37 -050035%int = OpTypeInt 32 1
36%int_0 = OpConstant %int 0
Brian Osman8c595fe2021-03-15 14:58:57 -040037%_ptr_Output_float = OpTypePointer Output %float
38%main = OpFunction %void None %14
39%15 = OpLabel
40%17 = OpAccessChain %_ptr_Uniform_float %10 %int_0
41%21 = OpLoad %float %17
42%16 = OpExtInst %float %1 Round %21
43%22 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
44OpStore %22 %16
John Stiles5f675be2020-12-09 16:19:37 -050045OpReturn
46OpFunctionEnd