wined3d: Introduce wined3d_device_get_immediate_context().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-03-07 16:19:19 -06:00 committed by Alexandre Julliard
parent ba5465c71f
commit 3920277c22
3 changed files with 9 additions and 0 deletions

View File

@ -2054,6 +2054,13 @@ struct wined3d_state * CDECL wined3d_device_get_state(struct wined3d_device *dev
return device->cs->c.state; return device->cs->c.state;
} }
struct wined3d_device_context * CDECL wined3d_device_get_immediate_context(struct wined3d_device *device)
{
TRACE("device %p.\n", device);
return &device->cs->c;
}
void CDECL wined3d_device_set_vertex_declaration(struct wined3d_device *device, void CDECL wined3d_device_set_vertex_declaration(struct wined3d_device *device,
struct wined3d_vertex_declaration *declaration) struct wined3d_vertex_declaration *declaration)
{ {

View File

@ -84,6 +84,7 @@
@ cdecl wined3d_device_get_hs_resource_view(ptr long) @ cdecl wined3d_device_get_hs_resource_view(ptr long)
@ cdecl wined3d_device_get_hs_sampler(ptr long) @ cdecl wined3d_device_get_hs_sampler(ptr long)
@ cdecl wined3d_device_get_hull_shader(ptr) @ cdecl wined3d_device_get_hull_shader(ptr)
@ cdecl wined3d_device_get_immediate_context(ptr)
@ cdecl wined3d_device_get_index_buffer(ptr ptr ptr) @ cdecl wined3d_device_get_index_buffer(ptr ptr ptr)
@ cdecl wined3d_device_get_max_frame_latency(ptr) @ cdecl wined3d_device_get_max_frame_latency(ptr)
@ cdecl wined3d_device_get_npatch_mode(ptr) @ cdecl wined3d_device_get_npatch_mode(ptr)

View File

@ -2414,6 +2414,7 @@ struct wined3d_shader_resource_view * __cdecl wined3d_device_get_hs_resource_vie
unsigned int idx); unsigned int idx);
struct wined3d_sampler * __cdecl wined3d_device_get_hs_sampler(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_shader * __cdecl wined3d_device_get_hull_shader(const struct wined3d_device *device);
struct wined3d_device_context * __cdecl wined3d_device_get_immediate_context(struct wined3d_device *device);
struct wined3d_buffer * __cdecl wined3d_device_get_index_buffer(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); enum wined3d_format_id *format, unsigned int *offset);
unsigned int __cdecl wined3d_device_get_max_frame_latency(const struct wined3d_device *device); unsigned int __cdecl wined3d_device_get_max_frame_latency(const struct wined3d_device *device);