Skip to content

Instantly share code, notes, and snippets.

@Triang3l
Created December 10, 2018 05:13
Show Gist options
  • Save Triang3l/d5009f5fe84973505854d1b0695caa21 to your computer and use it in GitHub Desktop.
Save Triang3l/d5009f5fe84973505854d1b0695caa21 to your computer and use it in GitHub Desktop.
G> 00000004 Generated vertex shader (696b) - hash 06B25D80222ECA41:
/* 0.0 */ exec // PredicateClean=false
/* 6 */ vfetch_full r2.xyz1, r1.x, vf0, DataFormat=FMT_32_32_32_FLOAT, Stride=9, Signed=true, NumFormat=integer, PrefetchCount=6
/* 7 */ vfetch_mini r3.xyz1, Offset=3, DataFormat=FMT_32_32_32_FLOAT, Signed=true, NumFormat=integer
/* 8 */ vfetch_full r4.xyz1, r1.x, vf0, Offset=6, DataFormat=FMT_32_32_32_FLOAT, Stride=9, Signed=true, NumFormat=integer
/* 9 */ serialize
add r5, r1.yyyy, -c8
/* 10 */ setp_eq r6.x___, r5.y
/* 11 */ (p0) max r0.xyz_, r0.zxyy, r0.zxyy
/* 0.1 */ exec // PredicateClean=false
/* 12 */ setp_eq r6.x___, r5.z
/* 13 */ (p0) max r0.xyz_, r0.yzxx, r0.yzxx
/* 14 */ setp_eq r6.x___, r5.w
/* 15 */ (p0) max r0.xyz_, r0.xzyy, r0.xzyy
/* 16 */ add r5, r1.yyyy, -c9
/* 17 */ setp_eq r6.x___, r5.x
/* 1.0 */ exec // PredicateClean=false
/* 18 */ (p0) max r0.xyz_, r0.yxzz, r0.yxzz
/* 19 */ setp_eq r6.x___, r5.y
/* 20 */ (p0) max r0.xyz_, r0.zyxx, r0.zyxx
/* 21 */ mul r2, r2, r0.zzzz
/* 22 */ mad r2, r3, r0.yyyy, r2
/* 23 */ mad r2, r4, r0.xxxx, r2
/* 1.1 */ exec
/* 24 */ add r3, r2, -c236
/* 25 */ mul r4.x___, r3.xxxx, c237.zzzz
/* 26 */ mad r4.x___, -r3.zzzz, c237.xxxx, r4.xxxx
/* 27 */ mul r4._y__, r3.zzzz, c238.xxxx
/* 28 */ mad r4._y__, -r3.xxxx, c238.zzzz, r4.yyyy
/* 29 */ mul r3.xy__, r4.xyyy, c236.wwww
/* 2.0 */ exec
/* 30 */ tfetch2D r4.___y, r3.xy, tf4, MagFilter=linear, MinFilter=linear, MipFilter=point, UseComputedLOD=false
/* 31 */ serialize
mul r5.xy__, r2.xzzz, c248.zzzz
/* 32 */ mad r5.__z_, r4.wwww, c241.xxxx, c248.xxxx
/* 33 */ add r4.xyz_, r2, -c254
/* 34 */ dp3 r4.___w, r4, r4
/* 35 */ sqrt r4.___w, r4.w
/* 2.1 */ exec
/* 36 */ mul r4.x___, r4.wwww, c241.zzzz
/* 37 */ tfetch2D r5.___z, r3.xy, tf5, MagFilter=linear, MinFilter=linear, MipFilter=linear, UseComputedLOD=false
/* 38 */ setTexLOD r4.x
/* 39 */ tfetch2D r4._wz_, r3.xy, tf4, MagFilter=linear, MinFilter=linear, MipFilter=linear, UseComputedLOD=false, UseRegisterLOD=true
/* 40 */ tfetch3D r4.x___, r5.xyz, tf0, MagFilter=linear, MinFilter=linear, MipFilter=linear, UseComputedLOD=false, UseRegisterLOD=true
/* 3.0 */ alloc interpolators
/* 3.1 */ exec
/* 41 */ mul r3.___w, c253.yyyy, c5.xxxx
/* 42 */ mad r3.__z_, r4.yyyy, c5.yyyy, -r3.wwww
/* 43 */ tfetch2D r4.___y, r3.zz, tf9, MagFilter=linear, MinFilter=linear, MipFilter=linear, UseComputedLOD=false
/* 4.0 */ alloc position
/* 4.1 */ exec
/* 44 */ mul r4._y__, r4.yyyy, r4.zzzz
/* 45 */ mul r4.x__w, r4, c253.zxxx
/* 46 */ add r4.___w, r4.wwww, -r4.xxxx
/* 47 */ mad r4.x___, r4.wwww, r4.yyyy, r4.xxxx
/* 48 */ add r5.___w, c4.yyyy, -r5.wwww
/* 49 */ mad r2._y__, r4.xxxx, r5.wwww, r2.yyyy
/* 5.0 */ exec
/* 50 */ add r2._y__, r2.yyyy, c230.xxxx
/* 5.1 */ exece
/* 51 */ dp4 oPos.x___, r2, c0
/* 52 */ dp4 oPos._y__, r2, c1
/* 53 */ dp4 oPos.__z_, r2, c2
/* 54 */ dp4 oPos.___w, r2, c3
/* 55 */ max o0, r2, r2
/* 56 */ max o1.xy__, r3.xyyy, r3.xyyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment