View Single Post
Old 06 January 2017, 07:15   #15
rsn8887
Registered User
rsn8887's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 726
I think I have found a workaround using VPOS to access screencoords which seems to work in the shader.

However, I tested the shader and it does NOT give perfect integer scaled pixels at 2*, 3* etc. I am almost 100% sure it due to this problem:
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

From what I gather, it looks like WinUAE might not be offsetting the quad by the required 0.5 pixels to align it with the screen pixels.

I made a quick NULL_TEST D3D filter to show this. The output should be identical to using the internal NULL filter, or the "none" filter. But it is not.

To better see the pixels in the tests, I am using "integer scaling" and "lores" without line doubling.
Attached Thumbnails
Click image for larger version

Name:	NULL_Internal.jpg
Views:	43
Size:	83.7 KB
ID:	51595   Click image for larger version

Name:	NULLTEST_D3D.jpg
Views:	48
Size:	82.8 KB
ID:	51596   Click image for larger version

Name:	Settings.jpg
Views:	29
Size:	277.9 KB
ID:	51597  
Attached Files
File Type: zip NULLTEST.zip (689 Bytes, 10 views)

Last edited by rsn8887; 06 January 2017 at 11:52.
rsn8887 is offline  
 
Page generated in 0.08338 seconds with 10 queries