mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 11:08:45 +00:00
wined3d: Introduce wined3d_device_set_ds_cb().
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:
parent
bfca7dad7c
commit
a6cf4322dc
4 changed files with 12 additions and 0 deletions
|
@ -2709,6 +2709,13 @@ struct wined3d_shader * CDECL wined3d_device_get_domain_shader(const struct wine
|
|||
return device->state.shader[WINED3D_SHADER_TYPE_DOMAIN];
|
||||
}
|
||||
|
||||
void CDECL wined3d_device_set_ds_cb(struct wined3d_device *device, unsigned int idx, struct wined3d_buffer *buffer)
|
||||
{
|
||||
TRACE("device %p, idx %u, buffer %p.\n", device, idx, buffer);
|
||||
|
||||
wined3d_device_set_constant_buffer(device, WINED3D_SHADER_TYPE_DOMAIN, idx, buffer);
|
||||
}
|
||||
|
||||
void CDECL wined3d_device_set_geometry_shader(struct wined3d_device *device, struct wined3d_shader *shader)
|
||||
{
|
||||
struct wined3d_shader *prev = device->update_state->shader[WINED3D_SHADER_TYPE_GEOMETRY];
|
||||
|
|
|
@ -5006,6 +5006,8 @@ const struct StateEntryTemplate misc_state_template[] =
|
|||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_VERTEX), { STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_VERTEX), state_cb_warn, }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_HULL), { STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_HULL), state_cb, }, ARB_UNIFORM_BUFFER_OBJECT },
|
||||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_HULL), { STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_HULL), state_cb_warn, }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_DOMAIN), { STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_DOMAIN), state_cb, }, ARB_UNIFORM_BUFFER_OBJECT },
|
||||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_DOMAIN), { STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_DOMAIN), state_cb_warn, }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_GEOMETRY),{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_GEOMETRY),state_cb, }, ARB_UNIFORM_BUFFER_OBJECT },
|
||||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_GEOMETRY),{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_GEOMETRY),state_cb_warn, }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_PIXEL), { STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_PIXEL), state_cb, }, ARB_UNIFORM_BUFFER_OBJECT },
|
||||
|
@ -5999,6 +6001,7 @@ static void validate_state_table(struct StateEntry *state_table)
|
|||
STATE_SHADER(WINED3D_SHADER_TYPE_COMPUTE),
|
||||
STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_VERTEX),
|
||||
STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_HULL),
|
||||
STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_DOMAIN),
|
||||
STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_GEOMETRY),
|
||||
STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_PIXEL),
|
||||
STATE_CONSTANT_BUFFER(WINED3D_SHADER_TYPE_COMPUTE),
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
@ cdecl wined3d_device_set_depth_stencil_view(ptr ptr)
|
||||
@ cdecl wined3d_device_set_dialog_box_mode(ptr long)
|
||||
@ cdecl wined3d_device_set_domain_shader(ptr ptr)
|
||||
@ cdecl wined3d_device_set_ds_cb(ptr long ptr)
|
||||
@ cdecl wined3d_device_set_gamma_ramp(ptr long long ptr)
|
||||
@ cdecl wined3d_device_set_geometry_shader(ptr ptr)
|
||||
@ cdecl wined3d_device_set_gs_cb(ptr long ptr)
|
||||
|
|
|
@ -2319,6 +2319,7 @@ void __cdecl wined3d_device_set_depth_stencil_view(struct wined3d_device *device
|
|||
struct wined3d_rendertarget_view *view);
|
||||
HRESULT __cdecl wined3d_device_set_dialog_box_mode(struct wined3d_device *device, BOOL enable_dialogs);
|
||||
void __cdecl wined3d_device_set_domain_shader(struct wined3d_device *device, struct wined3d_shader *shader);
|
||||
void __cdecl wined3d_device_set_ds_cb(struct wined3d_device *device, unsigned int idx, struct wined3d_buffer *buffer);
|
||||
void __cdecl wined3d_device_set_gamma_ramp(const struct wined3d_device *device,
|
||||
UINT swapchain_idx, DWORD flags, const struct wined3d_gamma_ramp *ramp);
|
||||
void __cdecl wined3d_device_set_geometry_shader(struct wined3d_device *device, struct wined3d_shader *shader);
|
||||
|
|
Loading…
Reference in a new issue