Files
wgpu/naga/tests/out/spv/dualsource.spvasm
T
Andreas Reich fedc80eb80 [wgsl-in, wgsl-out, glsl-in] WebGPU compliant dual source blending feature (#7146)
Makes the dual source implementation in wgpu WebGPU spec compliant.
Furthermore, makes the dual source blending extension available when targeting WebGPU.
2025-03-08 21:07:37 +01:00

44 lines
1.1 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 26
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %10 "main" %7 %9
OpExecutionMode %10 OriginUpperLeft
OpMemberDecorate %5 0 Offset 0
OpMemberDecorate %5 1 Offset 16
OpDecorate %7 Location 0
OpDecorate %7 Index 0
OpDecorate %9 Location 0
OpDecorate %9 Index 1
%2 = OpTypeVoid
%4 = OpTypeFloat 32
%3 = OpTypeVector %4 4
%5 = OpTypeStruct %3 %3
%8 = OpTypePointer Output %3
%7 = OpVariable %8 Output
%9 = OpVariable %8 Output
%11 = OpTypeFunction %2
%12 = OpConstant %4 0.4
%13 = OpConstant %4 0.3
%14 = OpConstant %4 0.2
%15 = OpConstant %4 0.1
%16 = OpConstantComposite %3 %12 %13 %14 %15
%17 = OpConstant %4 0.9
%18 = OpConstant %4 0.8
%19 = OpConstant %4 0.7
%20 = OpConstant %4 0.6
%21 = OpConstantComposite %3 %17 %18 %19 %20
%22 = OpConstantComposite %5 %16 %21
%10 = OpFunction %2 None %11
%6 = OpLabel
OpBranch %23
%23 = OpLabel
%24 = OpCompositeExtract %3 %22 0
OpStore %7 %24
%25 = OpCompositeExtract %3 %22 1
OpStore %9 %25
OpReturn
OpFunctionEnd