diff options
Diffstat (limited to 'reference/webgl-water/webgl-water-20.asm')
-rw-r--r-- | reference/webgl-water/webgl-water-20.asm | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/reference/webgl-water/webgl-water-20.asm b/reference/webgl-water/webgl-water-20.asm index a2747d4..52b9c56 100644 --- a/reference/webgl-water/webgl-water-20.asm +++ b/reference/webgl-water/webgl-water-20.asm @@ -6,27 +6,20 @@ @out(r1.y) out1 @out(r1.z) out2 @out(r1.w) out3 +@const(c1.x) 0x00000000, 0x00000000, 0x00000000, 0x00000000 (sy)(ss)bary.f r0.z, 0, r0.x -bary.f (ei)r0.x, 1, r0.x -(rpt1)nop -mov.f32f32 r0.y, r0.z -mov.f32f32 r0.x, r0.x -(rpt1)nop -mov.f32f32 r0.y, r0.y -mov.f32f32 r0.z, r0.x +bary.f (ei)r0.w, 1, r0.x (rpt5)nop -sam (f32)(xyzw)r0.x, r0.y, s#0, t#0 -(sy)mul.f r0.w, r0.w, c0.x -(ss)mul.f r0.z, r0.z, c0.x -mul.f r0.y, r0.y, c0.x -mul.f r0.x, r0.x, c0.x -mov.f32f32 r1.w, r0.w -mov.f32f32 r1.z, r0.z -mov.f32f32 r1.y, r0.y -mov.f32f32 r1.x, r0.x +sam (f32)(xyzw)r0.x, r0.z, s#0, t#0 +(sy)mul.f r1.w, r0.w, c0.x +mul.f r1.z, r0.z, c0.x +mul.f r1.y, r0.y, c0.x +mul.f r1.x, r0.x, c0.x end nop +nop +nop ; FRAG: outputs: r1.x (1:0) ; FRAG: inputs: r0.x (5:20,cm=f,il=8,b=1) -; FRAG: 26 instructions, 0 half, 2 full +; FRAG: 14 instructions, 0 half, 2 full |