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
39d6f648
Commit
39d6f648
authored
Oct 29, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Add a separate function for d3d10_geometry_shader initialization.
parent
bf10dbe8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+2
-1
device.c
dlls/d3d10core/device.c
+8
-2
shader.c
dlls/d3d10core/shader.c
+9
-1
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
39d6f648
...
...
@@ -145,13 +145,14 @@ HRESULT d3d10_vertex_shader_init(struct d3d10_vertex_shader *shader, struct d3d1
const
void
*
byte_code
,
SIZE_T
byte_code_length
)
DECLSPEC_HIDDEN
;
/* ID3D10GeometryShader */
extern
const
struct
ID3D10GeometryShaderVtbl
d3d10_geometry_shader_vtbl
DECLSPEC_HIDDEN
;
struct
d3d10_geometry_shader
{
const
struct
ID3D10GeometryShaderVtbl
*
vtbl
;
LONG
refcount
;
};
HRESULT
d3d10_geometry_shader_init
(
struct
d3d10_geometry_shader
*
shader
);
/* ID3D10PixelShader */
struct
d3d10_pixel_shader
{
...
...
dlls/d3d10core/device.c
View file @
39d6f648
...
...
@@ -965,6 +965,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device
const
void
*
byte_code
,
SIZE_T
byte_code_length
,
ID3D10GeometryShader
**
shader
)
{
struct
d3d10_geometry_shader
*
object
;
HRESULT
hr
;
FIXME
(
"iface %p, byte_code %p, byte_code_length %lu, shader %p stub!
\n
"
,
iface
,
byte_code
,
byte_code_length
,
shader
);
...
...
@@ -976,9 +977,14 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device
return
E_OUTOFMEMORY
;
}
object
->
vtbl
=
&
d3d10_geometry_shader_vtbl
;
object
->
refcount
=
1
;
hr
=
d3d10_geometry_shader_init
(
object
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to initialize geometry shader, hr %#x.
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
TRACE
(
"Created geometry shader %p.
\n
"
,
object
);
*
shader
=
(
ID3D10GeometryShader
*
)
object
;
return
S_OK
;
...
...
dlls/d3d10core/shader.c
View file @
39d6f648
...
...
@@ -352,7 +352,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_geometry_shader_SetPrivateDataInterface(I
return
E_NOTIMPL
;
}
const
struct
ID3D10GeometryShaderVtbl
d3d10_geometry_shader_vtbl
=
static
const
struct
ID3D10GeometryShaderVtbl
d3d10_geometry_shader_vtbl
=
{
/* IUnknown methods */
d3d10_geometry_shader_QueryInterface
,
...
...
@@ -365,6 +365,14 @@ const struct ID3D10GeometryShaderVtbl d3d10_geometry_shader_vtbl =
d3d10_geometry_shader_SetPrivateDataInterface
,
};
HRESULT
d3d10_geometry_shader_init
(
struct
d3d10_geometry_shader
*
shader
)
{
shader
->
vtbl
=
&
d3d10_geometry_shader_vtbl
;
shader
->
refcount
=
1
;
return
S_OK
;
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3d10_pixel_shader_QueryInterface
(
ID3D10PixelShader
*
iface
,
...
...
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