mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
68 lines
1.5 KiB
Plaintext
68 lines
1.5 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 42
|
|
OpCapability Shader
|
|
OpCapability DerivativeControl
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %17 "derivatives" %12 %15
|
|
OpExecutionMode %17 OriginUpperLeft
|
|
OpDecorate %12 BuiltIn FragCoord
|
|
OpDecorate %15 Location 0
|
|
%2 = OpTypeVoid
|
|
%3 = OpTypeBool
|
|
%5 = OpTypeFloat 32
|
|
%4 = OpTypeVector %5 4
|
|
%8 = OpTypeFunction %3
|
|
%9 = OpConstantTrue %3
|
|
%13 = OpTypePointer Input %4
|
|
%12 = OpVariable %13 Input
|
|
%16 = OpTypePointer Output %4
|
|
%15 = OpVariable %16 Output
|
|
%18 = OpTypeFunction %2
|
|
%20 = OpTypePointer Function %4
|
|
%21 = OpConstantNull %4
|
|
%23 = OpConstantNull %4
|
|
%25 = OpConstantNull %4
|
|
%7 = OpFunction %3 None %8
|
|
%6 = OpLabel
|
|
OpBranch %10
|
|
%10 = OpLabel
|
|
OpReturnValue %9
|
|
OpFunctionEnd
|
|
%17 = OpFunction %2 None %18
|
|
%11 = OpLabel
|
|
%19 = OpVariable %20 Function %21
|
|
%22 = OpVariable %20 Function %23
|
|
%24 = OpVariable %20 Function %25
|
|
%14 = OpLoad %4 %12
|
|
OpBranch %26
|
|
%26 = OpLabel
|
|
%27 = OpDPdxCoarse %4 %14
|
|
OpStore %19 %27
|
|
%28 = OpDPdyCoarse %4 %14
|
|
OpStore %22 %28
|
|
%29 = OpFwidthCoarse %4 %14
|
|
OpStore %24 %29
|
|
%30 = OpDPdxFine %4 %14
|
|
OpStore %19 %30
|
|
%31 = OpDPdyFine %4 %14
|
|
OpStore %22 %31
|
|
%32 = OpFwidthFine %4 %14
|
|
OpStore %24 %32
|
|
%33 = OpDPdx %4 %14
|
|
OpStore %19 %33
|
|
%34 = OpDPdy %4 %14
|
|
OpStore %22 %34
|
|
%35 = OpFwidth %4 %14
|
|
OpStore %24 %35
|
|
%36 = OpFunctionCall %3 %7
|
|
%37 = OpLoad %4 %19
|
|
%38 = OpLoad %4 %22
|
|
%39 = OpFAdd %4 %37 %38
|
|
%40 = OpLoad %4 %24
|
|
%41 = OpFMul %4 %39 %40
|
|
OpStore %15 %41
|
|
OpReturn
|
|
OpFunctionEnd |