From 2f0c7819885aaae1810a3202ac6c98f240c6d492 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20D=C3=B6singer?= Date: Mon, 6 Mar 2006 23:05:02 +0100 Subject: [PATCH] wined3d: Add device caps to wined3d_types.h. --- dlls/wined3d/device.c | 2 +- dlls/wined3d/directx.c | 14 +++++++------- dlls/wined3d/surface.c | 2 +- include/wine/wined3d_types.h | 25 +++++++++++++++++++++++++ 4 files changed, 34 insertions(+), 9 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 6b8a17f4916..71348913305 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4661,7 +4661,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD Stage, if(pTexture != NULL) { /* SetTexture isn't allowed on textures in D3DPOOL_SCRATCH; The same is - * the case for D3DPOOL_SYSTEMMEM textures unless D3DDEVCAPS_TEXTURESYSTEMMORY is set. + * the case for D3DPOOL_SYSTEMMEM textures unless WINED3DDEVCAPS_TEXTURESYSTEMMORY is set. * We don't check the caps as GetDeviceCaps is inefficient and we don't set the cap anyway. */ if(((IWineD3DTextureImpl*)pTexture)->resource.pool == D3DPOOL_SCRATCH || ((IWineD3DTextureImpl*)pTexture)->resource.pool == D3DPOOL_SYSTEMMEM) { diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 17496355e18..5a3739d065a 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1462,18 +1462,18 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, D3DDEVT *pCaps->Caps = 0; *pCaps->Caps2 = D3DCAPS2_CANRENDERWINDOWED; - *pCaps->Caps3 = D3DDEVCAPS_HWTRANSFORMANDLIGHT; + *pCaps->Caps3 = WINED3DDEVCAPS_HWTRANSFORMANDLIGHT; *pCaps->PresentationIntervals = D3DPRESENT_INTERVAL_IMMEDIATE; *pCaps->CursorCaps = 0; - *pCaps->DevCaps = D3DDEVCAPS_DRAWPRIMTLVERTEX | - D3DDEVCAPS_HWTRANSFORMANDLIGHT | - D3DDEVCAPS_EXECUTEVIDEOMEMORY | - D3DDEVCAPS_PUREDEVICE | - D3DDEVCAPS_HWRASTERIZATION | - D3DDEVCAPS_TEXTUREVIDEOMEMORY; + *pCaps->DevCaps = WINED3DDEVCAPS_DRAWPRIMTLVERTEX | + WINED3DDEVCAPS_HWTRANSFORMANDLIGHT | + WINED3DDEVCAPS_EXECUTEVIDEOMEMORY | + WINED3DDEVCAPS_PUREDEVICE | + WINED3DDEVCAPS_HWRASTERIZATION | + WINED3DDEVCAPS_TEXTUREVIDEOMEMORY; *pCaps->PrimitiveMiscCaps = D3DPMISCCAPS_CULLCCW | diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index c03587e7918..362f5b969f7 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -949,7 +949,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface) { * these resources cannot be accessed by the Direct3D device nor set as textures or render targets. * However, these resources can always be created, locked, and copied. * In general never store scratch or system mem textures in the video ram. However it is allowed - * for system memory textures when D3DDEVCAPS_TEXTURESYSTEMMEMORY is set but it isn't right now. + * for system memory textures when WINED3DDEVCAPS_TEXTURESYSTEMMEMORY is set but it isn't right now. */ if (This->resource.pool == D3DPOOL_SCRATCH || This->resource.pool == D3DPOOL_SYSTEMMEM) { diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index 418a52ef7c6..ffc00f9eb23 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -869,4 +869,29 @@ typedef enum _WINED3DDECLUSAGE { #define WINED3DVTXPCAPS_TEXGEN_SPHEREMAP 0x00000100L #define WINED3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER 0x00000200L +#define WINED3DDEVCAPS_FLOATTLVERTEX 0x000000001 +#define WINED3DDEVCAPS_SORTINCREASINGZ 0x000000002 +#define WINED3DDEVCAPS_SORTDECREASINGZ 0X000000004 +#define WINED3DDEVCAPS_SORTEXACT 0x000000008 +#define WINED3DDEVCAPS_EXECUTESYSTEMMEMORY 0x000000010 +#define WINED3DDEVCAPS_EXECUTEVIDEOMEMORY 0x000000020 +#define WINED3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x000000040 +#define WINED3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x000000080 +#define WINED3DDEVCAPS_TEXTURESYSTEMMEMORY 0x000000100 +#define WINED3DDEVCAPS_TEXTUREVIDEOMEMORY 0x000000200 +#define WINED3DDEVCAPS_DRAWPRIMTLVERTEX 0x000000400 +#define WINED3DDEVCAPS_CANRENDERAFTERFLIP 0x000000800 +#define WINED3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x000001000 +#define WINED3DDEVCAPS_DRAWPRIMITIVES2 0x000002000 +#define WINED3DDEVCAPS_SEPARATETEXTUREMEMORIES 0x000004000 +#define WINED3DDEVCAPS_DRAWPRIMITIVES2EX 0x000008000 +#define WINED3DDEVCAPS_HWTRANSFORMANDLIGHT 0x000010000 +#define WINED3DDEVCAPS_CANBLTSYSTONONLOCAL 0x000020000 +#define WINED3DDEVCAPS_HWRASTERIZATION 0x000080000 +#define WINED3DDEVCAPS_PUREDEVICE 0x000100000 +#define WINED3DDEVCAPS_QUINTICRTPATCHES 0x000200000 +#define WINED3DDEVCAPS_RTPATCHES 0x000400000 +#define WINED3DDEVCAPS_RTPATCHHANDLEZERO 0x000800000 +#define WINED3DDEVCAPS_NPATCHES 0x001000000 + #endif -- 2.11.4.GIT