mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
The old filenames were probably based on the shader stage, not the shader function name, which the PR changed to do in response to a review suggestion.
78 lines
2.1 KiB
Plaintext
78 lines
2.1 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: rspirv
|
|
; Bound: 49
|
|
OpCapability Shader
|
|
OpCapability SampleRateShading
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %38 "fragment" %19 %22 %25 %28 %31 %33 %35 %37
|
|
OpExecutionMode %38 OriginUpperLeft
|
|
OpExecutionMode %38 DepthReplacing
|
|
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 %19 BuiltIn FragCoord
|
|
OpDecorate %22 Location 1
|
|
OpDecorate %25 BuiltIn FrontFacing
|
|
OpDecorate %28 BuiltIn SampleId
|
|
OpDecorate %31 BuiltIn SampleMask
|
|
OpDecorate %33 BuiltIn FragDepth
|
|
OpDecorate %35 BuiltIn SampleMask
|
|
OpDecorate %37 Location 0
|
|
%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
|
|
%20 = OpTypePointer Input %11
|
|
%19 = OpVariable %20 Input
|
|
%23 = OpTypePointer Input %4
|
|
%22 = OpVariable %23 Input
|
|
%26 = OpTypePointer Input %14
|
|
%25 = OpVariable %26 Input
|
|
%29 = OpTypePointer Input %6
|
|
%28 = OpVariable %29 Input
|
|
%31 = OpVariable %29 Input
|
|
%34 = OpTypePointer Output %4
|
|
%33 = OpVariable %34 Output
|
|
%36 = OpTypePointer Output %6
|
|
%35 = OpVariable %36 Output
|
|
%37 = OpVariable %34 Output
|
|
%39 = OpTypeFunction %2
|
|
%38 = OpFunction %2 None %39
|
|
%17 = OpLabel
|
|
%21 = OpLoad %11 %19
|
|
%24 = OpLoad %4 %22
|
|
%18 = OpCompositeConstruct %12 %21 %24
|
|
%27 = OpLoad %14 %25
|
|
%30 = OpLoad %6 %28
|
|
%32 = OpLoad %6 %31
|
|
OpBranch %40
|
|
%40 = OpLabel
|
|
%41 = OpShiftLeftLogical %6 %5 %30
|
|
%42 = OpBitwiseAnd %6 %32 %41
|
|
%43 = OpSelect %4 %27 %3 %7
|
|
%44 = OpCompositeExtract %4 %18 1
|
|
%45 = OpCompositeConstruct %13 %44 %42 %43
|
|
%46 = OpCompositeExtract %4 %45 0
|
|
OpStore %33 %46
|
|
%47 = OpCompositeExtract %6 %45 1
|
|
OpStore %35 %47
|
|
%48 = OpCompositeExtract %4 %45 2
|
|
OpStore %37 %48
|
|
OpReturn
|
|
OpFunctionEnd |