Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8869c0f1
Commit
8869c0f1
authored
Mar 18, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: De-pointerize the WINED3DCAPS structure.
parent
6d5f562d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
195 additions
and
254 deletions
+195
-254
d3d8_private.h
dlls/d3d8/d3d8_private.h
+54
-54
device.c
dlls/d3d8/device.c
+1
-1
directx.c
dlls/d3d8/directx.c
+1
-1
d3d9_private.h
dlls/d3d9/d3d9_private.h
+0
-0
device.c
dlls/d3d9/device.c
+1
-1
directx.c
dlls/d3d9/directx.c
+1
-1
direct3d.c
dlls/ddraw/direct3d.c
+44
-103
directx.c
dlls/wined3d/directx.c
+0
-0
wined3d_types.h
include/wine/wined3d_types.h
+93
-93
No files found.
dlls/d3d8/d3d8_private.h
View file @
8869c0f1
...
...
@@ -45,60 +45,60 @@
Macros
=========================================================================== */
/* Not nice, but it lets wined3d support different versions of directx */
#define
D3D8CAPSTOWINE
CAPS(_pD3D8Caps, _pWineCaps) \
_p
WineCaps->DeviceType = (WINED3DDEVTYPE *) &_pD3D8
Caps->DeviceType; \
_p
WineCaps->AdapterOrdinal = &_pD3D8
Caps->AdapterOrdinal; \
_p
WineCaps->Caps = &_pD3D8
Caps->Caps; \
_p
WineCaps->Caps2 = &_pD3D8
Caps->Caps2; \
_p
WineCaps->Caps3 = &_pD3D8
Caps->Caps3; \
_p
WineCaps->PresentationIntervals = &_pD3D8
Caps->PresentationIntervals; \
_p
WineCaps->CursorCaps = &_pD3D8
Caps->CursorCaps; \
_p
WineCaps->DevCaps = &_pD3D8
Caps->DevCaps; \
_p
WineCaps->PrimitiveMiscCaps = &_pD3D8
Caps->PrimitiveMiscCaps; \
_p
WineCaps->RasterCaps = &_pD3D8
Caps->RasterCaps; \
_p
WineCaps->ZCmpCaps = &_pD3D8
Caps->ZCmpCaps; \
_p
WineCaps->SrcBlendCaps = &_pD3D8
Caps->SrcBlendCaps; \
_p
WineCaps->DestBlendCaps = &_pD3D8
Caps->DestBlendCaps; \
_p
WineCaps->AlphaCmpCaps = &_pD3D8
Caps->AlphaCmpCaps; \
_p
WineCaps->ShadeCaps = &_pD3D8
Caps->ShadeCaps; \
_p
WineCaps->TextureCaps = &_pD3D8
Caps->TextureCaps; \
_p
WineCaps->TextureFilterCaps = &_pD3D8
Caps->TextureFilterCaps; \
_p
WineCaps->CubeTextureFilterCaps = &_pD3D8
Caps->CubeTextureFilterCaps; \
_p
WineCaps->VolumeTextureFilterCaps = &_pD3D8
Caps->VolumeTextureFilterCaps; \
_p
WineCaps->TextureAddressCaps = &_pD3D8
Caps->TextureAddressCaps; \
_p
WineCaps->VolumeTextureAddressCaps = &_pD3D8
Caps->VolumeTextureAddressCaps; \
_p
WineCaps->LineCaps = &_pD3D8
Caps->LineCaps; \
_p
WineCaps->MaxTextureWidth = &_pD3D8
Caps->MaxTextureWidth; \
_p
WineCaps->MaxTextureHeight = &_pD3D8
Caps->MaxTextureHeight; \
_p
WineCaps->MaxVolumeExtent = &_pD3D8
Caps->MaxVolumeExtent; \
_p
WineCaps->MaxTextureRepeat = &_pD3D8
Caps->MaxTextureRepeat; \
_p
WineCaps->MaxTextureAspectRatio = &_pD3D8
Caps->MaxTextureAspectRatio; \
_p
WineCaps->MaxAnisotropy = &_pD3D8
Caps->MaxAnisotropy; \
_p
WineCaps->MaxVertexW = &_pD3D8
Caps->MaxVertexW; \
_p
WineCaps->GuardBandLeft = &_pD3D8
Caps->GuardBandLeft; \
_p
WineCaps->GuardBandTop = &_pD3D8
Caps->GuardBandTop; \
_p
WineCaps->GuardBandRight = &_pD3D8
Caps->GuardBandRight; \
_p
WineCaps->GuardBandBottom = &_pD3D8
Caps->GuardBandBottom; \
_p
WineCaps->ExtentsAdjust = &_pD3D8
Caps->ExtentsAdjust; \
_p
WineCaps->StencilCaps = &_pD3D8
Caps->StencilCaps; \
_p
WineCaps->FVFCaps = &_pD3D8
Caps->FVFCaps; \
_p
WineCaps->TextureOpCaps = &_pD3D8
Caps->TextureOpCaps; \
_p
WineCaps->MaxTextureBlendStages = &_pD3D8
Caps->MaxTextureBlendStages; \
_p
WineCaps->MaxSimultaneousTextures = &_pD3D8
Caps->MaxSimultaneousTextures; \
_p
WineCaps->VertexProcessingCaps = &_pD3D8
Caps->VertexProcessingCaps; \
_p
WineCaps->MaxActiveLights = &_pD3D8
Caps->MaxActiveLights; \
_p
WineCaps->MaxUserClipPlanes = &_pD3D8
Caps->MaxUserClipPlanes; \
_p
WineCaps->MaxVertexBlendMatrices = &_pD3D8
Caps->MaxVertexBlendMatrices; \
_p
WineCaps->MaxVertexBlendMatrixIndex = &_pD3D8
Caps->MaxVertexBlendMatrixIndex; \
_p
WineCaps->MaxPointSize = &_pD3D8
Caps->MaxPointSize; \
_p
WineCaps->MaxPrimitiveCount = &_pD3D8
Caps->MaxPrimitiveCount; \
_p
WineCaps->MaxVertexIndex = &_pD3D8
Caps->MaxVertexIndex; \
_p
WineCaps->MaxStreams = &_pD3D8
Caps->MaxStreams; \
_p
WineCaps->MaxStreamStride = &_pD3D8
Caps->MaxStreamStride; \
_p
WineCaps->VertexShaderVersion = &_pD3D8
Caps->VertexShaderVersion; \
_p
WineCaps->MaxVertexShaderConst = &_pD3D8
Caps->MaxVertexShaderConst; \
_p
WineCaps->PixelShaderVersion = &_pD3D8
Caps->PixelShaderVersion; \
_p
WineCaps->PixelShader1xMaxValue = &_pD3D8Caps->MaxPixelShader
Value;
#define
WINECAPSTOD3D8
CAPS(_pD3D8Caps, _pWineCaps) \
_p
D3D8Caps->DeviceType = (D3DDEVTYPE) _pWine
Caps->DeviceType; \
_p
D3D8Caps->AdapterOrdinal = _pWine
Caps->AdapterOrdinal; \
_p
D3D8Caps->Caps = _pWine
Caps->Caps; \
_p
D3D8Caps->Caps2 = _pWine
Caps->Caps2; \
_p
D3D8Caps->Caps3 = _pWine
Caps->Caps3; \
_p
D3D8Caps->PresentationIntervals = _pWine
Caps->PresentationIntervals; \
_p
D3D8Caps->CursorCaps = _pWine
Caps->CursorCaps; \
_p
D3D8Caps->DevCaps = _pWine
Caps->DevCaps; \
_p
D3D8Caps->PrimitiveMiscCaps = _pWine
Caps->PrimitiveMiscCaps; \
_p
D3D8Caps->RasterCaps = _pWine
Caps->RasterCaps; \
_p
D3D8Caps->ZCmpCaps = _pWine
Caps->ZCmpCaps; \
_p
D3D8Caps->SrcBlendCaps = _pWine
Caps->SrcBlendCaps; \
_p
D3D8Caps->DestBlendCaps = _pWine
Caps->DestBlendCaps; \
_p
D3D8Caps->AlphaCmpCaps = _pWine
Caps->AlphaCmpCaps; \
_p
D3D8Caps->ShadeCaps = _pWine
Caps->ShadeCaps; \
_p
D3D8Caps->TextureCaps = _pWine
Caps->TextureCaps; \
_p
D3D8Caps->TextureFilterCaps = _pWine
Caps->TextureFilterCaps; \
_p
D3D8Caps->CubeTextureFilterCaps = _pWine
Caps->CubeTextureFilterCaps; \
_p
D3D8Caps->VolumeTextureFilterCaps = _pWine
Caps->VolumeTextureFilterCaps; \
_p
D3D8Caps->TextureAddressCaps = _pWine
Caps->TextureAddressCaps; \
_p
D3D8Caps->VolumeTextureAddressCaps = _pWine
Caps->VolumeTextureAddressCaps; \
_p
D3D8Caps->LineCaps = _pWine
Caps->LineCaps; \
_p
D3D8Caps->MaxTextureWidth = _pWine
Caps->MaxTextureWidth; \
_p
D3D8Caps->MaxTextureHeight = _pWine
Caps->MaxTextureHeight; \
_p
D3D8Caps->MaxVolumeExtent = _pWine
Caps->MaxVolumeExtent; \
_p
D3D8Caps->MaxTextureRepeat = _pWine
Caps->MaxTextureRepeat; \
_p
D3D8Caps->MaxTextureAspectRatio = _pWine
Caps->MaxTextureAspectRatio; \
_p
D3D8Caps->MaxAnisotropy = _pWine
Caps->MaxAnisotropy; \
_p
D3D8Caps->MaxVertexW = _pWine
Caps->MaxVertexW; \
_p
D3D8Caps->GuardBandLeft = _pWine
Caps->GuardBandLeft; \
_p
D3D8Caps->GuardBandTop = _pWine
Caps->GuardBandTop; \
_p
D3D8Caps->GuardBandRight = _pWine
Caps->GuardBandRight; \
_p
D3D8Caps->GuardBandBottom = _pWine
Caps->GuardBandBottom; \
_p
D3D8Caps->ExtentsAdjust = _pWine
Caps->ExtentsAdjust; \
_p
D3D8Caps->StencilCaps = _pWine
Caps->StencilCaps; \
_p
D3D8Caps->FVFCaps = _pWine
Caps->FVFCaps; \
_p
D3D8Caps->TextureOpCaps = _pWine
Caps->TextureOpCaps; \
_p
D3D8Caps->MaxTextureBlendStages = _pWine
Caps->MaxTextureBlendStages; \
_p
D3D8Caps->MaxSimultaneousTextures = _pWine
Caps->MaxSimultaneousTextures; \
_p
D3D8Caps->VertexProcessingCaps = _pWine
Caps->VertexProcessingCaps; \
_p
D3D8Caps->MaxActiveLights = _pWine
Caps->MaxActiveLights; \
_p
D3D8Caps->MaxUserClipPlanes = _pWine
Caps->MaxUserClipPlanes; \
_p
D3D8Caps->MaxVertexBlendMatrices = _pWine
Caps->MaxVertexBlendMatrices; \
_p
D3D8Caps->MaxVertexBlendMatrixIndex = _pWine
Caps->MaxVertexBlendMatrixIndex; \
_p
D3D8Caps->MaxPointSize = _pWine
Caps->MaxPointSize; \
_p
D3D8Caps->MaxPrimitiveCount = _pWine
Caps->MaxPrimitiveCount; \
_p
D3D8Caps->MaxVertexIndex = _pWine
Caps->MaxVertexIndex; \
_p
D3D8Caps->MaxStreams = _pWine
Caps->MaxStreams; \
_p
D3D8Caps->MaxStreamStride = _pWine
Caps->MaxStreamStride; \
_p
D3D8Caps->VertexShaderVersion = _pWine
Caps->VertexShaderVersion; \
_p
D3D8Caps->MaxVertexShaderConst = _pWine
Caps->MaxVertexShaderConst; \
_p
D3D8Caps->PixelShaderVersion = _pWine
Caps->PixelShaderVersion; \
_p
D3D8Caps->MaxPixelShaderValue = _pWineCaps->PixelShader1xMax
Value;
/* Direct3D8 Interfaces: */
typedef
struct
IDirect3DBaseTexture8Impl
IDirect3DBaseTexture8Impl
;
...
...
dlls/d3d8/device.c
View file @
8869c0f1
...
...
@@ -192,10 +192,10 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetDeviceCaps(LPDIRECT3DDEVICE8 iface
return
D3DERR_INVALIDCALL
;
/* well this is what MSDN says to return */
}
D3D8CAPSTOWINECAPS
(
pCaps
,
pWineCaps
)
EnterCriticalSection
(
&
d3d8_cs
);
hrc
=
IWineD3DDevice_GetDeviceCaps
(
This
->
WineD3DDevice
,
pWineCaps
);
LeaveCriticalSection
(
&
d3d8_cs
);
WINECAPSTOD3D8CAPS
(
pCaps
,
pWineCaps
)
HeapFree
(
GetProcessHeap
(),
0
,
pWineCaps
);
/* D3D8 doesn't support SM 2.0 or higher, so clamp to 1.x */
...
...
dlls/d3d8/directx.c
View file @
8869c0f1
...
...
@@ -231,10 +231,10 @@ static HRESULT WINAPI IDirect3D8Impl_GetDeviceCaps(LPDIRECT3D8 iface, UINT Ada
if
(
pWineCaps
==
NULL
){
return
D3DERR_INVALIDCALL
;
/*well this is what MSDN says to return*/
}
D3D8CAPSTOWINECAPS
(
pCaps
,
pWineCaps
)
EnterCriticalSection
(
&
d3d8_cs
);
hrc
=
IWineD3D_GetDeviceCaps
(
This
->
WineD3D
,
Adapter
,
DeviceType
,
pWineCaps
);
LeaveCriticalSection
(
&
d3d8_cs
);
WINECAPSTOD3D8CAPS
(
pCaps
,
pWineCaps
)
HeapFree
(
GetProcessHeap
(),
0
,
pWineCaps
);
/* D3D8 doesn't support SM 2.0 or higher, so clamp to 1.x */
...
...
dlls/d3d9/d3d9_private.h
View file @
8869c0f1
This diff is collapsed.
Click to expand it.
dlls/d3d9/device.c
View file @
8869c0f1
...
...
@@ -183,10 +183,10 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDeviceCaps(LPDIRECT3DDEVICE9EX i
}
memset
(
pCaps
,
0
,
sizeof
(
*
pCaps
));
D3D9CAPSTOWINECAPS
(
pCaps
,
pWineCaps
)
EnterCriticalSection
(
&
d3d9_cs
);
hrc
=
IWineD3DDevice_GetDeviceCaps
(
This
->
WineD3DDevice
,
pWineCaps
);
LeaveCriticalSection
(
&
d3d9_cs
);
WINECAPSTOD3D9CAPS
(
pCaps
,
pWineCaps
)
HeapFree
(
GetProcessHeap
(),
0
,
pWineCaps
);
/* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
...
...
dlls/d3d9/directx.c
View file @
8869c0f1
...
...
@@ -303,10 +303,10 @@ static HRESULT WINAPI IDirect3D9Impl_GetDeviceCaps(LPDIRECT3D9EX iface, UINT Ada
return
D3DERR_INVALIDCALL
;
/*well this is what MSDN says to return*/
}
memset
(
pCaps
,
0
,
sizeof
(
*
pCaps
));
D3D9CAPSTOWINECAPS
(
pCaps
,
pWineCaps
)
EnterCriticalSection
(
&
d3d9_cs
);
hrc
=
IWineD3D_GetDeviceCaps
(
This
->
WineD3D
,
Adapter
,
DeviceType
,
pWineCaps
);
LeaveCriticalSection
(
&
d3d9_cs
);
WINECAPSTOD3D9CAPS
(
pCaps
,
pWineCaps
)
HeapFree
(
GetProcessHeap
(),
0
,
pWineCaps
);
/* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
...
...
dlls/ddraw/direct3d.c
View file @
8869c0f1
...
...
@@ -1260,102 +1260,9 @@ IDirect3DImpl_GetCaps(IWineD3D *WineD3D,
HRESULT
hr
;
/* Some Variables to asign to the pointers in WCaps */
WINED3DDEVTYPE
DevType
;
UINT
dummy_uint
;
float
dummy_float
;
DWORD
dummy_dword
,
MaxTextureBlendStages
,
MaxSimultaneousTextures
;
DWORD
MaxUserClipPlanes
,
MaxVertexBlendMatrices
;
TRACE
(
"()->(%p,%p,%p
\n
"
,
WineD3D
,
Desc123
,
Desc7
);
/* Asign the pointers in WCaps */
WCaps
.
DeviceType
=
&
DevType
;
WCaps
.
AdapterOrdinal
=
&
dummy_uint
;
WCaps
.
Caps
=
&
dummy_dword
;
WCaps
.
Caps2
=
&
dummy_dword
;
WCaps
.
Caps3
=
&
dummy_dword
;
WCaps
.
PresentationIntervals
=
&
dummy_dword
;
WCaps
.
CursorCaps
=
&
dummy_dword
;
WCaps
.
DevCaps
=
&
Desc7
->
dwDevCaps
;
WCaps
.
PrimitiveMiscCaps
=
&
dummy_dword
;
WCaps
.
RasterCaps
=
&
Desc7
->
dpcLineCaps
.
dwRasterCaps
;
WCaps
.
ZCmpCaps
=
&
Desc7
->
dpcLineCaps
.
dwZCmpCaps
;
WCaps
.
SrcBlendCaps
=
&
Desc7
->
dpcLineCaps
.
dwSrcBlendCaps
;
WCaps
.
DestBlendCaps
=
&
Desc7
->
dpcLineCaps
.
dwDestBlendCaps
;
WCaps
.
AlphaCmpCaps
=
&
Desc7
->
dpcLineCaps
.
dwAlphaCmpCaps
;
WCaps
.
ShadeCaps
=
&
Desc7
->
dpcLineCaps
.
dwShadeCaps
;
WCaps
.
TextureCaps
=
&
Desc7
->
dpcLineCaps
.
dwTextureCaps
;
WCaps
.
TextureFilterCaps
=
&
Desc7
->
dpcLineCaps
.
dwTextureFilterCaps
;
WCaps
.
CubeTextureFilterCaps
=
&
dummy_dword
;
WCaps
.
VolumeTextureFilterCaps
=
&
dummy_dword
;
WCaps
.
TextureAddressCaps
=
&
Desc7
->
dpcLineCaps
.
dwTextureAddressCaps
;
WCaps
.
VolumeTextureAddressCaps
=
&
dummy_dword
;
WCaps
.
LineCaps
=
&
dummy_dword
;
WCaps
.
MaxTextureWidth
=
&
Desc7
->
dwMaxTextureWidth
;
WCaps
.
MaxTextureHeight
=
&
Desc7
->
dwMaxTextureHeight
;
WCaps
.
MaxVolumeExtent
=
&
dummy_dword
;
WCaps
.
MaxTextureRepeat
=
&
Desc7
->
dwMaxTextureRepeat
;
WCaps
.
MaxTextureAspectRatio
=
&
Desc7
->
dwMaxTextureAspectRatio
;
WCaps
.
MaxAnisotropy
=
&
Desc7
->
dwMaxAnisotropy
;
WCaps
.
MaxVertexW
=
&
Desc7
->
dvMaxVertexW
;
WCaps
.
GuardBandLeft
=
&
Desc7
->
dvGuardBandLeft
;
WCaps
.
GuardBandTop
=
&
Desc7
->
dvGuardBandTop
;
WCaps
.
GuardBandRight
=
&
Desc7
->
dvGuardBandRight
;
WCaps
.
GuardBandBottom
=
&
Desc7
->
dvGuardBandBottom
;
WCaps
.
ExtentsAdjust
=
&
Desc7
->
dvExtentsAdjust
;
WCaps
.
StencilCaps
=
&
Desc7
->
dwStencilCaps
;
WCaps
.
FVFCaps
=
&
Desc7
->
dwFVFCaps
;
WCaps
.
TextureOpCaps
=
&
Desc7
->
dwTextureOpCaps
;
WCaps
.
MaxTextureBlendStages
=
&
MaxTextureBlendStages
;
WCaps
.
MaxSimultaneousTextures
=
&
MaxSimultaneousTextures
;
WCaps
.
VertexProcessingCaps
=
&
Desc7
->
dwVertexProcessingCaps
;
WCaps
.
MaxActiveLights
=
&
Desc7
->
dwMaxActiveLights
;
WCaps
.
MaxUserClipPlanes
=
&
MaxUserClipPlanes
;
WCaps
.
MaxVertexBlendMatrices
=
&
MaxVertexBlendMatrices
;
WCaps
.
MaxVertexBlendMatrixIndex
=
&
dummy_dword
;
WCaps
.
MaxPointSize
=
&
dummy_float
;
WCaps
.
MaxPrimitiveCount
=
&
dummy_dword
;
WCaps
.
MaxVertexIndex
=
&
dummy_dword
;
WCaps
.
MaxStreams
=
&
dummy_dword
;
WCaps
.
MaxStreamStride
=
&
dummy_dword
;
WCaps
.
VertexShaderVersion
=
&
dummy_dword
;
WCaps
.
MaxVertexShaderConst
=
&
dummy_dword
;
WCaps
.
PixelShaderVersion
=
&
dummy_dword
;
WCaps
.
PixelShader1xMaxValue
=
&
dummy_float
;
/* These are dx9 only, set them to NULL */
WCaps
.
DevCaps2
=
NULL
;
WCaps
.
MaxNpatchTessellationLevel
=
NULL
;
WCaps
.
Reserved5
=
NULL
;
WCaps
.
MasterAdapterOrdinal
=
NULL
;
WCaps
.
AdapterOrdinalInGroup
=
NULL
;
WCaps
.
NumberOfAdaptersInGroup
=
NULL
;
WCaps
.
DeclTypes
=
NULL
;
WCaps
.
NumSimultaneousRTs
=
NULL
;
WCaps
.
StretchRectFilterCaps
=
NULL
;
/* WCaps.VS20Caps = NULL; */
/* WCaps.PS20Caps = NULL; */
WCaps
.
VertexTextureFilterCaps
=
NULL
;
WCaps
.
MaxVShaderInstructionsExecuted
=
NULL
;
WCaps
.
MaxPShaderInstructionsExecuted
=
NULL
;
WCaps
.
MaxVertexShader30InstructionSlots
=
NULL
;
WCaps
.
MaxPixelShader30InstructionSlots
=
NULL
;
WCaps
.
Reserved2
=
NULL
;
WCaps
.
Reserved3
=
NULL
;
/* Now get the caps */
memset
(
&
WCaps
,
0
,
sizeof
(
WCaps
));
EnterCriticalSection
(
&
ddraw_cs
);
hr
=
IWineD3D_GetDeviceCaps
(
WineD3D
,
0
,
WINED3DDEVTYPE_HAL
,
&
WCaps
);
LeaveCriticalSection
(
&
ddraw_cs
);
...
...
@@ -1364,6 +1271,40 @@ IDirect3DImpl_GetCaps(IWineD3D *WineD3D,
return
hr
;
}
/* Copy the results into the d3d7 and d3d3 structures */
Desc7
->
dwDevCaps
=
WCaps
.
DevCaps
;
Desc7
->
dpcLineCaps
.
dwRasterCaps
=
WCaps
.
RasterCaps
;
Desc7
->
dpcLineCaps
.
dwZCmpCaps
=
WCaps
.
ZCmpCaps
;
Desc7
->
dpcLineCaps
.
dwSrcBlendCaps
=
WCaps
.
SrcBlendCaps
;
Desc7
->
dpcLineCaps
.
dwDestBlendCaps
=
WCaps
.
DestBlendCaps
;
Desc7
->
dpcLineCaps
.
dwAlphaCmpCaps
=
WCaps
.
AlphaCmpCaps
;
Desc7
->
dpcLineCaps
.
dwShadeCaps
=
WCaps
.
ShadeCaps
;
Desc7
->
dpcLineCaps
.
dwTextureCaps
=
WCaps
.
TextureCaps
;
Desc7
->
dpcLineCaps
.
dwTextureFilterCaps
=
WCaps
.
TextureFilterCaps
;
Desc7
->
dpcLineCaps
.
dwTextureAddressCaps
=
WCaps
.
TextureAddressCaps
;
Desc7
->
dwMaxTextureWidth
=
WCaps
.
MaxTextureWidth
;
Desc7
->
dwMaxTextureHeight
=
WCaps
.
MaxTextureHeight
;
Desc7
->
dwMaxTextureRepeat
=
WCaps
.
MaxTextureRepeat
;
Desc7
->
dwMaxTextureAspectRatio
=
WCaps
.
MaxTextureAspectRatio
;
Desc7
->
dwMaxAnisotropy
=
WCaps
.
MaxAnisotropy
;
Desc7
->
dvMaxVertexW
=
WCaps
.
MaxVertexW
;
Desc7
->
dvGuardBandLeft
=
WCaps
.
GuardBandLeft
;
Desc7
->
dvGuardBandTop
=
WCaps
.
GuardBandTop
;
Desc7
->
dvGuardBandRight
=
WCaps
.
GuardBandRight
;
Desc7
->
dvGuardBandBottom
=
WCaps
.
GuardBandBottom
;
Desc7
->
dvExtentsAdjust
=
WCaps
.
ExtentsAdjust
;
Desc7
->
dwStencilCaps
=
WCaps
.
StencilCaps
;
Desc7
->
dwFVFCaps
=
WCaps
.
FVFCaps
;
Desc7
->
dwTextureOpCaps
=
WCaps
.
TextureOpCaps
;
Desc7
->
dwVertexProcessingCaps
=
WCaps
.
VertexProcessingCaps
;
Desc7
->
dwMaxActiveLights
=
WCaps
.
MaxActiveLights
;
/* Remove all non-d3d7 caps */
Desc7
->
dwDevCaps
&=
(
D3DDEVCAPS_FLOATTLVERTEX
|
D3DDEVCAPS_SORTINCREASINGZ
|
D3DDEVCAPS_SORTDECREASINGZ
|
...
...
@@ -1489,15 +1430,15 @@ IDirect3DImpl_GetCaps(IWineD3D *WineD3D,
Desc7
->
dwMinTextureHeight
=
1
;
/* Convert DWORDs safely to WORDs */
if
(
MaxTextureBlendStages
>
65535
)
Desc7
->
wMaxTextureBlendStages
=
65535
;
else
Desc7
->
wMaxTextureBlendStages
=
(
WORD
)
MaxTextureBlendStages
;
if
(
MaxSimultaneousTextures
>
65535
)
Desc7
->
wMaxSimultaneousTextures
=
65535
;
else
Desc7
->
wMaxSimultaneousTextures
=
(
WORD
)
MaxSimultaneousTextures
;
if
(
MaxUserClipPlanes
>
65535
)
Desc7
->
wMaxUserClipPlanes
=
65535
;
else
Desc7
->
wMaxUserClipPlanes
=
(
WORD
)
MaxUserClipPlanes
;
if
(
MaxVertexBlendMatrices
>
65535
)
Desc7
->
wMaxVertexBlendMatrices
=
65535
;
else
Desc7
->
wMaxVertexBlendMatrices
=
(
WORD
)
MaxVertexBlendMatrices
;
if
(
WCaps
.
MaxTextureBlendStages
>
65535
)
Desc7
->
wMaxTextureBlendStages
=
65535
;
else
Desc7
->
wMaxTextureBlendStages
=
(
WORD
)
WCaps
.
MaxTextureBlendStages
;
if
(
WCaps
.
MaxSimultaneousTextures
>
65535
)
Desc7
->
wMaxSimultaneousTextures
=
65535
;
else
Desc7
->
wMaxSimultaneousTextures
=
(
WORD
)
WCaps
.
MaxSimultaneousTextures
;
if
(
WCaps
.
MaxUserClipPlanes
>
65535
)
Desc7
->
wMaxUserClipPlanes
=
65535
;
else
Desc7
->
wMaxUserClipPlanes
=
(
WORD
)
WCaps
.
MaxUserClipPlanes
;
if
(
WCaps
.
MaxVertexBlendMatrices
>
65535
)
Desc7
->
wMaxVertexBlendMatrices
=
65535
;
else
Desc7
->
wMaxVertexBlendMatrices
=
(
WORD
)
WCaps
.
MaxVertexBlendMatrices
;
Desc7
->
deviceGUID
=
IID_IDirect3DTnLHalDevice
;
...
...
dlls/wined3d/directx.c
View file @
8869c0f1
This diff is collapsed.
Click to expand it.
include/wine/wined3d_types.h
View file @
8869c0f1
...
...
@@ -1096,111 +1096,111 @@ typedef struct _WINED3DINDEXBUFFER_DESC {
*/
typedef
struct
_WINED3DVSHADERCAPS2_0
{
DWORD
*
Caps
;
INT
*
DynamicFlowControlDepth
;
INT
*
NumTemps
;
INT
*
StaticFlowControlDepth
;
DWORD
Caps
;
INT
DynamicFlowControlDepth
;
INT
NumTemps
;
INT
StaticFlowControlDepth
;
}
WINED3DVSHADERCAPS2_0
;
typedef
struct
_WINED3DPSHADERCAPS2_0
{
DWORD
*
Caps
;
INT
*
DynamicFlowControlDepth
;
INT
*
NumTemps
;
INT
*
StaticFlowControlDepth
;
INT
*
NumInstructionSlots
;
DWORD
Caps
;
INT
DynamicFlowControlDepth
;
INT
NumTemps
;
INT
StaticFlowControlDepth
;
INT
NumInstructionSlots
;
}
WINED3DPSHADERCAPS2_0
;
typedef
struct
_WINED3DCAPS
{
WINED3DDEVTYPE
*
DeviceType
;
UINT
*
AdapterOrdinal
;
DWORD
*
Caps
;
DWORD
*
Caps2
;
DWORD
*
Caps3
;
DWORD
*
PresentationIntervals
;
DWORD
*
CursorCaps
;
DWORD
*
DevCaps
;
DWORD
*
PrimitiveMiscCaps
;
DWORD
*
RasterCaps
;
DWORD
*
ZCmpCaps
;
DWORD
*
SrcBlendCaps
;
DWORD
*
DestBlendCaps
;
DWORD
*
AlphaCmpCaps
;
DWORD
*
ShadeCaps
;
DWORD
*
TextureCaps
;
DWORD
*
TextureFilterCaps
;
DWORD
*
CubeTextureFilterCaps
;
DWORD
*
VolumeTextureFilterCaps
;
DWORD
*
TextureAddressCaps
;
DWORD
*
VolumeTextureAddressCaps
;
DWORD
*
LineCaps
;
DWORD
*
MaxTextureWidth
;
DWORD
*
MaxTextureHeight
;
DWORD
*
MaxVolumeExtent
;
DWORD
*
MaxTextureRepeat
;
DWORD
*
MaxTextureAspectRatio
;
DWORD
*
MaxAnisotropy
;
float
*
MaxVertexW
;
float
*
GuardBandLeft
;
float
*
GuardBandTop
;
float
*
GuardBandRight
;
float
*
GuardBandBottom
;
float
*
ExtentsAdjust
;
DWORD
*
StencilCaps
;
DWORD
*
FVFCaps
;
DWORD
*
TextureOpCaps
;
DWORD
*
MaxTextureBlendStages
;
DWORD
*
MaxSimultaneousTextures
;
DWORD
*
VertexProcessingCaps
;
DWORD
*
MaxActiveLights
;
DWORD
*
MaxUserClipPlanes
;
DWORD
*
MaxVertexBlendMatrices
;
DWORD
*
MaxVertexBlendMatrixIndex
;
float
*
MaxPointSize
;
DWORD
*
MaxPrimitiveCount
;
DWORD
*
MaxVertexIndex
;
DWORD
*
MaxStreams
;
DWORD
*
MaxStreamStride
;
DWORD
*
VertexShaderVersion
;
DWORD
*
MaxVertexShaderConst
;
DWORD
*
PixelShaderVersion
;
float
*
PixelShader1xMaxValue
;
WINED3DDEVTYPE
DeviceType
;
UINT
AdapterOrdinal
;
DWORD
Caps
;
DWORD
Caps2
;
DWORD
Caps3
;
DWORD
PresentationIntervals
;
DWORD
CursorCaps
;
DWORD
DevCaps
;
DWORD
PrimitiveMiscCaps
;
DWORD
RasterCaps
;
DWORD
ZCmpCaps
;
DWORD
SrcBlendCaps
;
DWORD
DestBlendCaps
;
DWORD
AlphaCmpCaps
;
DWORD
ShadeCaps
;
DWORD
TextureCaps
;
DWORD
TextureFilterCaps
;
DWORD
CubeTextureFilterCaps
;
DWORD
VolumeTextureFilterCaps
;
DWORD
TextureAddressCaps
;
DWORD
VolumeTextureAddressCaps
;
DWORD
LineCaps
;
DWORD
MaxTextureWidth
;
DWORD
MaxTextureHeight
;
DWORD
MaxVolumeExtent
;
DWORD
MaxTextureRepeat
;
DWORD
MaxTextureAspectRatio
;
DWORD
MaxAnisotropy
;
float
MaxVertexW
;
float
GuardBandLeft
;
float
GuardBandTop
;
float
GuardBandRight
;
float
GuardBandBottom
;
float
ExtentsAdjust
;
DWORD
StencilCaps
;
DWORD
FVFCaps
;
DWORD
TextureOpCaps
;
DWORD
MaxTextureBlendStages
;
DWORD
MaxSimultaneousTextures
;
DWORD
VertexProcessingCaps
;
DWORD
MaxActiveLights
;
DWORD
MaxUserClipPlanes
;
DWORD
MaxVertexBlendMatrices
;
DWORD
MaxVertexBlendMatrixIndex
;
float
MaxPointSize
;
DWORD
MaxPrimitiveCount
;
DWORD
MaxVertexIndex
;
DWORD
MaxStreams
;
DWORD
MaxStreamStride
;
DWORD
VertexShaderVersion
;
DWORD
MaxVertexShaderConst
;
DWORD
PixelShaderVersion
;
float
PixelShader1xMaxValue
;
/* DX 9 */
DWORD
*
DevCaps2
;
DWORD
DevCaps2
;
float
*
MaxNpatchTessellationLevel
;
DWORD
*
Reserved5
;
/*undocumented*/
float
MaxNpatchTessellationLevel
;
DWORD
Reserved5
;
/*undocumented*/
UINT
*
MasterAdapterOrdinal
;
UINT
*
AdapterOrdinalInGroup
;
UINT
*
NumberOfAdaptersInGroup
;
DWORD
*
DeclTypes
;
DWORD
*
NumSimultaneousRTs
;
DWORD
*
StretchRectFilterCaps
;
UINT
MasterAdapterOrdinal
;
UINT
AdapterOrdinalInGroup
;
UINT
NumberOfAdaptersInGroup
;
DWORD
DeclTypes
;
DWORD
NumSimultaneousRTs
;
DWORD
StretchRectFilterCaps
;
WINED3DVSHADERCAPS2_0
VS20Caps
;
WINED3DPSHADERCAPS2_0
PS20Caps
;
DWORD
*
VertexTextureFilterCaps
;
DWORD
*
MaxVShaderInstructionsExecuted
;
DWORD
*
MaxPShaderInstructionsExecuted
;
DWORD
*
MaxVertexShader30InstructionSlots
;
DWORD
*
MaxPixelShader30InstructionSlots
;
DWORD
*
Reserved2
;
/* Not in the microsoft headers but documented */
DWORD
*
Reserved3
;
DWORD
VertexTextureFilterCaps
;
DWORD
MaxVShaderInstructionsExecuted
;
DWORD
MaxPShaderInstructionsExecuted
;
DWORD
MaxVertexShader30InstructionSlots
;
DWORD
MaxPixelShader30InstructionSlots
;
DWORD
Reserved2
;
/* Not in the microsoft headers but documented */
DWORD
Reserved3
;
}
WINED3DCAPS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment