Files
wgpu/tests/out/spv/extra.spvasm
T

70 lines
1.7 KiB
Plaintext

; SPIR-V
; Version: 1.2
; Generator: rspirv
; Bound: 44
OpCapability Shader
OpCapability Float64
OpCapability Geometry
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %25 "main" %17 %20 %23
OpExecutionMode %25 OriginUpperLeft
OpDecorate %10 Block
OpMemberDecorate %10 0 Offset 0
OpMemberDecorate %10 1 Offset 16
OpMemberDecorate %12 0 Offset 0
OpMemberDecorate %12 1 Offset 16
OpDecorate %17 Location 0
OpDecorate %20 BuiltIn PrimitiveId
OpDecorate %23 Location 0
%2 = OpTypeVoid
%4 = OpTypeInt 32 0
%3 = OpConstant %4 2
%5 = OpConstant %4 0
%7 = OpTypeFloat 32
%6 = OpConstant %7 1.0
%9 = OpTypeFloat 64
%8 = OpTypeVector %9 2
%10 = OpTypeStruct %4 %8
%11 = OpTypeVector %7 4
%12 = OpTypeStruct %11 %4
%14 = OpTypePointer PushConstant %10
%13 = OpVariable %14 PushConstant
%18 = OpTypePointer Input %11
%17 = OpVariable %18 Input
%21 = OpTypePointer Input %4
%20 = OpVariable %21 Input
%24 = OpTypePointer Output %11
%23 = OpVariable %24 Output
%26 = OpTypeFunction %2
%30 = OpTypeBool
%36 = OpTypeVector %7 3
%25 = OpFunction %2 None %26
%15 = OpLabel
%19 = OpLoad %11 %17
%22 = OpLoad %4 %20
%16 = OpCompositeConstruct %12 %19 %22
OpBranch %27
%27 = OpLabel
%28 = OpCompositeExtract %4 %16 1
%29 = OpUMod %4 %28 %3
%31 = OpIEqual %30 %29 %5
OpSelectionMerge %32 None
OpBranchConditional %31 %33 %34
%33 = OpLabel
%35 = OpCompositeExtract %11 %16 0
OpStore %23 %35
OpReturn
%34 = OpLabel
%37 = OpCompositeConstruct %36 %6 %6 %6
%38 = OpCompositeExtract %11 %16 0
%39 = OpVectorShuffle %36 %38 %38 0 1 2
%40 = OpFSub %36 %37 %39
%41 = OpCompositeExtract %11 %16 0
%42 = OpCompositeExtract %7 %41 3
%43 = OpCompositeConstruct %11 %40 %42
OpStore %23 %43
OpReturn
%32 = OpLabel
OpReturn
OpFunctionEnd