7bba1f55e8
This reverts commit ab52d95634
.
Reason for revert: didn't intend for this to submit, oops
Original change's description:
> Added more RelaxedPrecision decorations
>
> Change-Id: I3814e7144f22c8f838082df6ed1f41119efb2ec2
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/385157
> Commit-Queue: John Stiles <johnstiles@google.com>
> Reviewed-by: John Stiles <johnstiles@google.com>
TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com
Change-Id: I8190069d8a428e541782cb2b47ec280f4c7e5686
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/386956
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
66 lines
2.4 KiB
GLSL
66 lines
2.4 KiB
GLSL
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %main "main" %3
|
|
OpName %sk_PerVertex "sk_PerVertex"
|
|
OpMemberName %sk_PerVertex 0 "sk_Position"
|
|
OpMemberName %sk_PerVertex 1 "sk_PointSize"
|
|
OpName %_UniformBuffer "_UniformBuffer"
|
|
OpMemberName %_UniformBuffer 0 "sk_RTAdjust"
|
|
OpName %main "main"
|
|
OpMemberDecorate %sk_PerVertex 0 BuiltIn Position
|
|
OpMemberDecorate %sk_PerVertex 1 BuiltIn PointSize
|
|
OpDecorate %sk_PerVertex Block
|
|
OpMemberDecorate %_UniformBuffer 0 DescriptorSet 0
|
|
OpMemberDecorate %_UniformBuffer 0 Offset 0
|
|
OpDecorate %_UniformBuffer Block
|
|
OpDecorate %8 Binding 0
|
|
OpDecorate %8 DescriptorSet 0
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%sk_PerVertex = OpTypeStruct %v4float %float
|
|
%_ptr_Output_sk_PerVertex = OpTypePointer Output %sk_PerVertex
|
|
%3 = OpVariable %_ptr_Output_sk_PerVertex Output
|
|
%_UniformBuffer = OpTypeStruct %v4float
|
|
%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
|
|
%8 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
|
|
%void = OpTypeVoid
|
|
%12 = OpTypeFunction %void
|
|
%float_1 = OpConstant %float 1
|
|
%15 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
|
|
%int = OpTypeInt 32 1
|
|
%int_0 = OpConstant %int 0
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%v2float = OpTypeVector %float 2
|
|
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
|
|
%float_0 = OpConstant %float 0
|
|
%main = OpFunction %void None %12
|
|
%13 = OpLabel
|
|
%18 = OpAccessChain %_ptr_Output_v4float %3 %int_0
|
|
OpStore %18 %15
|
|
%20 = OpAccessChain %_ptr_Output_v4float %3 %int_0
|
|
%21 = OpLoad %v4float %20
|
|
%22 = OpVectorShuffle %v2float %21 %21 0 1
|
|
%24 = OpAccessChain %_ptr_Uniform_v4float %8 %int_0
|
|
%26 = OpLoad %v4float %24
|
|
%27 = OpVectorShuffle %v2float %26 %26 0 2
|
|
%28 = OpFMul %v2float %22 %27
|
|
%29 = OpAccessChain %_ptr_Output_v4float %3 %int_0
|
|
%30 = OpLoad %v4float %29
|
|
%31 = OpVectorShuffle %v2float %30 %30 3 3
|
|
%32 = OpAccessChain %_ptr_Uniform_v4float %8 %int_0
|
|
%33 = OpLoad %v4float %32
|
|
%34 = OpVectorShuffle %v2float %33 %33 1 3
|
|
%35 = OpFMul %v2float %31 %34
|
|
%36 = OpFAdd %v2float %28 %35
|
|
%37 = OpCompositeExtract %float %36 0
|
|
%38 = OpCompositeExtract %float %36 1
|
|
%40 = OpAccessChain %_ptr_Output_v4float %3 %int_0
|
|
%41 = OpLoad %v4float %40
|
|
%42 = OpCompositeExtract %float %41 3
|
|
%43 = OpCompositeConstruct %v4float %37 %38 %float_0 %42
|
|
%44 = OpAccessChain %_ptr_Output_v4float %3 %int_0
|
|
OpStore %44 %43
|
|
OpReturn
|
|
OpFunctionEnd
|