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
fcee1b70
Commit
fcee1b70
authored
May 26, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
May 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement ID3D10Device::CreateVertexShader().
parent
f0e303b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+3
-0
device.c
dlls/d3d10core/device.c
+24
-1
shader.c
dlls/d3d10core/shader.c
+2
-0
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
fcee1b70
...
...
@@ -141,6 +141,9 @@ struct d3d10_vertex_shader
{
const
struct
ID3D10VertexShaderVtbl
*
vtbl
;
LONG
refcount
;
IWineD3DVertexShader
*
wined3d_shader
;
struct
wined3d_shader_signature
output_signature
;
};
/* ID3D10GeometryShader */
...
...
dlls/d3d10core/device.c
View file @
fcee1b70
...
...
@@ -970,9 +970,12 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateInputLayout(ID3D10Device *if
static
HRESULT
STDMETHODCALLTYPE
d3d10_device_CreateVertexShader
(
ID3D10Device
*
iface
,
const
void
*
byte_code
,
SIZE_T
byte_code_length
,
ID3D10VertexShader
**
shader
)
{
struct
d3d10_device
*
This
=
(
struct
d3d10_device
*
)
iface
;
struct
d3d10_vertex_shader
*
object
;
struct
d3d10_shader_info
shader_info
;
HRESULT
hr
;
FIXME
(
"iface %p, byte_code %p, byte_code_length %lu, shader %p stub!
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %lu, shader %p
\n
"
,
iface
,
byte_code
,
byte_code_length
,
shader
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
...
...
@@ -985,6 +988,26 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateVertexShader(ID3D10Device *i
object
->
vtbl
=
&
d3d10_vertex_shader_vtbl
;
object
->
refcount
=
1
;
shader_info
.
output_signature
=
&
object
->
output_signature
;
hr
=
shader_extract_from_dxbc
(
byte_code
,
byte_code_length
,
&
shader_info
);
if
(
FAILED
(
hr
))
{
ERR
(
"Failed to extract shader, hr %#x
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
return
hr
;
}
hr
=
IWineD3DDevice_CreateVertexShader
(
This
->
wined3d_device
,
NULL
,
shader_info
.
shader_code
,
&
object
->
output_signature
,
&
object
->
wined3d_shader
,
(
IUnknown
*
)
object
);
if
(
FAILED
(
hr
))
{
ERR
(
"CreateVertexShader failed, hr %#x
\n
"
,
hr
);
shader_free_signature
(
&
object
->
output_signature
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
return
hr
;
}
*
shader
=
(
ID3D10VertexShader
*
)
object
;
return
S_OK
;
...
...
dlls/d3d10core/shader.c
View file @
fcee1b70
...
...
@@ -176,6 +176,8 @@ static ULONG STDMETHODCALLTYPE d3d10_vertex_shader_Release(ID3D10VertexShader *i
if
(
!
refcount
)
{
IWineD3DVertexShader_Release
(
This
->
wined3d_shader
);
shader_free_signature
(
&
This
->
output_signature
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
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