dawn-cmake/test/shader_io/fragment_input_builtins.wgs...

54 lines
2.2 KiB
Plaintext
Raw Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 29
; Schema: 0
OpCapability Shader
OpCapability SampleRateShading
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1 %tint_symbol %tint_symbol_2 %tint_symbol_3
OpExecutionMode %main OriginUpperLeft
OpName %tint_symbol "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %main "main"
OpDecorate %tint_symbol BuiltIn FragCoord
OpDecorate %tint_symbol_1 BuiltIn FrontFacing
OpDecorate %tint_symbol_2 BuiltIn SampleId
OpDecorate %_arr_uint_uint_1 ArrayStride 4
OpDecorate %tint_symbol_3 BuiltIn SampleMask
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%tint_symbol = OpVariable %_ptr_Input_v4float Input
%bool = OpTypeBool
%_ptr_Input_bool = OpTypePointer Input %bool
%tint_symbol_1 = OpVariable %_ptr_Input_bool Input
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%tint_symbol_2 = OpVariable %_ptr_Input_uint Input
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%_ptr_Input__arr_uint_uint_1 = OpTypePointer Input %_arr_uint_uint_1
%tint_symbol_3 = OpVariable %_ptr_Input__arr_uint_uint_1 Input
%void = OpTypeVoid
%15 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%main = OpFunction %void None %15
%18 = OpLabel
%19 = OpLoad %bool %tint_symbol_1
OpSelectionMerge %20 None
OpBranchConditional %19 %21 %20
%21 = OpLabel
%22 = OpLoad %v4float %tint_symbol
%23 = OpLoad %uint %tint_symbol_2
%26 = OpAccessChain %_ptr_Input_uint %tint_symbol_3 %int_0
%27 = OpLoad %uint %26
%28 = OpIAdd %uint %23 %27
OpBranch %20
%20 = OpLabel
OpReturn
OpFunctionEnd