mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-20 08:52:22 +01:00
[d3d8] Strip all d3d9 device caps
This commit is contained in:
parent
1181efd09d
commit
0c117595b1
@ -29,32 +29,39 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
// Remove D3D9-specific caps:
|
// Remove D3D9-specific caps:
|
||||||
pCaps8->Caps2 &= ~D3DCAPS2_CANAUTOGENMIPMAP;
|
pCaps8->Caps2 &= ~D3DCAPS2_CANAUTOGENMIPMAP;
|
||||||
|
|
||||||
pCaps8->Caps3 &= ~D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION
|
pCaps8->Caps3 &= ~D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION
|
||||||
& ~D3DCAPS3_COPY_TO_VIDMEM
|
& ~D3DCAPS3_COPY_TO_VIDMEM
|
||||||
& ~D3DCAPS3_COPY_TO_SYSTEMMEM;
|
& ~D3DCAPS3_COPY_TO_SYSTEMMEM;
|
||||||
|
|
||||||
pCaps8->PrimitiveMiscCaps &= ~D3DPMISCCAPS_INDEPENDENTWRITEMASKS
|
pCaps8->PrimitiveMiscCaps &= ~D3DPMISCCAPS_INDEPENDENTWRITEMASKS
|
||||||
& ~D3DPMISCCAPS_PERSTAGECONSTANT
|
& ~D3DPMISCCAPS_PERSTAGECONSTANT
|
||||||
& ~D3DPMISCCAPS_FOGANDSPECULARALPHA
|
& ~D3DPMISCCAPS_FOGANDSPECULARALPHA
|
||||||
& ~D3DPMISCCAPS_SEPARATEALPHABLEND
|
& ~D3DPMISCCAPS_SEPARATEALPHABLEND
|
||||||
& ~D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS
|
& ~D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS
|
||||||
& ~D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING
|
& ~D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING
|
||||||
& ~D3DPMISCCAPS_FOGVERTEXCLAMPED
|
& ~D3DPMISCCAPS_FOGVERTEXCLAMPED
|
||||||
& ~D3DPMISCCAPS_POSTBLENDSRGBCONVERT;
|
& ~D3DPMISCCAPS_POSTBLENDSRGBCONVERT;
|
||||||
|
|
||||||
pCaps8->RasterCaps &= ~D3DPRASTERCAPS_SCISSORTEST
|
pCaps8->RasterCaps &= ~D3DPRASTERCAPS_SCISSORTEST
|
||||||
& ~D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS
|
& ~D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS
|
||||||
& ~D3DPRASTERCAPS_DEPTHBIAS
|
& ~D3DPRASTERCAPS_DEPTHBIAS
|
||||||
& ~D3DPRASTERCAPS_MULTISAMPLE_TOGGLE;
|
& ~D3DPRASTERCAPS_MULTISAMPLE_TOGGLE;
|
||||||
|
|
||||||
pCaps8->SrcBlendCaps &= ~D3DPBLENDCAPS_INVSRCCOLOR2
|
pCaps8->SrcBlendCaps &= ~D3DPBLENDCAPS_BLENDFACTOR
|
||||||
& ~D3DPBLENDCAPS_SRCCOLOR2;
|
& ~D3DPBLENDCAPS_INVSRCCOLOR2
|
||||||
|
& ~D3DPBLENDCAPS_SRCCOLOR2;
|
||||||
|
|
||||||
pCaps8->LineCaps &= ~D3DLINECAPS_ANTIALIAS;
|
pCaps8->DestBlendCaps &= ~D3DPBLENDCAPS_BLENDFACTOR
|
||||||
|
& ~D3DPBLENDCAPS_INVSRCCOLOR2
|
||||||
|
& ~D3DPBLENDCAPS_SRCCOLOR2;
|
||||||
|
|
||||||
pCaps8->StencilCaps &= ~D3DSTENCILCAPS_TWOSIDED;
|
pCaps8->LineCaps &= ~D3DLINECAPS_ANTIALIAS;
|
||||||
|
|
||||||
|
pCaps8->StencilCaps &= ~D3DSTENCILCAPS_TWOSIDED;
|
||||||
|
|
||||||
|
pCaps8->VertexProcessingCaps &= ~D3DVTXPCAPS_TEXGEN_SPHEREMAP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// (9<-8) D3DD3DPRESENT_PARAMETERS: Returns D3D9's params given an input for D3D8
|
// (9<-8) D3DD3DPRESENT_PARAMETERS: Returns D3D9's params given an input for D3D8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user