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
9b572170
Commit
9b572170
authored
Aug 01, 2008
by
Luis C. Busquets Pérez
Committed by
Alexandre Julliard
Aug 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implementation of D3DXGetVertexShaderProfile.
parent
457efd55
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
shader.c
dlls/d3dx9_36/shader.c
+29
-0
d3dx9shader.h
include/d3dx9shader.h
+1
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
9b572170
...
...
@@ -164,7 +164,7 @@
@ stub D3DXGetShaderSamplers
@ stdcall D3DXGetShaderSize(ptr)
@ stdcall D3DXGetShaderVersion(ptr)
@ st
ub D3DXGetVertexShaderProfile
@ st
dcall D3DXGetVertexShaderProfile(ptr)
@ stdcall D3DXIntersect(ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr) d3dx8.D3DXIntersect
@ stdcall D3DXIntersectSubset(ptr long ptr ptr ptr ptr ptr ptr ptr ptr ptr) d3dx8.D3DXIntersectSubset
@ stdcall D3DXIntersectTri(ptr ptr ptr ptr ptr ptr ptr ptr) d3dx8.D3DXIntersectTri
...
...
dlls/d3dx9_36/shader.c
View file @
9b572170
...
...
@@ -102,3 +102,32 @@ DWORD WINAPI D3DXGetShaderVersion(const DWORD *byte_code)
return
byte_code
?
*
byte_code
:
0
;
}
LPCSTR
WINAPI
D3DXGetVertexShaderProfile
(
LPDIRECT3DDEVICE9
device
)
{
D3DCAPS9
caps
;
TRACE
(
"(void): relay
\n
"
);
if
(
!
device
)
return
NULL
;
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
switch
(
caps
.
VertexShaderVersion
)
{
case
D3DVS_VERSION
(
1
,
1
):
return
"vs_1_1"
;
case
D3DVS_VERSION
(
2
,
0
):
if
((
caps
.
VS20Caps
.
NumTemps
>=
13
)
&&
(
caps
.
VS20Caps
.
DynamicFlowControlDepth
=
24
)
&&
(
caps
.
VS20Caps
.
Caps
&
D3DPS20CAPS_PREDICATION
))
{
return
"vs_2_a"
;
}
return
"vs_2_0"
;
case
D3DVS_VERSION
(
3
,
0
):
return
"vs_3_0"
;
}
return
NULL
;
}
include/d3dx9shader.h
View file @
9b572170
...
...
@@ -28,6 +28,7 @@ extern "C" {
LPCSTR
WINAPI
D3DXGetPixelShaderProfile
(
LPDIRECT3DDEVICE9
device
);
UINT
WINAPI
D3DXGetShaderSize
(
const
DWORD
*
byte_code
);
DWORD
WINAPI
D3DXGetShaderVersion
(
const
DWORD
*
byte_code
);
LPCSTR
WINAPI
D3DXGetVertexShaderProfile
(
LPDIRECT3DDEVICE9
device
);
#ifdef __cplusplus
}
...
...
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