Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created May 27, 2022 21:54
Show Gist options
  • Save anarsoul/cff898c86daedf3324a1003c3c029f7c to your computer and use it in GitHub Desktop.
Save anarsoul/cff898c86daedf3324a1003c3c029f7c to your computer and use it in GitHub Desktop.
======ppir output regs======
OUTPUT_COLOR0: $0
--------------------------
========ppir codegen========
011 (@ 0): 02200083 f2003c6b 00000000
load.v $2 gl_FragCoord
010 (@ 3): 02281204 00000800 001c9e00 000f9e00
load.u 0, mov.v1 $0 ^uniform
009 (@ 7): 02182a05 00000800 007c1200 20818000 00000020
load.u 0, mul.s0 $2.y ^uniform.z, add.s1 $0.y ^s0 $0.w
008 (@ 12): 02281003 00000202 000007c5
mov.v1 $0.xz $2.xxzx
007 (@ 15): 02320405 00030540 01600003 00000000 00000000
mul.v0 $0.xy $0.xyyy ^const0.xxxx, const0 0.062500 0.000000 0.000000 0.000000
006 (@ 20): 021011c6 0f040004 00000000 39001000 00000e4e 000007cf
load.v ^discard. $0.xyxx, texld 0, mov.v1 $0 ^texture, sync
001 (@ 26): 02104002 04000008
sqrt.s2 $1.x $0.x
002 (@ 28): 02104002 05010008
sqrt.s2 $1.y $0.y
003 (@ 30): 02104002 06020008
sqrt.s2 $1.z $0.z
004 (@ 32): 02104002 07030008
sqrt.s2 $1.w $0.w
005 (@ 34): 02184002 030b0000
rcp.s2 $0.w $2.w
000 (@ 36): 00001023 00000e41 000007cf
mov.v1 $0 $1, stop
-----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment