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
c98767a4
Commit
c98767a4
authored
Dec 05, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_device_VSGetSamplers().
parent
e5805c31
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
1 deletion
+35
-1
device.c
dlls/d3d10core/device.c
+20
-1
device.c
dlls/wined3d/device.c
+13
-0
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-0
wined3d.h
include/wine/wined3d.h
+1
-0
No files found.
dlls/d3d10core/device.c
View file @
c98767a4
...
...
@@ -772,8 +772,27 @@ static void STDMETHODCALLTYPE d3d10_device_VSGetShaderResources(ID3D10Device *if
static
void
STDMETHODCALLTYPE
d3d10_device_VSGetSamplers
(
ID3D10Device
*
iface
,
UINT
start_slot
,
UINT
sampler_count
,
ID3D10SamplerState
**
samplers
)
{
FIXME
(
"iface %p, start_slot %u, sampler_count %u, samplers %p stub!
\n
"
,
struct
d3d10_device
*
device
=
impl_from_ID3D10Device
(
iface
);
unsigned
int
i
;
TRACE
(
"iface %p, start_slot %u, sampler_count %u, samplers %p.
\n
"
,
iface
,
start_slot
,
sampler_count
,
samplers
);
for
(
i
=
0
;
i
<
sampler_count
;
++
i
)
{
struct
d3d10_sampler_state
*
sampler_impl
;
struct
wined3d_sampler
*
wined3d_sampler
;
if
(
!
(
wined3d_sampler
=
wined3d_device_get_vs_sampler
(
device
->
wined3d_device
,
start_slot
+
i
)))
{
samplers
[
i
]
=
NULL
;
continue
;
}
sampler_impl
=
wined3d_sampler_get_parent
(
wined3d_sampler
);
samplers
[
i
]
=
&
sampler_impl
->
ID3D10SamplerState_iface
;
ID3D10SamplerState_AddRef
(
samplers
[
i
]);
}
}
static
void
STDMETHODCALLTYPE
d3d10_device_GetPredication
(
ID3D10Device
*
iface
,
...
...
dlls/wined3d/device.c
View file @
c98767a4
...
...
@@ -2605,6 +2605,19 @@ void CDECL wined3d_device_set_vs_sampler(struct wined3d_device *device, UINT idx
wined3d_sampler_decref
(
prev
);
}
struct
wined3d_sampler
*
CDECL
wined3d_device_get_vs_sampler
(
const
struct
wined3d_device
*
device
,
UINT
idx
)
{
TRACE
(
"device %p, idx %u.
\n
"
,
device
,
idx
);
if
(
idx
>=
MAX_SAMPLER_OBJECTS
)
{
WARN
(
"Invalid sampler index %u.
\n
"
,
idx
);
return
NULL
;
}
return
device
->
stateBlock
->
state
.
vs_sampler
[
idx
];
}
HRESULT
CDECL
wined3d_device_set_vs_consts_b
(
struct
wined3d_device
*
device
,
UINT
start_register
,
const
BOOL
*
constants
,
UINT
bool_count
)
{
...
...
dlls/wined3d/wined3d.spec
View file @
c98767a4
...
...
@@ -100,6 +100,7 @@
@ cdecl wined3d_device_get_vs_consts_b(ptr long ptr long)
@ cdecl wined3d_device_get_vs_consts_f(ptr long ptr long)
@ cdecl wined3d_device_get_vs_consts_i(ptr long ptr long)
@ cdecl wined3d_device_get_vs_sampler(ptr long)
@ cdecl wined3d_device_incref(ptr)
@ cdecl wined3d_device_init_3d(ptr ptr)
@ cdecl wined3d_device_init_gdi(ptr ptr)
...
...
include/wine/wined3d.h
View file @
c98767a4
...
...
@@ -2180,6 +2180,7 @@ HRESULT __cdecl wined3d_device_get_vs_consts_f(const struct wined3d_device *devi
UINT
start_register
,
float
*
constants
,
UINT
vector4f_count
);
HRESULT
__cdecl
wined3d_device_get_vs_consts_i
(
const
struct
wined3d_device
*
device
,
UINT
start_register
,
int
*
constants
,
UINT
vector4i_count
);
struct
wined3d_sampler
*
__cdecl
wined3d_device_get_vs_sampler
(
const
struct
wined3d_device
*
device
,
UINT
idx
);
ULONG
__cdecl
wined3d_device_incref
(
struct
wined3d_device
*
device
);
HRESULT
__cdecl
wined3d_device_init_3d
(
struct
wined3d_device
*
device
,
struct
wined3d_swapchain_desc
*
swapchain_desc
);
HRESULT
__cdecl
wined3d_device_init_gdi
(
struct
wined3d_device
*
device
,
struct
wined3d_swapchain_desc
*
swapchain_desc
);
...
...
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