// // Generated by Microsoft (R) HLSL Shader Compiler 9.25.950.2675 // // using 3Dmigoto v1.3.16 on Wed Feb 09 18:55:49 2022 // // // Buffer Definitions: // // cbuffer cbPS // { // // float4 lowColor; // Offset: 0 Size: 16 // float4 highColor; // Offset: 16 Size: 16 // // } // // // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // SourceTexture_Sampler sampler NA NA 0 1 // SourceTexture_Sampler texture float4 2d 0 1 // cbPS cbuffer NA NA 0 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_POSITION 0 xyzw 0 POS float // TEXCOORD 0 xy 1 NONE float xy // // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_Target 0 xyzw 0 TARGET float xyzw // // // Constant buffer to DX9 shader constant mappings: // // Target Reg Buffer Start Reg # of Regs Data Conversion // ---------- ------- --------- --------- ---------------------- // c0 cb0 0 2 ( FLT, FLT, FLT, FLT) // // // Sampler/Resource to DX9 shader sampler mappings: // // Target Sampler Source Sampler Source Resource // -------------- --------------- ---------------- // s0 s0 t0 // // // Level9 shader bytecode: // ps_2_0 def c2, 1, 0, 0, 0 dcl t0.xy dcl_2d s0 texld r0, t0, s0 add r1.w, r0.x, -c0.x cmp r1.x, r1.w, c2.x, c2.y add r1.y, -r0.x, c1.x cmp r1.y, r1.y, c2.x, c2.y mul r1.x, r1.x, r1.y add r1.y, r0.y, -c0.y cmp r1.y, r1.y, c2.x, c2.y mul r1.x, r1.x, r1.y add r1.y, -r0.y, c1.y cmp r1.y, r1.y, c2.x, c2.y mul r1.x, r1.x, r1.y add r1.y, r0.z, -c0.z cmp r1.y, r1.y, c2.x, c2.y mul r1.x, r1.x, r1.y add r1.y, -r0.z, c1.z cmp r1.y, r1.y, c2.x, c2.y mul r1.x, r1.x, r1.y add r1.y, r0.w, -c0.w cmp r1.y, r1.y, c2.x, c2.y mul r1.x, r1.x, r1.y add r1.y, -r0.w, c1.w cmp r1.y, r1.y, c2.x, c2.y mul r1.x, r1.x, r1.y mov r0.w, c2.x cmp r0, -r1.x, r0, c2.y mov oC0, r0 // approximately 27 instruction slots used (1 texture, 26 arithmetic) ps_4_0 dcl_constantbuffer cb0[2], immediateIndexed dcl_sampler s0, mode_default dcl_resource_texture2d (float,float,float,float) t0 dcl_input_ps linear v1.xy dcl_output o0.xyzw dcl_temps 3 sample r0.xyzw, v1.xyxx, t0.xyzw, s0 ge r1.xyzw, r0.xyzw, cb0[0].xyzw ge r2.xyzw, cb0[1].xyzw, r0.xyzw and r1.x, r1.x, r2.x and r1.x, r1.y, r1.x and r1.x, r2.y, r1.x and r1.x, r1.z, r1.x and r1.x, r2.z, r1.x and r1.x, r1.w, r1.x and r1.x, r2.w, r1.x mov r0.w, l(1.000000) movc o0.xyzw, r1.xxxx, l(0,0,0,0), r0.xyzw ret // Approximately 13 instruction slots used