e4s-sdk/gamedata/shaders/r2/test/p2b_yuv2rgb.ps
2026-06-17 23:06:51 +03:00

35 lines
815 B
PostScript

//
// Generated by Microsoft (R) D3DX9 Shader Compiler 9.07.239.0000
//
// fxc /nologo /Tps_2_b /Emain /Zpr /Fctest\p2b_yuv2rgb.ps yuv2rgb.ps
//
//
// Parameters:
//
// sampler2D s_base;
//
//
// Registers:
//
// Name Reg Size
// ------------ ----- ----
// s_base s1 1
//
ps_2_x
def c0, -0.869610012, 0.53075999, -1.07860005, 0
def c1, 1.16406, 1, 0, 0
def c2, 1.59765005, -0.8125, 0, 0
def c3, -0.390625, 2.01561999, 0, 0
dcl t0.xy
dcl_2d s1
texld_pp r0, t0, s1
mul_pp r1.x, r0.x, c1.x
mad_pp r1.yz, r0.y, c3.zxyw, r1.x
mad_pp r0.xy, r0.z, c2, r1
mov_pp r0.z, r1.z
add_pp r0.xyz, r0, c0
mov r0.w, c1.y
mov_pp oC0, r0
// approximately 8 instruction slots used (1 texture, 7 arithmetic)