wined3d: Introduce wined3d_device_get_cs_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:
parent
3fe9488812
commit
5faccd82ba
|
@ -2795,6 +2795,19 @@ void CDECL wined3d_device_set_cs_sampler(struct wined3d_device *device,
|
||||||
wined3d_device_set_sampler(device, WINED3D_SHADER_TYPE_COMPUTE, idx, sampler);
|
wined3d_device_set_sampler(device, WINED3D_SHADER_TYPE_COMPUTE, idx, sampler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct wined3d_sampler * CDECL wined3d_device_get_cs_sampler(const struct wined3d_device *device, unsigned int 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->state.sampler[WINED3D_SHADER_TYPE_COMPUTE][idx];
|
||||||
|
}
|
||||||
|
|
||||||
static void wined3d_device_set_pipeline_unordered_access_view(struct wined3d_device *device,
|
static void wined3d_device_set_pipeline_unordered_access_view(struct wined3d_device *device,
|
||||||
enum wined3d_pipeline pipeline, unsigned int idx, struct wined3d_unordered_access_view *uav)
|
enum wined3d_pipeline pipeline, unsigned int idx, struct wined3d_unordered_access_view *uav)
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
@ cdecl wined3d_device_get_creation_parameters(ptr ptr)
|
@ cdecl wined3d_device_get_creation_parameters(ptr ptr)
|
||||||
@ cdecl wined3d_device_get_cs_cb(ptr long)
|
@ cdecl wined3d_device_get_cs_cb(ptr long)
|
||||||
@ cdecl wined3d_device_get_cs_resource_view(ptr long)
|
@ cdecl wined3d_device_get_cs_resource_view(ptr long)
|
||||||
|
@ cdecl wined3d_device_get_cs_sampler(ptr long)
|
||||||
@ cdecl wined3d_device_get_depth_stencil_view(ptr)
|
@ cdecl wined3d_device_get_depth_stencil_view(ptr)
|
||||||
@ cdecl wined3d_device_get_device_caps(ptr ptr)
|
@ cdecl wined3d_device_get_device_caps(ptr ptr)
|
||||||
@ cdecl wined3d_device_get_display_mode(ptr long ptr ptr)
|
@ cdecl wined3d_device_get_display_mode(ptr long ptr ptr)
|
||||||
|
|
|
@ -2168,6 +2168,7 @@ void __cdecl wined3d_device_get_creation_parameters(const struct wined3d_device
|
||||||
struct wined3d_buffer * __cdecl wined3d_device_get_cs_cb(const struct wined3d_device *device, unsigned int idx);
|
struct wined3d_buffer * __cdecl wined3d_device_get_cs_cb(const struct wined3d_device *device, unsigned int idx);
|
||||||
struct wined3d_shader_resource_view * __cdecl wined3d_device_get_cs_resource_view(const struct wined3d_device *device,
|
struct wined3d_shader_resource_view * __cdecl wined3d_device_get_cs_resource_view(const struct wined3d_device *device,
|
||||||
unsigned int idx);
|
unsigned int idx);
|
||||||
|
struct wined3d_sampler * __cdecl wined3d_device_get_cs_sampler(const struct wined3d_device *device, unsigned int idx);
|
||||||
struct wined3d_rendertarget_view * __cdecl wined3d_device_get_depth_stencil_view(const struct wined3d_device *device);
|
struct wined3d_rendertarget_view * __cdecl wined3d_device_get_depth_stencil_view(const struct wined3d_device *device);
|
||||||
HRESULT __cdecl wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps);
|
HRESULT __cdecl wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps);
|
||||||
HRESULT __cdecl wined3d_device_get_display_mode(const struct wined3d_device *device, UINT swapchain_idx,
|
HRESULT __cdecl wined3d_device_get_display_mode(const struct wined3d_device *device, UINT swapchain_idx,
|
||||||
|
|
Loading…
Reference in New Issue