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
cbcf6998
Commit
cbcf6998
authored
Sep 15, 2009
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: D3DXAssembleShaderFromResource implementation.
parent
c31121dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
2 deletions
+43
-2
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+2
-2
shader.c
dlls/d3dx9_36/shader.c
+41
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
cbcf6998
@ stdcall D3DXAssembleShader(ptr long ptr ptr long ptr ptr)
@ stdcall D3DXAssembleShaderFromFileA(str ptr ptr long ptr ptr)
@ stdcall D3DXAssembleShaderFromFileW(wstr ptr ptr long ptr ptr)
@ st
ub D3DXAssembleShaderFromResourceA
@ st
ub D3DXAssembleShaderFromResourceW
@ st
dcall D3DXAssembleShaderFromResourceA(long str ptr ptr long ptr ptr)
@ st
dcall D3DXAssembleShaderFromResourceW(long wstr ptr ptr long ptr ptr)
@ stdcall D3DXBoxBoundProbe(ptr ptr ptr ptr)
@ stub D3DXCheckCubeTextureRequirements
@ stub D3DXCheckTextureRequirements
...
...
dlls/d3dx9_36/shader.c
View file @
cbcf6998
...
...
@@ -23,6 +23,7 @@
#include "windef.h"
#include "wingdi.h"
#include "d3dx9.h"
#include "d3dx9_36_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
...
...
@@ -179,3 +180,43 @@ HRESULT WINAPI D3DXAssembleShaderFromFileW(LPCWSTR filename,
FIXME
(
"stub
\n
"
);
return
D3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
D3DXAssembleShaderFromResourceA
(
HMODULE
module
,
LPCSTR
resource
,
CONST
D3DXMACRO
*
defines
,
LPD3DXINCLUDE
include
,
DWORD
flags
,
LPD3DXBUFFER
*
shader
,
LPD3DXBUFFER
*
error_messages
)
{
HRSRC
res
;
LPCSTR
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceA
(
module
,
resource
,
(
LPCSTR
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
LPVOID
*
)
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXAssembleShader
(
buffer
,
len
,
defines
,
include
,
flags
,
shader
,
error_messages
);
}
HRESULT
WINAPI
D3DXAssembleShaderFromResourceW
(
HMODULE
module
,
LPCWSTR
resource
,
CONST
D3DXMACRO
*
defines
,
LPD3DXINCLUDE
include
,
DWORD
flags
,
LPD3DXBUFFER
*
shader
,
LPD3DXBUFFER
*
error_messages
)
{
HRSRC
res
;
LPCSTR
buffer
;
DWORD
len
;
if
(
!
(
res
=
FindResourceW
(
module
,
resource
,
(
LPCWSTR
)
RT_RCDATA
)))
return
D3DXERR_INVALIDDATA
;
if
(
FAILED
(
load_resource_into_memory
(
module
,
res
,
(
LPVOID
*
)
&
buffer
,
&
len
)))
return
D3DXERR_INVALIDDATA
;
return
D3DXAssembleShader
(
buffer
,
len
,
defines
,
include
,
flags
,
shader
,
error_messages
);
}
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