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
8080212f
Commit
8080212f
authored
Sep 17, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_device_PSSetShaderResources().
parent
354a6d4e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
device.c
dlls/d3d10core/device.c
+12
-1
device.c
dlls/wined3d/device.c
+8
-0
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-0
wined3d.h
include/wine/wined3d.h
+2
-0
No files found.
dlls/d3d10core/device.c
View file @
8080212f
...
...
@@ -143,8 +143,19 @@ static void STDMETHODCALLTYPE d3d10_device_VSSetConstantBuffers(ID3D10Device1 *i
static
void
STDMETHODCALLTYPE
d3d10_device_PSSetShaderResources
(
ID3D10Device1
*
iface
,
UINT
start_slot
,
UINT
view_count
,
ID3D10ShaderResourceView
*
const
*
views
)
{
FIXME
(
"iface %p, start_slot %u, view_count %u, views %p stub!
\n
"
,
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
iface
);
unsigned
int
i
;
TRACE
(
"iface %p, start_slot %u, view_count %u, views %p.
\n
"
,
iface
,
start_slot
,
view_count
,
views
);
for
(
i
=
0
;
i
<
view_count
;
++
i
)
{
struct
d3d10_shader_resource_view
*
view
=
unsafe_impl_from_ID3D10ShaderResourceView
(
views
[
i
]);
wined3d_device_set_ps_resource_view
(
device
->
wined3d_device
,
start_slot
+
i
,
view
?
view
->
wined3d_view
:
NULL
);
}
}
static
void
STDMETHODCALLTYPE
d3d10_device_PSSetShader
(
ID3D10Device1
*
iface
,
...
...
dlls/wined3d/device.c
View file @
8080212f
...
...
@@ -2432,6 +2432,14 @@ struct wined3d_buffer * CDECL wined3d_device_get_ps_cb(const struct wined3d_devi
return
device
->
state
.
cb
[
WINED3D_SHADER_TYPE_PIXEL
][
idx
];
}
void
CDECL
wined3d_device_set_ps_resource_view
(
struct
wined3d_device
*
device
,
UINT
idx
,
struct
wined3d_shader_resource_view
*
view
)
{
TRACE
(
"device %p, idx %u, view %p.
\n
"
,
device
,
idx
,
view
);
wined3d_device_set_shader_resource_view
(
device
,
WINED3D_SHADER_TYPE_PIXEL
,
idx
,
view
);
}
void
CDECL
wined3d_device_set_ps_sampler
(
struct
wined3d_device
*
device
,
UINT
idx
,
struct
wined3d_sampler
*
sampler
)
{
TRACE
(
"device %p, idx %u, sampler %p.
\n
"
,
device
,
idx
,
sampler
);
...
...
dlls/wined3d/wined3d.spec
View file @
8080212f
...
...
@@ -130,6 +130,7 @@
@ cdecl wined3d_device_set_ps_consts_b(ptr long ptr long)
@ cdecl wined3d_device_set_ps_consts_f(ptr long ptr long)
@ cdecl wined3d_device_set_ps_consts_i(ptr long ptr long)
@ cdecl wined3d_device_set_ps_resource_view(ptr long ptr)
@ cdecl wined3d_device_set_ps_sampler(ptr long ptr)
@ cdecl wined3d_device_set_render_state(ptr long long)
@ cdecl wined3d_device_set_rendertarget_view(ptr long ptr long)
...
...
include/wine/wined3d.h
View file @
8080212f
...
...
@@ -2241,6 +2241,8 @@ HRESULT __cdecl wined3d_device_set_ps_consts_f(struct wined3d_device *device,
UINT
start_register
,
const
float
*
constants
,
UINT
vector4f_count
);
HRESULT
__cdecl
wined3d_device_set_ps_consts_i
(
struct
wined3d_device
*
device
,
UINT
start_register
,
const
int
*
constants
,
UINT
vector4i_count
);
void
__cdecl
wined3d_device_set_ps_resource_view
(
struct
wined3d_device
*
device
,
UINT
idx
,
struct
wined3d_shader_resource_view
*
view
);
void
__cdecl
wined3d_device_set_ps_sampler
(
struct
wined3d_device
*
device
,
UINT
idx
,
struct
wined3d_sampler
*
sampler
);
void
__cdecl
wined3d_device_set_render_state
(
struct
wined3d_device
*
device
,
enum
wined3d_render_state
state
,
DWORD
value
);
...
...
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