69 lines
3.0 KiB
Plaintext
69 lines
3.0 KiB
Plaintext
|
; SPIR-V
|
||
|
; Version: 1.3
|
||
|
; Generator: Google Tint Compiler; 0
|
||
|
; Bound: 35
|
||
|
; Schema: 0
|
||
|
OpCapability Shader
|
||
|
OpCapability SampleRateShading
|
||
|
OpMemoryModel Logical GLSL450
|
||
|
OpEntryPoint Fragment %main "main" %tint_symbol %tint_symbol_1 %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"
|
||
|
OpName %FragmentInputs "FragmentInputs"
|
||
|
OpMemberName %FragmentInputs 0 "position"
|
||
|
OpMemberName %FragmentInputs 1 "front_facing"
|
||
|
OpMemberName %FragmentInputs 2 "sample_index"
|
||
|
OpMemberName %FragmentInputs 3 "sample_mask"
|
||
|
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
|
||
|
OpMemberDecorate %FragmentInputs 0 Offset 0
|
||
|
OpMemberDecorate %FragmentInputs 1 Offset 16
|
||
|
OpMemberDecorate %FragmentInputs 2 Offset 20
|
||
|
OpMemberDecorate %FragmentInputs 3 Offset 24
|
||
|
%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
|
||
|
%FragmentInputs = OpTypeStruct %v4float %bool %uint %uint
|
||
|
%int = OpTypeInt 32 1
|
||
|
%int_0 = OpConstant %int 0
|
||
|
%main = OpFunction %void None %15
|
||
|
%18 = OpLabel
|
||
|
%20 = OpLoad %v4float %tint_symbol
|
||
|
%21 = OpLoad %bool %tint_symbol_1
|
||
|
%22 = OpLoad %uint %tint_symbol_2
|
||
|
%25 = OpAccessChain %_ptr_Input_uint %tint_symbol_3 %int_0
|
||
|
%26 = OpLoad %uint %25
|
||
|
%27 = OpCompositeConstruct %FragmentInputs %20 %21 %22 %26
|
||
|
%28 = OpCompositeExtract %bool %27 1
|
||
|
OpSelectionMerge %29 None
|
||
|
OpBranchConditional %28 %30 %29
|
||
|
%30 = OpLabel
|
||
|
%31 = OpCompositeExtract %v4float %27 0
|
||
|
%32 = OpCompositeExtract %uint %27 2
|
||
|
%33 = OpCompositeExtract %uint %27 3
|
||
|
%34 = OpIAdd %uint %32 %33
|
||
|
OpBranch %29
|
||
|
%29 = OpLabel
|
||
|
OpReturn
|
||
|
OpFunctionEnd
|