// // Generated by Microsoft (R) HLSL Shader Compiler 9.25.950.2675 // // using 3Dmigoto v1.3.16 on Wed Feb 09 18:55:48 2022 // // // Buffer Definitions: // // cbuffer cbPSUpdateEveryCall // { // // struct // { // // struct // { // // float4 color; // Offset: 0 // // } SetColorValue_PS2_ConstantTable;// Offset: 0 // // } Data_PS; // Offset: 0 Size: 16 // // } // // // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // SampleTextureFromInterpolatorUV1_Sampler sampler NA NA 0 1 // SampleTextureFromInterpolatorUV1_Sampler texture float4 2d 0 1 // cbPSUpdateEveryCall cbuffer NA NA 0 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_POSITION 0 xyzw 0 POS float // TEXCOORD 0 xyzw 1 NONE float // TEXCOORD 1 xy 2 NONE float xy // TEXCOORD 2 xyzw 3 NONE float xyzw // // // 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 1 ( 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 c1, 0.00313080009, 12.9200001, 0.416666657, 0 def c2, 1.05499995, -0.0549999997, 0, 0 dcl t1.xy dcl t2 dcl_2d s0 texld r0, t1, s0 rcp r1.w, r0.w mul_sat r1.xyz, r0, r1.w pow r2.w, r1.x, c1.z mad r1.w, r2.w, c2.x, c2.y add r2.x, -r1.x, c1.x mul r1.x, r1.x, c1.y cmp r2.x, r2.x, r1.x, r1.w pow r2.w, r1.y, c1.z mad r2.w, r2.w, c2.x, c2.y add r1.x, -r1.y, c1.x mul r1.y, r1.y, c1.y cmp r2.y, r1.x, r1.y, r2.w pow r2.w, r1.z, c1.z mad r2.w, r2.w, c2.x, c2.y add r1.x, -r1.z, c1.x mul r1.y, r1.z, c1.y cmp r2.z, r1.x, r1.y, r2.w mul r1.xyz, r0.w, r2 cmp r0.xyz, -r0.w, r0, r1 mul r0, r0, c0.w mul r0, r0, t2 mov oC0, r0 // approximately 29 instruction slots used (1 texture, 28 arithmetic) ps_4_0 dcl_constantbuffer cb0[1], immediateIndexed dcl_sampler s0, mode_default dcl_resource_texture2d (float,float,float,float) t0 dcl_input_ps linear v2.xy dcl_input_ps linear v3.xyzw dcl_output o0.xyzw dcl_temps 4 sample r0.xyzw, v2.xyxx, t0.xyzw, s0 lt r1.x, l(0.000000), r0.w if_nz r1.x div_sat r1.xyz, r0.xyzx, r0.wwww ge r2.xyz, l(0.00313080009, 0.00313080009, 0.00313080009, 0.000000), r1.xyzx mul r3.xyz, r1.xyzx, l(12.920000, 12.920000, 12.920000, 0.000000) log r1.xyz, r1.xyzx mul r1.xyz, r1.xyzx, l(0.416666657, 0.416666657, 0.416666657, 0.000000) exp r1.xyz, r1.xyzx mad r1.xyz, r1.xyzx, l(1.055000, 1.055000, 1.055000, 0.000000), l(-0.055000, -0.055000, -0.055000, 0.000000) movc r1.xyz, r2.xyzx, r3.xyzx, r1.xyzx mul r0.xyz, r0.wwww, r1.xyzx endif mul r0.xyzw, r0.xyzw, cb0[0].wwww mul o0.xyzw, r0.xyzw, v3.xyzw ret // Approximately 16 instruction slots used