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
9a93a491
Commit
9a93a491
authored
Jul 14, 2008
by
Luis Busquets
Committed by
Alexandre Julliard
Jul 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement D3DXGetShaderSize().
parent
5299795a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
2 deletions
+88
-2
Makefile.in
dlls/d3dx9_36/Makefile.in
+2
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
shader.c
dlls/d3dx9_36/shader.c
+49
-0
Makefile.in
include/Makefile.in
+1
-0
d3dx9.h
include/d3dx9.h
+1
-0
d3dx9shader.h
include/d3dx9shader.h
+34
-0
No files found.
dlls/d3dx9_36/Makefile.in
View file @
9a93a491
...
...
@@ -9,7 +9,8 @@ IMPORTS = d3d9 d3dx8 kernel32
C_SRCS
=
\
d3dx9_36_main.c
\
font.c
\
math.c
math.c
\
shader.c
RC_SRCS
=
version.rc
...
...
dlls/d3dx9_36/d3dx9_36.spec
View file @
9a93a491
...
...
@@ -162,7 +162,7 @@
@ stub D3DXGetShaderInputSemantics
@ stub D3DXGetShaderOutputSemantics
@ stub D3DXGetShaderSamplers
@ st
ub D3DXGetShaderSize
@ st
dcall D3DXGetShaderSize(ptr)
@ stub D3DXGetShaderVersion
@ stub D3DXGetVertexShaderProfile
@ stdcall D3DXIntersect(ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr) d3dx8.D3DXIntersect
...
...
dlls/d3dx9_36/shader.c
0 → 100644
View file @
9a93a491
/*
* Copyright 2008 Luis Busquets
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include "wine/debug.h"
#include "windef.h"
#include "wingdi.h"
#include "d3dx9.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
UINT
WINAPI
D3DXGetShaderSize
(
const
DWORD
*
byte_code
)
{
const
DWORD
*
ptr
=
byte_code
;
TRACE
(
"byte_code %p
\n
"
,
byte_code
);
if
(
!
ptr
)
return
0
;
/* Look for the END token, skipping the VERSION token */
while
(
*++
ptr
!=
D3DSIO_END
)
{
/* Skip comments */
if
((
*
ptr
&
D3DSI_OPCODE_MASK
)
==
D3DSIO_COMMENT
)
{
ptr
+=
((
*
ptr
&
D3DSI_COMMENTSIZE_MASK
)
>>
D3DSI_COMMENTSIZE_SHIFT
);
}
}
++
ptr
;
/* Return the shader size in bytes */
return
(
ptr
-
byte_code
)
*
sizeof
(
*
ptr
);
}
include/Makefile.in
View file @
9a93a491
...
...
@@ -133,6 +133,7 @@ SRCDIR_INCLUDES = \
d3dx9core.h
\
d3dx9math.h
\
d3dx9math.inl
\
d3dx9shader.h
\
d3dx9tex.h
\
dbghelp.h
\
dbinit.idl
\
...
...
include/d3dx9.h
View file @
9a93a491
...
...
@@ -24,6 +24,7 @@
#include "d3d9.h"
#include "d3dx9math.h"
#include "d3dx9core.h"
#include "d3dx9shader.h"
#include "d3dx9tex.h"
#define _FACDD 0x876
...
...
include/d3dx9shader.h
0 → 100644
View file @
9a93a491
/*
* Copyright 2008 Luis Busquets
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __D3DX9SHADER_H__
#define __D3DX9SHADER_H__
#include "d3dx9.h"
#ifdef __cplusplus
extern
"C"
{
#endif
UINT
WINAPI
D3DXGetShaderSize
(
const
DWORD
*
byte_code
);
#ifdef __cplusplus
}
#endif
#endif
/* __D3DX9SHADER_H__ */
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