mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
91 lines
2.4 KiB
Plaintext
91 lines
2.4 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 75
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %70 "main"
|
|
OpExecutionMode %70 LocalSize 1 1 1
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpTypeVector %4 2
|
|
%5 = OpTypeInt 32 1
|
|
%8 = OpTypeFunction %3
|
|
%9 = OpConstant %4 2.0
|
|
%10 = OpConstantComposite %3 %9 %9
|
|
%11 = OpConstant %4 0.5
|
|
%12 = OpConstantComposite %3 %11 %11
|
|
%17 = OpTypeFunction %5
|
|
%18 = OpConstant %5 1
|
|
%19 = OpTypeVector %5 2
|
|
%20 = OpConstantComposite %19 %18 %18
|
|
%21 = OpTypeInt 32 0
|
|
%22 = OpConstant %21 1
|
|
%23 = OpTypeVector %21 3
|
|
%24 = OpConstantComposite %23 %22 %22 %22
|
|
%25 = OpConstant %5 4
|
|
%26 = OpTypeVector %5 4
|
|
%27 = OpConstantComposite %26 %25 %25 %25 %25
|
|
%28 = OpConstant %5 2
|
|
%29 = OpConstantComposite %26 %28 %28 %28 %28
|
|
%32 = OpConstantNull %5
|
|
%41 = OpConstantNull %21
|
|
%71 = OpTypeFunction %2
|
|
%7 = OpFunction %3 None %8
|
|
%6 = OpLabel
|
|
OpBranch %13
|
|
%13 = OpLabel
|
|
%14 = OpExtInst %3 %1 Fma %10 %12 %12
|
|
OpReturnValue %14
|
|
OpFunctionEnd
|
|
%16 = OpFunction %5 None %17
|
|
%15 = OpLabel
|
|
OpBranch %30
|
|
%30 = OpLabel
|
|
%33 = OpCompositeExtract %5 %20 0
|
|
%34 = OpCompositeExtract %5 %20 0
|
|
%35 = OpIMul %5 %33 %34
|
|
%36 = OpIAdd %5 %32 %35
|
|
%37 = OpCompositeExtract %5 %20 1
|
|
%38 = OpCompositeExtract %5 %20 1
|
|
%39 = OpIMul %5 %37 %38
|
|
%31 = OpIAdd %5 %36 %39
|
|
%42 = OpCompositeExtract %21 %24 0
|
|
%43 = OpCompositeExtract %21 %24 0
|
|
%44 = OpIMul %21 %42 %43
|
|
%45 = OpIAdd %21 %41 %44
|
|
%46 = OpCompositeExtract %21 %24 1
|
|
%47 = OpCompositeExtract %21 %24 1
|
|
%48 = OpIMul %21 %46 %47
|
|
%49 = OpIAdd %21 %45 %48
|
|
%50 = OpCompositeExtract %21 %24 2
|
|
%51 = OpCompositeExtract %21 %24 2
|
|
%52 = OpIMul %21 %50 %51
|
|
%40 = OpIAdd %21 %49 %52
|
|
%54 = OpCompositeExtract %5 %27 0
|
|
%55 = OpCompositeExtract %5 %29 0
|
|
%56 = OpIMul %5 %54 %55
|
|
%57 = OpIAdd %5 %32 %56
|
|
%58 = OpCompositeExtract %5 %27 1
|
|
%59 = OpCompositeExtract %5 %29 1
|
|
%60 = OpIMul %5 %58 %59
|
|
%61 = OpIAdd %5 %57 %60
|
|
%62 = OpCompositeExtract %5 %27 2
|
|
%63 = OpCompositeExtract %5 %29 2
|
|
%64 = OpIMul %5 %62 %63
|
|
%65 = OpIAdd %5 %61 %64
|
|
%66 = OpCompositeExtract %5 %27 3
|
|
%67 = OpCompositeExtract %5 %29 3
|
|
%68 = OpIMul %5 %66 %67
|
|
%53 = OpIAdd %5 %65 %68
|
|
OpReturnValue %53
|
|
OpFunctionEnd
|
|
%70 = OpFunction %2 None %71
|
|
%69 = OpLabel
|
|
OpBranch %72
|
|
%72 = OpLabel
|
|
%73 = OpFunctionCall %3 %7
|
|
%74 = OpFunctionCall %5 %16
|
|
OpReturn
|
|
OpFunctionEnd |