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
457efd55
Commit
457efd55
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 D3DXGetPixelShaderProfile.
parent
42fd3199
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
1 deletion
+50
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
shader.c
dlls/d3dx9_36/shader.c
+48
-0
d3dx9shader.h
include/d3dx9shader.h
+1
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
457efd55
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
@ stdcall D3DXGetImageInfoFromFileW(ptr ptr) d3dx8.D3DXGetImageInfoFromFileW
@ stdcall D3DXGetImageInfoFromFileW(ptr ptr) d3dx8.D3DXGetImageInfoFromFileW
@ stdcall D3DXGetImageInfoFromResourceA(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceA
@ stdcall D3DXGetImageInfoFromResourceA(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceA
@ stdcall D3DXGetImageInfoFromResourceW(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceW
@ stdcall D3DXGetImageInfoFromResourceW(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceW
@ st
ub D3DXGetPixelShaderProfile
@ st
dcall D3DXGetPixelShaderProfile(ptr)
@ stub D3DXGetShaderConstantTable
@ stub D3DXGetShaderConstantTable
@ stub D3DXGetShaderConstantTableEx
@ stub D3DXGetShaderConstantTableEx
@ stub D3DXGetShaderInputSemantics
@ stub D3DXGetShaderInputSemantics
...
...
dlls/d3dx9_36/shader.c
View file @
457efd55
...
@@ -25,6 +25,54 @@
...
@@ -25,6 +25,54 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
LPCSTR
WINAPI
D3DXGetPixelShaderProfile
(
LPDIRECT3DDEVICE9
device
)
{
D3DCAPS9
caps
;
TRACE
(
"(void): relay
\n
"
);
if
(
!
device
)
return
NULL
;
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
switch
(
caps
.
PixelShaderVersion
)
{
case
D3DPS_VERSION
(
1
,
1
):
return
"ps_1_1"
;
case
D3DPS_VERSION
(
1
,
2
):
return
"ps_1_2"
;
case
D3DPS_VERSION
(
1
,
3
):
return
"ps_1_3"
;
case
D3DPS_VERSION
(
1
,
4
):
return
"ps_1_4"
;
case
D3DPS_VERSION
(
2
,
0
):
if
((
caps
.
PS20Caps
.
NumTemps
>=
22
)
&&
(
caps
.
PS20Caps
.
Caps
&
D3DPS20CAPS_ARBITRARYSWIZZLE
)
&&
(
caps
.
PS20Caps
.
Caps
&
D3DPS20CAPS_GRADIENTINSTRUCTIONS
)
&&
(
caps
.
PS20Caps
.
Caps
&
D3DPS20CAPS_PREDICATION
)
&&
(
caps
.
PS20Caps
.
Caps
&
D3DPS20CAPS_NODEPENDENTREADLIMIT
)
&&
(
caps
.
PS20Caps
.
Caps
&
D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT
))
{
return
"ps_2_a"
;
}
if
((
caps
.
PS20Caps
.
NumTemps
>=
32
)
&&
(
caps
.
PS20Caps
.
Caps
&
D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT
))
{
return
"ps_2_b"
;
}
return
"ps_2_0"
;
case
D3DPS_VERSION
(
3
,
0
):
return
"ps_3_0"
;
}
return
NULL
;
}
UINT
WINAPI
D3DXGetShaderSize
(
const
DWORD
*
byte_code
)
UINT
WINAPI
D3DXGetShaderSize
(
const
DWORD
*
byte_code
)
{
{
const
DWORD
*
ptr
=
byte_code
;
const
DWORD
*
ptr
=
byte_code
;
...
...
include/d3dx9shader.h
View file @
457efd55
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
LPCSTR
WINAPI
D3DXGetPixelShaderProfile
(
LPDIRECT3DDEVICE9
device
);
UINT
WINAPI
D3DXGetShaderSize
(
const
DWORD
*
byte_code
);
UINT
WINAPI
D3DXGetShaderSize
(
const
DWORD
*
byte_code
);
DWORD
WINAPI
D3DXGetShaderVersion
(
const
DWORD
*
byte_code
);
DWORD
WINAPI
D3DXGetShaderVersion
(
const
DWORD
*
byte_code
);
...
...
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