mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
Co-authored-by: teoxoy <28601907+teoxoy@users.noreply.github.com>
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 35
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %17 "main" %11 %14 %16
|
|
OpExecutionMode %17 OriginUpperLeft
|
|
OpMemberDecorate %5 0 Offset 0
|
|
OpMemberDecorate %5 1 Offset 16
|
|
OpDecorate %11 BuiltIn FragCoord
|
|
OpDecorate %14 Location 0
|
|
OpDecorate %16 Location 0
|
|
OpDecorate %16 Index 1
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpTypeVector %4 4
|
|
%5 = OpTypeStruct %3 %3
|
|
%7 = OpTypePointer Function %3
|
|
%8 = OpConstantNull %3
|
|
%12 = OpTypePointer Input %3
|
|
%11 = OpVariable %12 Input
|
|
%15 = OpTypePointer Output %3
|
|
%14 = OpVariable %15 Output
|
|
%16 = OpVariable %15 Output
|
|
%18 = OpTypeFunction %2
|
|
%19 = OpConstant %4 0.4
|
|
%20 = OpConstant %4 0.3
|
|
%21 = OpConstant %4 0.2
|
|
%22 = OpConstant %4 0.1
|
|
%23 = OpConstant %4 0.9
|
|
%24 = OpConstant %4 0.8
|
|
%25 = OpConstant %4 0.7
|
|
%26 = OpConstant %4 0.6
|
|
%17 = OpFunction %2 None %18
|
|
%10 = OpLabel
|
|
%6 = OpVariable %7 Function %8
|
|
%9 = OpVariable %7 Function %8
|
|
%13 = OpLoad %3 %11
|
|
OpBranch %27
|
|
%27 = OpLabel
|
|
%28 = OpCompositeConstruct %3 %19 %20 %21 %22
|
|
OpStore %6 %28
|
|
%29 = OpCompositeConstruct %3 %23 %24 %25 %26
|
|
OpStore %9 %29
|
|
%30 = OpLoad %3 %6
|
|
%31 = OpLoad %3 %9
|
|
%32 = OpCompositeConstruct %5 %30 %31
|
|
%33 = OpCompositeExtract %3 %32 0
|
|
OpStore %14 %33
|
|
%34 = OpCompositeExtract %3 %32 1
|
|
OpStore %16 %34
|
|
OpReturn
|
|
OpFunctionEnd |