bfc9be0f77
This will allow us to load these inputs for unit testing in `dm`. Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %sk_SampleMask %sk_Clockwise
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %sk_SampleMask "sk_SampleMask"
|
|
OpName %sk_Clockwise "sk_Clockwise"
|
|
OpName %main "main"
|
|
OpDecorate %_arr_int_int_1 ArrayStride 16
|
|
OpDecorate %sk_SampleMask BuiltIn SampleMask
|
|
OpDecorate %sk_Clockwise RelaxedPrecision
|
|
OpDecorate %sk_Clockwise BuiltIn FrontFacing
|
|
%int = OpTypeInt 32 1
|
|
%int_1 = OpConstant %int 1
|
|
%_arr_int_int_1 = OpTypeArray %int %int_1
|
|
%_ptr_Output__arr_int_int_1 = OpTypePointer Output %_arr_int_int_1
|
|
%sk_SampleMask = OpVariable %_ptr_Output__arr_int_int_1 Output
|
|
%bool = OpTypeBool
|
|
%_ptr_Input_bool = OpTypePointer Input %bool
|
|
%sk_Clockwise = OpVariable %_ptr_Input_bool Input
|
|
%void = OpTypeVoid
|
|
%12 = OpTypeFunction %void
|
|
%int_0 = OpConstant %int 0
|
|
%_ptr_Output_int = OpTypePointer Output %int
|
|
%int_8 = OpConstant %int 8
|
|
%main = OpFunction %void None %12
|
|
%13 = OpLabel
|
|
%15 = OpAccessChain %_ptr_Output_int %sk_SampleMask %int_0
|
|
%17 = OpLoad %int %15
|
|
%19 = OpBitwiseOr %int %17 %int_8
|
|
OpStore %15 %19
|
|
OpReturn
|
|
OpFunctionEnd
|