1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[tests] Add alpha test > 255 to this triangle mess

This commit is contained in:
Joshua Ashton 2020-02-10 15:19:53 +00:00
parent 7567486668
commit 2caa3c9f88

View File

@ -46,6 +46,7 @@ PS_OUTPUT main( VS_OUTPUT IN ) {
PS_OUTPUT OUT;
OUT.Colour = tex2D(g_texDepth, float2(0, 0));
OUT.Colour = 1.0;
return OUT;
}
@ -271,6 +272,10 @@ public:
D3DLOCKED_RECT rect;
status = myCopyThing->LockRect(0, &rect, nullptr, D3DLOCK_READONLY | D3DLOCK_NOSYSLOCK);
m_device->SetRenderState(D3DRS_ALPHAREF, 256 + 255);
m_device->SetRenderState(D3DRS_ALPHAFUNC, D3DCMP_LESSEQUAL);
m_device->SetRenderState(D3DRS_ALPHATESTENABLE, TRUE);
}
void run() {