mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
146 lines
3.9 KiB
Plaintext
146 lines
3.9 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: rspirv
|
|
; Bound: 95
|
|
OpCapability Shader
|
|
OpCapability SampleRateShading
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %31 "vertex" %20 %23 %25 %27 %29
|
|
OpEntryPoint Fragment %60 "fragment" %43 %46 %49 %52 %54 %56 %57 %59
|
|
OpEntryPoint GLCompute %82 "compute" %71 %74 %76 %78 %80
|
|
OpExecutionMode %60 OriginUpperLeft
|
|
OpExecutionMode %60 DepthReplacing
|
|
OpExecutionMode %82 LocalSize 1 1 1
|
|
OpMemberDecorate %12 0 Offset 0
|
|
OpMemberDecorate %12 1 Offset 16
|
|
OpMemberDecorate %13 0 Offset 0
|
|
OpMemberDecorate %13 1 Offset 4
|
|
OpMemberDecorate %13 2 Offset 8
|
|
OpDecorate %15 ArrayStride 4
|
|
OpDecorate %20 BuiltIn VertexIndex
|
|
OpDecorate %23 BuiltIn InstanceIndex
|
|
OpDecorate %25 Location 10
|
|
OpDecorate %27 BuiltIn Position
|
|
OpDecorate %29 Location 1
|
|
OpDecorate %43 BuiltIn FragCoord
|
|
OpDecorate %46 Location 1
|
|
OpDecorate %49 BuiltIn FrontFacing
|
|
OpDecorate %52 BuiltIn SampleId
|
|
OpDecorate %54 BuiltIn SampleMask
|
|
OpDecorate %56 BuiltIn FragDepth
|
|
OpDecorate %57 BuiltIn SampleMask
|
|
OpDecorate %59 Location 0
|
|
OpDecorate %71 BuiltIn GlobalInvocationId
|
|
OpDecorate %74 BuiltIn LocalInvocationId
|
|
OpDecorate %76 BuiltIn LocalInvocationIndex
|
|
OpDecorate %78 BuiltIn WorkgroupId
|
|
OpDecorate %80 BuiltIn NumWorkgroups
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpConstant %4 1.0
|
|
%6 = OpTypeInt 32 0
|
|
%5 = OpConstant %6 1
|
|
%7 = OpConstant %4 0.0
|
|
%9 = OpTypeInt 32 1
|
|
%8 = OpConstant %9 1
|
|
%10 = OpConstant %9 0
|
|
%11 = OpTypeVector %4 4
|
|
%12 = OpTypeStruct %11 %4
|
|
%13 = OpTypeStruct %4 %6 %4
|
|
%14 = OpTypeBool
|
|
%15 = OpTypeArray %6 %8
|
|
%16 = OpTypeVector %6 3
|
|
%18 = OpTypePointer Workgroup %15
|
|
%17 = OpVariable %18 Workgroup
|
|
%21 = OpTypePointer Input %6
|
|
%20 = OpVariable %21 Input
|
|
%23 = OpVariable %21 Input
|
|
%25 = OpVariable %21 Input
|
|
%28 = OpTypePointer Output %11
|
|
%27 = OpVariable %28 Output
|
|
%30 = OpTypePointer Output %4
|
|
%29 = OpVariable %30 Output
|
|
%32 = OpTypeFunction %2
|
|
%44 = OpTypePointer Input %11
|
|
%43 = OpVariable %44 Input
|
|
%47 = OpTypePointer Input %4
|
|
%46 = OpVariable %47 Input
|
|
%50 = OpTypePointer Input %14
|
|
%49 = OpVariable %50 Input
|
|
%52 = OpVariable %21 Input
|
|
%54 = OpVariable %21 Input
|
|
%56 = OpVariable %30 Output
|
|
%58 = OpTypePointer Output %6
|
|
%57 = OpVariable %58 Output
|
|
%59 = OpVariable %30 Output
|
|
%72 = OpTypePointer Input %16
|
|
%71 = OpVariable %72 Input
|
|
%74 = OpVariable %72 Input
|
|
%76 = OpVariable %21 Input
|
|
%78 = OpVariable %72 Input
|
|
%80 = OpVariable %72 Input
|
|
%84 = OpTypePointer Workgroup %6
|
|
%93 = OpConstant %6 0
|
|
%31 = OpFunction %2 None %32
|
|
%19 = OpLabel
|
|
%22 = OpLoad %6 %20
|
|
%24 = OpLoad %6 %23
|
|
%26 = OpLoad %6 %25
|
|
OpBranch %33
|
|
%33 = OpLabel
|
|
%34 = OpIAdd %6 %22 %24
|
|
%35 = OpIAdd %6 %34 %26
|
|
%36 = OpCompositeConstruct %11 %3 %3 %3 %3
|
|
%37 = OpConvertUToF %4 %35
|
|
%38 = OpCompositeConstruct %12 %36 %37
|
|
%39 = OpCompositeExtract %11 %38 0
|
|
OpStore %27 %39
|
|
%40 = OpCompositeExtract %4 %38 1
|
|
OpStore %29 %40
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%60 = OpFunction %2 None %32
|
|
%41 = OpLabel
|
|
%45 = OpLoad %11 %43
|
|
%48 = OpLoad %4 %46
|
|
%42 = OpCompositeConstruct %12 %45 %48
|
|
%51 = OpLoad %14 %49
|
|
%53 = OpLoad %6 %52
|
|
%55 = OpLoad %6 %54
|
|
OpBranch %61
|
|
%61 = OpLabel
|
|
%62 = OpShiftLeftLogical %6 %5 %53
|
|
%63 = OpBitwiseAnd %6 %55 %62
|
|
%64 = OpSelect %4 %51 %3 %7
|
|
%65 = OpCompositeExtract %4 %42 1
|
|
%66 = OpCompositeConstruct %13 %65 %63 %64
|
|
%67 = OpCompositeExtract %4 %66 0
|
|
OpStore %56 %67
|
|
%68 = OpCompositeExtract %6 %66 1
|
|
OpStore %57 %68
|
|
%69 = OpCompositeExtract %4 %66 2
|
|
OpStore %59 %69
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%82 = OpFunction %2 None %32
|
|
%70 = OpLabel
|
|
%73 = OpLoad %16 %71
|
|
%75 = OpLoad %16 %74
|
|
%77 = OpLoad %6 %76
|
|
%79 = OpLoad %16 %78
|
|
%81 = OpLoad %16 %80
|
|
OpBranch %83
|
|
%83 = OpLabel
|
|
%85 = OpCompositeExtract %6 %73 0
|
|
%86 = OpCompositeExtract %6 %75 0
|
|
%87 = OpIAdd %6 %85 %86
|
|
%88 = OpIAdd %6 %87 %77
|
|
%89 = OpCompositeExtract %6 %79 0
|
|
%90 = OpIAdd %6 %88 %89
|
|
%91 = OpCompositeExtract %6 %81 0
|
|
%92 = OpIAdd %6 %90 %91
|
|
%94 = OpAccessChain %84 %17 %93
|
|
OpStore %94 %92
|
|
OpReturn
|
|
OpFunctionEnd |