wined3d: Introduce wined3d_device_get_hs_sampler().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-05-05 09:06:30 +02:00 committed by Alexandre Julliard
parent 6e56fbb754
commit 0efb3e40e4
3 changed files with 9 additions and 0 deletions

View File

@ -2720,6 +2720,13 @@ void CDECL wined3d_device_set_hs_sampler(struct wined3d_device *device,
wined3d_device_set_sampler(device, WINED3D_SHADER_TYPE_HULL, idx, sampler);
}
struct wined3d_sampler * CDECL wined3d_device_get_hs_sampler(const struct wined3d_device *device, unsigned int idx)
{
TRACE("device %p, idx %u.\n", device, idx);
return wined3d_device_get_sampler(device, WINED3D_SHADER_TYPE_HULL, idx);
}
void CDECL wined3d_device_set_domain_shader(struct wined3d_device *device, struct wined3d_shader *shader)
{
struct wined3d_shader *prev;

View File

@ -70,6 +70,7 @@
@ cdecl wined3d_device_get_gs_sampler(ptr long)
@ cdecl wined3d_device_get_hs_cb(ptr long)
@ cdecl wined3d_device_get_hs_resource_view(ptr long)
@ cdecl wined3d_device_get_hs_sampler(ptr long)
@ cdecl wined3d_device_get_hull_shader(ptr)
@ cdecl wined3d_device_get_index_buffer(ptr ptr ptr)
@ cdecl wined3d_device_get_light(ptr long ptr)

View File

@ -2228,6 +2228,7 @@ struct wined3d_sampler * __cdecl wined3d_device_get_gs_sampler(const struct wine
struct wined3d_buffer * __cdecl wined3d_device_get_hs_cb(const struct wined3d_device *device, unsigned int idx);
struct wined3d_shader_resource_view * __cdecl wined3d_device_get_hs_resource_view(const struct wined3d_device *device,
unsigned int idx);
struct wined3d_sampler * __cdecl wined3d_device_get_hs_sampler(const struct wined3d_device *device, unsigned int idx);
struct wined3d_shader * __cdecl wined3d_device_get_hull_shader(const struct wined3d_device *device);
struct wined3d_buffer * __cdecl wined3d_device_get_index_buffer(const struct wined3d_device *device,
enum wined3d_format_id *format, unsigned int *offset);