20#define NONAMELESSUNION
21#define WINE_NO_NAMELESS_EXTENSION
28 SIZE_T max_capacity, new_capacity;
31 if (
count <= *capacity)
35 if (
count > max_capacity)
38 new_capacity =
max(1, *capacity);
39 while (new_capacity <
count && new_capacity <= max_capacity / 2)
41 if (new_capacity <
count)
44 if (!(new_elements =
realloc(*elements, new_capacity *
size)))
47 *elements = new_elements;
48 *capacity = new_capacity;
87 ID3DDeviceContextState_AddRef(iface);
117 ID3D11Device2_AddRef(
state->device);
127 for (
i = 0;
i <
device->context_state_count; ++
i)
132 if (
i !=
device->context_state_count - 1)
134 --
device->context_state_count;
151 for (
i = 0;
i <
state->entry_count; ++
i)
176 ID3D11Device2_Release(
state->device);
190 ID3D11Device_AddRef(*
device);
242 for (
i = 0;
i <
state->entry_count; ++
i)
245 return &
state->entries[
i];
257 state->entry_count + 1,
sizeof(*
state->entries)))
261 device->context_state_count + 1,
sizeof(*
device->context_states)))
278 for (
i = 0;
i <
state->entry_count; ++
i)
287 if (
i !=
state->entry_count)
289 --
state->entry_count;
302 return entry->wined3d_state;
321 state->refcount =
state->private_refcount = 0;
326 state->emulated_interface = *emulated_interface;
348 ID3D11CommandList_AddRef(iface);
380 ID3D11Device2_Release(
list->device);
394 ID3D11Device2_AddRef(
list->device);
429 TRACE(
"iface %p.\n", iface);
491 else if (
IsEqualGUID(iid, &IID_ID3DUserDefinedAnnotation))
493 *
out = &
context->ID3DUserDefinedAnnotation_iface;
502 ID3D11DeviceContext1_AddRef(iface);
515 ID3D11Device2_AddRef(&
context->device->ID3D11Device2_iface);
537 ID3D11Device2_Release(
device);
545 unsigned int *
offsets,
unsigned int *counts)
578 const unsigned int *
offsets,
const unsigned int *counts)
593 WARN(
"Got offsets pointer %p but counts pointer %p; ignoring call.\n",
offsets, counts);
609 WARN(
"Count %u is not aligned.\n", counts[
i]);
623 unsigned int start_slot,
unsigned int count, ID3D11ShaderResourceView *
const *views)
631 WARN(
"View count %u exceeds limit; ignoring call.\n",
count);
647 unsigned int start_slot,
unsigned int count, ID3D11SamplerState *
const *
samplers)
655 WARN(
"Sampler count %u exceeds limit; ignoring call.\n",
count);
675 *
device = (ID3D11Device *)&
context->device->ID3D11Device2_iface;
676 ID3D11Device_AddRef(*
device);
712 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
720 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView *
const *views)
722 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
723 iface, start_slot, view_count, views);
729 ID3D11PixelShader *
shader, ID3D11ClassInstance *
const *class_instances,
UINT class_instance_count)
734 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %u.\n",
735 iface,
shader, class_instances, class_instance_count);
737 if (class_instance_count)
738 FIXME(
"Dynamic linking is not implemented yet.\n");
747 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
748 iface, start_slot, sampler_count,
samplers);
754 ID3D11VertexShader *
shader, ID3D11ClassInstance *
const *class_instances,
UINT class_instance_count)
759 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %u.\n",
760 iface,
shader, class_instances, class_instance_count);
762 if (class_instance_count)
763 FIXME(
"Dynamic linking is not implemented yet.\n");
770 UINT index_count,
UINT start_index_location,
INT base_vertex_location)
774 TRACE(
"iface %p, index_count %u, start_index_location %u, base_vertex_location %d.\n",
775 iface, index_count, start_index_location, base_vertex_location);
778 base_vertex_location, start_index_location, index_count, 0, 0);
786 TRACE(
"iface %p, vertex_count %u, start_vertex_location %u.\n",
800 TRACE(
"iface %p, resource %p, subresource_idx %u, map_type %u, map_flags %#x, mapped_subresource %p.\n",
804 FIXME(
"Ignoring map_flags %#x.\n", map_flags);
817 mapped_subresource->
pData = map_desc.
data;
826 UINT subresource_idx)
831 TRACE(
"iface %p, resource %p, subresource_idx %u.\n", iface,
resource, subresource_idx);
841 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
849 ID3D11InputLayout *input_layout)
854 TRACE(
"iface %p, input_layout %p.\n", iface, input_layout);
866 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, strides %p, offsets %p.\n",
895 TRACE(
"iface %p, buffer %p, format %s, offset %u.\n",
904 UINT instance_index_count,
UINT instance_count,
UINT start_index_location,
INT base_vertex_location,
905 UINT start_instance_location)
909 TRACE(
"iface %p, instance_index_count %u, instance_count %u, start_index_location %u, "
910 "base_vertex_location %d, start_instance_location %u.\n",
911 iface, instance_index_count, instance_count, start_index_location,
912 base_vertex_location, start_instance_location);
915 start_index_location, instance_index_count, start_instance_location, instance_count);
919 UINT instance_vertex_count,
UINT instance_count,
UINT start_vertex_location,
UINT start_instance_location)
923 TRACE(
"iface %p, instance_vertex_count %u, instance_count %u, start_vertex_location %u, "
924 "start_instance_location %u.\n",
925 iface, instance_vertex_count, instance_count, start_vertex_location,
926 start_instance_location);
929 instance_vertex_count, start_instance_location, instance_count);
935 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
943 ID3D11GeometryShader *
shader, ID3D11ClassInstance *
const *class_instances,
UINT class_instance_count)
948 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %u.\n",
949 iface,
shader, class_instances, class_instance_count);
951 if (class_instance_count)
952 FIXME(
"Dynamic linking is not implemented yet.\n");
963 unsigned int patch_vertex_count;
965 TRACE(
"iface %p, topology %#x.\n", iface, topology);
973 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView *
const *views)
975 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
983 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
984 iface, start_slot, sampler_count,
samplers);
990 ID3D11Asynchronous *asynchronous)
995 TRACE(
"iface %p, asynchronous %p.\n", iface, asynchronous);
1001 ID3D11Asynchronous *asynchronous)
1006 TRACE(
"iface %p, asynchronous %p.\n", iface, asynchronous);
1012 ID3D11Asynchronous *asynchronous,
void *
data,
UINT data_size,
UINT data_flags)
1016 unsigned int wined3d_flags;
1019 TRACE(
"iface %p, asynchronous %p, data %p, data_size %u, data_flags %#x.\n",
1020 iface, asynchronous,
data, data_size, data_flags);
1025 if (!
data && data_size)
1039 WARN(
"Invalid data size %u.\n", data_size);
1061 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView *
const *views)
1063 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
1071 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
1072 iface, start_slot, sampler_count,
samplers);
1078 UINT rtv_count, ID3D11RenderTargetView *
const *rtvs, ID3D11DepthStencilView *depth_stencil_view)
1085 TRACE(
"iface %p, rtv_count %u, rtvs %p, depth_stencil_view %p.\n", iface, rtv_count, rtvs, depth_stencil_view);
1089 WARN(
"View count %u exceeds limit.\n", rtv_count);
1093 for (
i = 0;
i < rtv_count; ++
i)
1108 ID3D11DepthStencilView *depth_stencil_view,
UINT uav_start_idx,
UINT uav_count,
1109 ID3D11UnorderedAccessView *
const *uavs,
const UINT *initial_counts)
1118 TRACE(
"iface %p, render_target_view_count %u, render_target_views %p, depth_stencil_view %p, "
1119 "uav_start_idx %u, uav_count %u, uavs %p, initial_counts %p.\n",
1120 iface, render_target_view_count, render_target_views, depth_stencil_view,
1121 uav_start_idx, uav_count, uavs, initial_counts);
1124 render_target_view_count = ~0
u;
1127 if (render_target_view_count >
ARRAY_SIZE(wined3d_rtvs))
1129 WARN(
"View count %u exceeds limit.\n", render_target_view_count);
1130 render_target_view_count =
ARRAY_SIZE(wined3d_rtvs);
1133 for (
i = 0;
i < render_target_view_count; ++
i)
1147 WARN(
"View count %u exceeds limit; ignoring call.\n", uav_count);
1151 memset(wined3d_initial_counts, 0xff,
sizeof(wined3d_initial_counts));
1153 for (
i = 0;
i < uav_count; ++
i)
1158 wined3d_uavs[uav_start_idx +
i] =
view ?
view->wined3d_view :
NULL;
1159 wined3d_initial_counts[uav_start_idx +
i] = initial_counts ? initial_counts[
i] : ~0
u;
1164 render_target_view_count == ~0
u ? ~0
u :
ARRAY_SIZE(wined3d_rtvs), wined3d_rtvs,
1166 wined3d_initial_counts);
1170 ID3D11BlendState *blend_state,
const float blend_factor[4],
UINT sample_mask)
1173 static const float default_blend_factor[] = {1.0f, 1.0f, 1.0f, 1.0f};
1176 TRACE(
"iface %p, blend_state %p, blend_factor %s, sample_mask 0x%08x.\n",
1177 iface, blend_state,
debug_float4(blend_factor), sample_mask);
1180 blend_factor = default_blend_factor;
1191 ID3D11DepthStencilState *depth_stencil_state,
UINT stencil_ref)
1196 TRACE(
"iface %p, depth_stencil_state %p, stencil_ref %u.\n",
1197 iface, depth_stencil_state, stencil_ref);
1231 FIXME(
"iface %p stub!\n", iface);
1261 UINT thread_group_count_x,
UINT thread_group_count_y,
UINT thread_group_count_z)
1265 TRACE(
"iface %p, thread_group_count_x %u, thread_group_count_y %u, thread_group_count_z %u.\n",
1266 iface, thread_group_count_x, thread_group_count_y, thread_group_count_z);
1269 thread_group_count_x, thread_group_count_y, thread_group_count_z);
1286 ID3D11RasterizerState *rasterizer_state)
1291 TRACE(
"iface %p, rasterizer_state %p.\n", iface, rasterizer_state);
1299 UINT viewport_count,
const D3D11_VIEWPORT *viewports)
1305 TRACE(
"iface %p, viewport_count %u, viewports %p.\n", iface, viewport_count, viewports);
1310 for (
i = 0;
i < viewport_count; ++
i)
1312 wined3d_vp[
i].
x = viewports[
i].TopLeftX;
1313 wined3d_vp[
i].
y = viewports[
i].TopLeftY;
1314 wined3d_vp[
i].
width = viewports[
i].Width;
1315 wined3d_vp[
i].
height = viewports[
i].Height;
1316 wined3d_vp[
i].
min_z = viewports[
i].MinDepth;
1317 wined3d_vp[
i].
max_z = viewports[
i].MaxDepth;
1328 TRACE(
"iface %p, rect_count %u, rects %p.\n", iface, rect_count, rects);
1337 ID3D11Resource *dst_resource,
UINT dst_subresource_idx,
UINT dst_x,
UINT dst_y,
UINT dst_z,
1338 ID3D11Resource *src_resource,
UINT src_subresource_idx,
const D3D11_BOX *src_box)
1344 TRACE(
"iface %p, dst_resource %p, dst_subresource_idx %u, dst_x %u, dst_y %u, dst_z %u, "
1345 "src_resource %p, src_subresource_idx %u, src_box %p.\n",
1346 iface, dst_resource, dst_subresource_idx, dst_x, dst_y, dst_z,
1347 src_resource, src_subresource_idx, src_box);
1349 if (!dst_resource || !src_resource)
1359 dst_x, dst_y, dst_z, wined3d_src_resource, src_subresource_idx, src_box ? &wined3d_src_box :
NULL, 0);
1363 ID3D11Resource *dst_resource, ID3D11Resource *src_resource)
1368 TRACE(
"iface %p, dst_resource %p, src_resource %p.\n", iface, dst_resource, src_resource);
1383 TRACE(
"iface %p, resource %p, subresource_idx %u, box %p, data %p, row_pitch %u, depth_pitch %u.\n",
1395 ID3D11Buffer *dst_buffer,
UINT dst_offset, ID3D11UnorderedAccessView *src_view)
1401 TRACE(
"iface %p, dst_buffer %p, dst_offset %u, src_view %p.\n",
1402 iface, dst_buffer, dst_offset, src_view);
1412 ID3D11RenderTargetView *render_target_view,
const float color_rgba[4])
1416 const struct wined3d_color color = {color_rgba[0], color_rgba[1], color_rgba[2], color_rgba[3]};
1419 TRACE(
"iface %p, render_target_view %p, color_rgba %s.\n",
1427 ERR(
"Failed to clear view, hr %#lx.\n",
hr);
1431 ID3D11UnorderedAccessView *unordered_access_view,
const UINT values[4])
1436 TRACE(
"iface %p, unordered_access_view %p, values {%u, %u, %u, %u}.\n",
1445 ID3D11UnorderedAccessView *unordered_access_view,
const float values[4])
1450 TRACE(
"iface %p, unordered_access_view %p, values %s.\n",
1463 DWORD wined3d_flags;
1466 TRACE(
"iface %p, depth_stencil_view %p, flags %#x, depth %.8e, stencil %u.\n",
1476 ERR(
"Failed to clear view, hr %#lx.\n",
hr);
1480 ID3D11ShaderResourceView *
view)
1485 TRACE(
"iface %p, view %p.\n", iface,
view);
1493 FIXME(
"iface %p, resource %p, min_lod %f stub!\n", iface,
resource, min_lod);
1505 ID3D11Resource *dst_resource,
UINT dst_subresource_idx,
1506 ID3D11Resource *src_resource,
UINT src_subresource_idx,
1513 TRACE(
"iface %p, dst_resource %p, dst_subresource_idx %u, "
1514 "src_resource %p, src_subresource_idx %u, format %s.\n",
1515 iface, dst_resource, dst_subresource_idx,
1522 wined3d_dst_resource, dst_subresource_idx,
1527 ID3D11CommandList *command_list,
BOOL restore_state)
1532 TRACE(
"iface %p, command_list %p, restore_state %#x.\n", iface, command_list, restore_state);
1538 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView *
const *views)
1540 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
1541 iface, start_slot, view_count, views);
1547 ID3D11HullShader *
shader, ID3D11ClassInstance *
const *class_instances,
UINT class_instance_count)
1552 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %u.\n",
1553 iface,
shader, class_instances, class_instance_count);
1555 if (class_instance_count)
1556 FIXME(
"Dynamic linking is not implemented yet.\n");
1565 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
1566 iface, start_slot, sampler_count,
samplers);
1574 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
1582 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView *
const *views)
1584 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
1585 iface, start_slot, view_count, views);
1591 ID3D11DomainShader *
shader, ID3D11ClassInstance *
const *class_instances,
UINT class_instance_count)
1596 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %u.\n",
1597 iface,
shader, class_instances, class_instance_count);
1599 if (class_instance_count)
1600 FIXME(
"Dynamic linking is not implemented yet.\n");
1609 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
1610 iface, start_slot, sampler_count,
samplers);
1618 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
1626 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView *
const *views)
1628 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
1629 iface, start_slot, view_count, views);
1635 UINT start_slot,
UINT view_count, ID3D11UnorderedAccessView *
const *views,
const UINT *initial_counts)
1641 TRACE(
"iface %p, start_slot %u, view_count %u, views %p, initial_counts %p.\n",
1642 iface, start_slot, view_count, views, initial_counts);
1646 WARN(
"View count %u exceeds limit; ignoring call.\n", view_count);
1650 for (
i = 0;
i < view_count; ++
i)
1658 start_slot, view_count, wined3d_views, initial_counts);
1662 ID3D11ComputeShader *
shader, ID3D11ClassInstance *
const *class_instances,
UINT class_instance_count)
1667 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %u.\n",
1668 iface,
shader, class_instances, class_instance_count);
1670 if (class_instance_count)
1671 FIXME(
"Dynamic linking is not implemented yet.\n");
1680 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
1681 iface, start_slot, sampler_count,
samplers);
1689 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
1699 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
1707 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView **views)
1712 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
1713 iface, start_slot, view_count, views);
1716 for (
i = 0;
i < view_count; ++
i)
1730 ID3D11ShaderResourceView_AddRef(views[
i]);
1736 ID3D11PixelShader **
shader, ID3D11ClassInstance **class_instances,
UINT *class_instance_count)
1742 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %p.\n",
1743 iface,
shader, class_instances, class_instance_count);
1745 if (class_instance_count)
1746 *class_instance_count = 0;
1759 ID3D11PixelShader_AddRef(*
shader);
1768 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
1769 iface, start_slot, sampler_count,
samplers);
1772 for (
i = 0;
i < sampler_count; ++
i)
1792 ID3D11VertexShader **
shader, ID3D11ClassInstance **class_instances,
UINT *class_instance_count)
1798 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %p.\n",
1799 iface,
shader, class_instances, class_instance_count);
1801 if (class_instance_count)
1802 *class_instance_count = 0;
1815 ID3D11VertexShader_AddRef(*
shader);
1821 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
1829 ID3D11InputLayout **input_layout)
1835 TRACE(
"iface %p, input_layout %p.\n", iface, input_layout);
1841 *input_layout =
NULL;
1848 ID3D11InputLayout_AddRef(*input_layout);
1857 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, strides %p, offsets %p.\n",
1869 FIXME(
"Failed to get vertex buffer %u.\n", start_slot +
i);
1916 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
1924 ID3D11GeometryShader **
shader, ID3D11ClassInstance **class_instances,
UINT *class_instance_count)
1930 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %p.\n",
1931 iface,
shader, class_instances, class_instance_count);
1933 if (class_instance_count)
1934 *class_instance_count = 0;
1947 ID3D11GeometryShader_AddRef(*
shader);
1955 unsigned int patch_vertex_count;
1957 TRACE(
"iface %p, topology %p.\n", iface, topology);
1967 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView **views)
1972 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
1975 for (
i = 0;
i < view_count; ++
i)
1989 ID3D11ShaderResourceView_AddRef(views[
i]);
2000 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
2001 iface, start_slot, sampler_count,
samplers);
2004 for (
i = 0;
i < sampler_count; ++
i)
2024 ID3D11Predicate **predicate,
BOOL *
value)
2047 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView **views)
2052 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
2055 for (
i = 0;
i < view_count; ++
i)
2069 ID3D11ShaderResourceView_AddRef(views[
i]);
2080 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
2081 iface, start_slot, sampler_count,
samplers);
2084 for (
i = 0;
i < sampler_count; ++
i)
2104 UINT render_target_view_count, ID3D11RenderTargetView **render_target_views,
2105 ID3D11DepthStencilView **depth_stencil_view)
2110 TRACE(
"iface %p, render_target_view_count %u, render_target_views %p, depth_stencil_view %p.\n",
2111 iface, render_target_view_count, render_target_views, depth_stencil_view);
2114 if (render_target_views)
2119 for (
i = 0;
i < render_target_view_count; ++
i)
2124 render_target_views[
i] =
NULL;
2129 ID3D11RenderTargetView_AddRef(render_target_views[
i]);
2133 if (depth_stencil_view)
2140 *depth_stencil_view =
NULL;
2145 ID3D11DepthStencilView_AddRef(*depth_stencil_view);
2153 UINT render_target_view_count, ID3D11RenderTargetView **render_target_views,
2154 ID3D11DepthStencilView **depth_stencil_view,
2155 UINT unordered_access_view_start_slot,
UINT unordered_access_view_count,
2156 ID3D11UnorderedAccessView **unordered_access_views)
2163 TRACE(
"iface %p, render_target_view_count %u, render_target_views %p, depth_stencil_view %p, "
2164 "unordered_access_view_start_slot %u, unordered_access_view_count %u, "
2165 "unordered_access_views %p.\n",
2166 iface, render_target_view_count, render_target_views, depth_stencil_view,
2167 unordered_access_view_start_slot, unordered_access_view_count, unordered_access_views);
2169 if (render_target_views || depth_stencil_view)
2171 render_target_views, depth_stencil_view);
2173 if (unordered_access_views)
2176 for (
i = 0;
i < unordered_access_view_count; ++
i)
2181 unordered_access_views[
i] =
NULL;
2187 ID3D11UnorderedAccessView_AddRef(unordered_access_views[
i]);
2194 ID3D11BlendState **blend_state,
FLOAT blend_factor[4],
UINT *sample_mask)
2199 unsigned int tmp_sample_mask;
2200 float tmp_blend_factor[4];
2202 TRACE(
"iface %p, blend_state %p, blend_factor %p, sample_mask %p.\n",
2203 iface, blend_state, blend_factor, sample_mask);
2206 if (!blend_factor) blend_factor = tmp_blend_factor;
2207 if (!sample_mask) sample_mask = &tmp_sample_mask;
2218 *blend_state =
NULL;
2224 ID3D11DepthStencilState **depth_stencil_state,
UINT *stencil_ref)
2229 UINT stencil_ref_tmp;
2231 TRACE(
"iface %p, depth_stencil_state %p, stencil_ref %p.\n",
2232 iface, depth_stencil_state, stencil_ref);
2235 if (!stencil_ref) stencil_ref = &stencil_ref_tmp;
2237 if (depth_stencil_state)
2246 *depth_stencil_state =
NULL;
2280 ID3D11RasterizerState **rasterizer_state)
2286 TRACE(
"iface %p, rasterizer_state %p.\n", iface, rasterizer_state);
2293 ID3D11RasterizerState_AddRef(*rasterizer_state);
2297 *rasterizer_state =
NULL;
2303 UINT *viewport_count, D3D11_VIEWPORT *viewports)
2307 unsigned int actual_count =
ARRAY_SIZE(wined3d_vp),
i;
2309 TRACE(
"iface %p, viewport_count %p, viewports %p.\n", iface, viewport_count, viewports);
2311 if (!viewport_count)
2320 *viewport_count = actual_count;
2324 if (*viewport_count > actual_count)
2325 memset(&viewports[actual_count], 0, (*viewport_count - actual_count) *
sizeof(*viewports));
2327 *viewport_count =
min(actual_count, *viewport_count);
2328 for (
i = 0;
i < *viewport_count; ++
i)
2330 viewports[
i].TopLeftX = wined3d_vp[
i].
x;
2331 viewports[
i].TopLeftY = wined3d_vp[
i].
y;
2332 viewports[
i].Width = wined3d_vp[
i].
width;
2333 viewports[
i].Height = wined3d_vp[
i].
height;
2334 viewports[
i].MinDepth = wined3d_vp[
i].
min_z;
2335 viewports[
i].MaxDepth = wined3d_vp[
i].
max_z;
2343 unsigned int actual_count;
2345 TRACE(
"iface %p, rect_count %p, rects %p.\n", iface, rect_count, rects);
2350 actual_count = *rect_count;
2356 if (rects && *rect_count > actual_count)
2357 memset(&rects[actual_count], 0, (*rect_count - actual_count) *
sizeof(*rects));
2358 *rect_count = actual_count;
2362 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView **views)
2367 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
2370 for (
i = 0;
i < view_count; ++
i)
2389 ID3D11HullShader **
shader, ID3D11ClassInstance **class_instances,
UINT *class_instance_count)
2395 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %p.\n",
2396 iface,
shader, class_instances, class_instance_count);
2398 if (class_instance_count)
2399 *class_instance_count = 0;
2420 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
2421 iface, start_slot, sampler_count,
samplers);
2424 for (
i = 0;
i < sampler_count; ++
i)
2445 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
2453 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView **views)
2458 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
2459 iface, start_slot, view_count, views);
2462 for (
i = 0;
i < view_count; ++
i)
2481 ID3D11DomainShader **
shader, ID3D11ClassInstance **class_instances,
UINT *class_instance_count)
2487 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %p.\n",
2488 iface,
shader, class_instances, class_instance_count);
2490 if (class_instance_count)
2491 *class_instance_count = 0;
2512 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
2513 iface, start_slot, sampler_count,
samplers);
2516 for (
i = 0;
i < sampler_count; ++
i)
2537 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
2545 UINT start_slot,
UINT view_count, ID3D11ShaderResourceView **views)
2550 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
2553 for (
i = 0;
i < view_count; ++
i)
2572 UINT start_slot,
UINT view_count, ID3D11UnorderedAccessView **views)
2577 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
2580 for (
i = 0;
i < view_count; ++
i)
2599 ID3D11ComputeShader **
shader, ID3D11ClassInstance **class_instances,
UINT *class_instance_count)
2605 TRACE(
"iface %p, shader %p, class_instances %p, class_instance_count %p.\n",
2606 iface,
shader, class_instances, class_instance_count);
2608 if (class_instance_count)
2609 *class_instance_count = 0;
2630 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
2631 iface, start_slot, sampler_count,
samplers);
2634 for (
i = 0;
i < sampler_count; ++
i)
2655 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
2666 TRACE(
"iface %p.\n", iface);
2675 TRACE(
"iface %p.\n", iface);
2684 TRACE(
"iface %p.\n", iface);
2691 TRACE(
"iface %p.\n", iface);
2697 BOOL restore, ID3D11CommandList **command_list)
2703 TRACE(
"iface %p, restore %#x, command_list %p.\n", iface, restore, command_list);
2707 WARN(
"Attempt to record command list on an immediate context; returning DXGI_ERROR_INVALID_CALL.\n");
2711 if (!(
object =
calloc(1,
sizeof(*
object))))
2715 !!restore, &
object->wined3d_list)))
2717 WARN(
"Failed to record wined3d command list, hr %#lx.\n",
hr);
2723 object->refcount = 1;
2724 object->device = &
context->device->ID3D11Device2_iface;
2727 ID3D11Device2_AddRef(
object->device);
2729 TRACE(
"Created command list %p.\n",
object);
2730 *command_list = &
object->ID3D11CommandList_iface;
2736 ID3D11Resource *dst_resource,
UINT dst_subresource_idx,
UINT dst_x,
UINT dst_y,
UINT dst_z,
2743 TRACE(
"iface %p, dst_resource %p, dst_subresource_idx %u, dst_x %u, dst_y %u, dst_z %u, "
2744 "src_resource %p, src_subresource_idx %u, src_box %p, flags %#x.\n",
2745 iface, dst_resource, dst_subresource_idx, dst_x, dst_y, dst_z,
2746 src_resource, src_subresource_idx, src_box,
flags);
2748 if (!dst_resource || !src_resource)
2758 dst_x, dst_y, dst_z, wined3d_src_resource, src_subresource_idx, src_box ? &wined3d_src_box :
NULL,
flags);
2769 TRACE(
"iface %p, resource %p, subresource_idx %u, box %p, data %p, row_pitch %u, depth_pitch %u, flags %#x.\n",
2789 FIXME(
"iface %p, view %p stub!\n", iface,
view);
2794 const UINT *num_constants)
2796 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2805 const UINT *num_constants)
2807 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2816 const UINT *num_constants)
2818 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2827 const UINT *num_constants)
2829 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2838 const UINT *num_constants)
2840 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2849 const UINT *num_constants)
2851 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2861 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2871 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2881 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2891 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2901 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2911 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, first_constant %p, num_constants %p.\n",
2925 static unsigned int once;
2927 TRACE(
"iface %p, state %p, prev %p.\n", iface,
state, prev);
2934 WARN(
"SwapDeviceContextState is not allowed on a deferred context.\n");
2943 prev_impl =
device->state;
2946 ERR(
"Failed to get wined3d state for device context state %p.\n", state_impl);
2953 device->state = state_impl;
2957 FIXME(
"D3D10 interface emulation not fully implemented yet!\n");
2964 FIXME(
"iface %p, view %p, color %p, rect %p, num_rects %u stub!\n", iface,
view,
color,
rect, num_rects);
2970 FIXME(
"iface %p, view %p, rects %p, num_rects %u stub!\n", iface,
view, rects, num_rects);
3176 FIXME(
"iface %p, decoder %p, type %#x, size %p, buffer %p, stub!\n", iface,
decoder,
type,
size,
buffer);
3188 ID3D11VideoDecoder *
decoder, ID3D11VideoDecoderOutputView *
view,
UINT key_size,
const void *
key)
3190 FIXME(
"iface %p, decoder %p, view %p, key_size %u, key %p, stub!\n", iface,
decoder,
view, key_size,
key);
3195 ID3D11VideoContext *iface, ID3D11VideoDecoder *
decoder)
3197 FIXME(
"iface %p, decoder %p, stub!\n", iface,
decoder);
3209 ID3D11VideoDecoder *
decoder,
const D3D11_VIDEO_DECODER_EXTENSION *extension)
3211 FIXME(
"iface %p, decoder %p, extension %p, stub!\n", iface,
decoder, extension);
3216 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
BOOL enable,
const RECT *
rect)
3222 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
BOOL yuv,
const D3D11_VIDEO_COLOR *
color)
3224 FIXME(
"iface %p, processor %p, yuv %d, color {%.8e, %.8e, %.8e, %.8e}, stub!\n",
3229 ID3D11VideoProcessor *processor,
const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *
space)
3231 FIXME(
"iface %p, processor %p, space %p, stub!\n", iface, processor,
space);
3237 FIXME(
"iface %p, processor %p, mode %#x, stream_idx %u, stub!\n", iface, processor,
mode, stream_idx);
3243 FIXME(
"iface %p, processor %p, enable %d, size (%lux%lu), stub!\n", iface, processor,
enable,
size.cx,
size.cy);
3247 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
BOOL enable)
3249 FIXME(
"iface %p, processor %p, enable %d, stub!\n", iface, processor,
enable);
3255 FIXME(
"iface %p, processor %p, guid %s, size %u, data %p, stub!\n",
3263 FIXME(
"iface %p, processor %p, enabled %p, rect %p, stub!\n", iface, processor,
enabled,
rect);
3267 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
BOOL *yuv, D3D11_VIDEO_COLOR *
color)
3269 FIXME(
"iface %p, processor %p, yuv %p, color %p, stub!\n", iface, processor, yuv,
color);
3273 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, D3D11_VIDEO_PROCESSOR_COLOR_SPACE *
space)
3275 FIXME(
"iface %p, processor %p, space %p, stub!\n", iface, processor,
space);
3281 FIXME(
"iface %p, processor %p, mode %p, stream_idx %p, stub!\n", iface, processor,
mode, stream_idx);
3287 FIXME(
"iface %p, processor %p, enabled %p, size %p, stub!\n", iface, processor,
enabled,
size);
3291 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
BOOL *
enabled)
3293 FIXME(
"iface %p, processor %p, enabled %p, stub!\n", iface, processor,
enabled);
3297 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
const GUID *
guid,
UINT size,
void *
data)
3299 FIXME(
"iface %p, processor %p, guid %s, size %u, data %p, stub!\n",
3305 ID3D11VideoProcessor *processor,
UINT stream_idx, D3D11_VIDEO_FRAME_FORMAT
format)
3307 FIXME(
"iface %p, processor %p, stream_idx %u, format %#x, stub!\n", iface, processor, stream_idx,
format);
3311 ID3D11VideoProcessor *processor,
UINT stream_idx,
const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *
space)
3313 FIXME(
"iface %p, processor %p, stream_idx %u, space %p, stub!\n", iface, processor, stream_idx,
space);
3317 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
3320 FIXME(
"iface %p, processor %p, stream_idx %u, rate %#x, repeat %d, custom_rate %u/%u, stub!\n",
3327 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, rect %s, stub!\n",
3334 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, rect %s, stub!\n",
3341 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, alpha %.8e, stub!\n",
3346 ID3D11VideoProcessor *processor,
UINT stream_idx,
UINT entry_count,
const UINT *entries)
3348 FIXME(
"iface %p, processor %p, stream_idx %u, entry_count %u, entries %p, stub!\n",
3349 iface, processor, stream_idx, entry_count, entries);
3353 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
3356 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, src_ratio %u/%u, dst_ratio %u/%u stub!\n",
3362 ID3D11VideoProcessor *processor,
UINT stream_idx,
BOOL enable,
float lower,
float upper)
3364 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, lower %.8e, upper %.8e, stub!\n",
3365 iface, processor, stream_idx,
enable, lower, upper);
3372 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, format %#x,"
3373 " left_view_frame0 %d, base_view_frame0 %d, flip_mode %#x, mono_offset %d, stub!\n",
3374 iface, processor, stream_idx,
enable,
format, left_view_frame0, base_view_frame0, flip_mode, mono_offset);
3378 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
BOOL enable)
3380 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, stub!\n", iface, processor, stream_idx,
enable);
3386 FIXME(
"iface %p, processor %p, stream_idx %u, filter %#x, enable %d, level %d, stub!\n",
3393 FIXME(
"iface %p, processor %p, stream_idx %u, guid %s, size %u, data %p, stub!\n",
3399 ID3D11VideoProcessor *processor,
UINT stream_idx, D3D11_VIDEO_FRAME_FORMAT *
format)
3401 FIXME(
"iface %p, processor %p, stream_idx %u, format %p, stub!\n", iface, processor, stream_idx,
format);
3405 ID3D11VideoProcessor *processor,
UINT stream_idx, D3D11_VIDEO_PROCESSOR_COLOR_SPACE *
space)
3407 FIXME(
"iface %p, processor %p, stream_idx %u, space %p, stub!\n", iface, processor, stream_idx,
space);
3411 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
3414 FIXME(
"iface %p, processor %p, stream_idx %u, rate %p, repeat %p, custom_rate %p, stub!\n",
3415 iface, processor, stream_idx,
rate, repeat, custom_rate);
3421 FIXME(
"iface %p, processor %p, stream_idx %u, enabled %p, rect %p, stub!\n",
3428 FIXME(
"iface %p, processor %p, stream_idx %u, enabled %p, rect %p, stub!\n",
3435 FIXME(
"iface %p, processor %p, stream_idx %u, enabled %p, alpha %p, stub!\n",
3442 FIXME(
"iface %p, processor %p, stream_idx %u, count %u, entries %p, stub!\n",
3443 iface, processor, stream_idx,
count, entries);
3447 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
3450 FIXME(
"iface %p, processor %p, stream_idx %u, enabled %p, src_ratio %p, dst_ratio %p, stub!\n",
3451 iface, processor, stream_idx,
enabled, src_ratio, dst_ratio);
3455 ID3D11VideoProcessor *processor,
UINT stream_idx,
BOOL *
enabled,
float *lower,
float *upper)
3457 FIXME(
"iface %p, processor %p, stream_idx %u, enabled %p, lower %p, upper %p, stub!\n",
3458 iface, processor, stream_idx,
enabled, lower, upper);
3462 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
BOOL *
enabled,
3466 FIXME(
"iface %p, processor %p, stream_idx %u, enabled %p, format %p, left_view_frame0 %p,"
3467 " base_view_frame0 %p flip_mode %p, mono_offset %p, stub!\n",
3468 iface, processor, stream_idx,
enabled,
format, left_view_frame0, base_view_frame0, flip_mode, mono_offset);
3472 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
BOOL *
enabled)
3474 FIXME(
"iface %p, processor %p, stream_idx %u, enabled %p, stub!\n", iface, processor, stream_idx,
enabled);
3478 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor,
UINT stream_idx,
3481 FIXME(
"iface %p, processor %p, stream_idx %u, filter %#x, enabled %p, level %p, stub!\n",
3488 FIXME(
"iface %p, processor %p, stream_idx %u, guid %s, size %u, data %p, stub!\n",
3494 ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, ID3D11VideoProcessorOutputView *
view,
3495 UINT frame_idx,
UINT stream_count,
const D3D11_VIDEO_PROCESSOR_STREAM *streams)
3497 FIXME(
"iface %p, processor %p, view %p, frame_idx %u, stream_count %u, streams %p, stub!\n",
3498 iface, processor,
view, frame_idx, stream_count, streams);
3510 ID3D11VideoContext *iface, ID3D11CryptoSession *
session,
3511 ID3D11Texture2D *src_surface, ID3D11Texture2D *dst_surface,
UINT iv_size,
void *iv)
3513 FIXME(
"iface %p, session %p, src_surface %p, dst_surface %p, iv_size %u, iv %p, stub!\n",
3514 iface,
session, src_surface, dst_surface, iv_size, iv);
3518 ID3D11CryptoSession *
session, ID3D11Texture2D *src_surface, ID3D11Texture2D *dst_surface,
3519 D3D11_ENCRYPTED_BLOCK_INFO *block_info,
UINT key_size,
const void *
key,
UINT iv_size,
void *iv)
3521 FIXME(
"iface %p, session %p, src_surface %p, dst_surface %p, block_info %p,"
3522 " key_size %u, key %p, iv_size %u, iv %p, stub!\n",
3523 iface,
session, src_surface, dst_surface, block_info, key_size,
key, iv_size, iv);
3529 FIXME(
"iface %p, session %p, random_number_size %u, random_number %p, stub!\n",
3534 ID3D11VideoContext *iface, ID3D11CryptoSession *
session)
3536 FIXME(
"iface %p, session %p, stub!\n", iface,
session);
3554 ID3D11AuthenticatedChannel *
channel,
UINT input_size,
const void *
input,
UINT output_size,
void *output)
3556 FIXME(
"iface %p, channel %p, input_size %u, input %p, output_size %u, output %p stub!\n",
3557 iface,
channel, input_size,
input, output_size, output);
3562 ID3D11VideoContext *iface, ID3D11AuthenticatedChannel *
channel,
3563 UINT input_size,
const void *
input, D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output)
3565 FIXME(
"iface %p, channel %p, input_size %u, input %p, output %p, stub!\n",
3573 FIXME(
"iface %p, processor %p, stream_idx %u, enable %d, rotation %#x, stub!\n",
3574 iface, processor, stream_idx,
enable, rotation);
3580 FIXME(
"iface %p, processor %p, stream_idx %u, enable %p, rotation %p, stub!\n",
3581 iface, processor, stream_idx,
enable, rotation);
3674 TRACE(
"iface %p.\n", iface);
3683 TRACE(
"iface %p.\n", iface);
3690 TRACE(
"iface %p.\n", iface);
3697 TRACE(
"iface %p.\n", iface);
3705 FIXME(
"iface %p, enable %#x stub!\n", iface,
enable);
3712 FIXME(
"iface %p stub!\n", iface);
3749 TRACE(
"iface %p.\n", iface);
3758 TRACE(
"iface %p.\n", iface);
3773 TRACE(
"iface %p.\n", iface);
3786 TRACE(
"iface %p.\n", iface);
3813 ID3D11Device2_AddRef(&
device->ID3D11Device2_iface);
3823 return IUnknown_QueryInterface(
device->outer_unk, iid,
out);
3829 return IUnknown_AddRef(
device->outer_unk);
3835 return IUnknown_Release(
device->outer_unk);
3839 const D3D11_SUBRESOURCE_DATA *
data, ID3D11Buffer **
buffer)
3850 *
buffer = &
object->ID3D11Buffer_iface;
3856 const D3D11_TEXTURE1D_DESC *
desc,
const D3D11_SUBRESOURCE_DATA *
data, ID3D11Texture1D **
texture)
3867 *
texture = &
object->ID3D11Texture1D_iface;
3873 const D3D11_TEXTURE2D_DESC *
desc,
const D3D11_SUBRESOURCE_DATA *
data, ID3D11Texture2D **
texture)
3884 *
texture = &
object->ID3D11Texture2D_iface;
3890 const D3D11_TEXTURE3D_DESC *
desc,
const D3D11_SUBRESOURCE_DATA *
data, ID3D11Texture3D **
texture)
3901 *
texture = &
object->ID3D11Texture3D_iface;
3907 ID3D11Resource *
resource,
const D3D11_SHADER_RESOURCE_VIEW_DESC *
desc, ID3D11ShaderResourceView **
view)
3923 *
view = &
object->ID3D11ShaderResourceView_iface;
3929 ID3D11Resource *
resource,
const D3D11_UNORDERED_ACCESS_VIEW_DESC *
desc, ID3D11UnorderedAccessView **
view)
3942 *
view = &
object->ID3D11UnorderedAccessView_iface;
3948 ID3D11Resource *
resource,
const D3D11_RENDER_TARGET_VIEW_DESC *
desc, ID3D11RenderTargetView **
view)
3964 *
view = &
object->ID3D11RenderTargetView_iface;
3970 ID3D11Resource *
resource,
const D3D11_DEPTH_STENCIL_VIEW_DESC *
desc, ID3D11DepthStencilView **
view)
3983 *
view = &
object->ID3D11DepthStencilView_iface;
3990 SIZE_T shader_byte_code_length, ID3D11InputLayout **input_layout)
3996 TRACE(
"iface %p, element_descs %p, element_count %u, shader_byte_code %p, shader_byte_code_length %Iu, "
3997 "input_layout %p.\n", iface, element_descs,
element_count, shader_byte_code,
3998 shader_byte_code_length, input_layout);
4001 shader_byte_code, shader_byte_code_length, &
object)))
4004 *input_layout = &
object->ID3D11InputLayout_iface;
4010 SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11VertexShader **
shader)
4016 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.\n",
4017 iface, byte_code, byte_code_length, class_linkage,
shader);
4022 FIXME(
"Class linkage is not implemented yet.\n");
4027 *
shader = &
object->ID3D11VertexShader_iface;
4033 SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11GeometryShader **
shader)
4039 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.\n",
4040 iface, byte_code, byte_code_length, class_linkage,
shader);
4045 FIXME(
"Class linkage is not implemented yet.\n");
4051 *
shader = &
object->ID3D11GeometryShader_iface;
4057 const void *byte_code,
SIZE_T byte_code_length,
const D3D11_SO_DECLARATION_ENTRY *so_entries,
4058 UINT entry_count,
const UINT *buffer_strides,
UINT strides_count,
UINT rasterizer_stream,
4059 ID3D11ClassLinkage *class_linkage, ID3D11GeometryShader **
shader)
4065 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, so_entries %p, entry_count %u, "
4066 "buffer_strides %p, strides_count %u, rasterizer_stream %u, class_linkage %p, shader %p.\n",
4067 iface, byte_code, byte_code_length, so_entries, entry_count, buffer_strides, strides_count,
4068 rasterizer_stream, class_linkage,
shader);
4073 FIXME(
"Class linkage is not implemented yet.\n");
4076 so_entries, entry_count, buffer_strides, strides_count, rasterizer_stream, &
object)))
4081 *
shader = &
object->ID3D11GeometryShader_iface;
4087 SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11PixelShader **
shader)
4093 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.\n",
4094 iface, byte_code, byte_code_length, class_linkage,
shader);
4099 FIXME(
"Class linkage is not implemented yet.\n");
4104 *
shader = &
object->ID3D11PixelShader_iface;
4110 SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11HullShader **
shader)
4116 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.\n",
4117 iface, byte_code, byte_code_length, class_linkage,
shader);
4122 FIXME(
"Class linkage is not implemented yet.\n");
4127 *
shader = &
object->ID3D11HullShader_iface;
4133 SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11DomainShader **
shader)
4139 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.\n",
4140 iface, byte_code, byte_code_length, class_linkage,
shader);
4145 FIXME(
"Class linkage is not implemented yet.\n");
4150 *
shader = &
object->ID3D11DomainShader_iface;
4156 SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11ComputeShader **
shader)
4162 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.\n",
4163 iface, byte_code, byte_code_length, class_linkage,
shader);
4168 FIXME(
"Class linkage is not implemented yet.\n");
4173 *
shader = &
object->ID3D11ComputeShader_iface;
4179 ID3D11ClassLinkage **class_linkage)
4185 TRACE(
"iface %p, class_linkage %p.\n", iface, class_linkage);
4190 *class_linkage = &
object->ID3D11ClassLinkage_iface;
4207 *
state = &
object->ID3D11BlendState1_iface;
4213 const D3D11_BLEND_DESC *
desc, ID3D11BlendState **blend_state)
4218 TRACE(
"iface %p, desc %p, blend_state %p.\n", iface,
desc, blend_state);
4243 const D3D11_DEPTH_STENCIL_DESC *
desc, ID3D11DepthStencilState **depth_stencil_state)
4249 TRACE(
"iface %p, desc %p, depth_stencil_state %p.\n", iface,
desc, depth_stencil_state);
4254 *depth_stencil_state = &
object->ID3D11DepthStencilState_iface;
4267 TRACE(
"iface %p, desc %p, rasterizer_state %p.\n", iface,
desc, rasterizer_state);
4278 *rasterizer_state = (ID3D11RasterizerState *)&
object->ID3D11RasterizerState1_iface;
4284 const D3D11_SAMPLER_DESC *
desc, ID3D11SamplerState **sampler_state)
4290 TRACE(
"iface %p, desc %p, sampler_state %p.\n", iface,
desc, sampler_state);
4295 *sampler_state = &
object->ID3D11SamplerState_iface;
4314 *
query = &
object->ID3D11Query_iface;
4318 ID3D11Query_Release(&
object->ID3D11Query_iface);
4340 ID3D11Query_Release(&
object->ID3D11Query_iface);
4361 if (!(
object =
calloc(1,
sizeof(*
object))))
4367 WARN(
"Failed to create wined3d deferred context, hr %#lx.\n",
hr);
4372 TRACE(
"Created deferred context %p.\n",
object);
4379 ID3D11DeviceContext **
context)
4390 *
context = (ID3D11DeviceContext *)&
object->ID3D11DeviceContext1_iface;
4403 UINT *format_support)
4416 unsigned int bind_flags;
4418 D3D11_FORMAT_SUPPORT
flag;
4437 FIXME(
"iface %p, format %u, format_support %p partial-stub!\n", iface,
format, format_support);
4443 *format_support = 0;
4447 *format_support = 0;
4450 feature_level =
device->state->feature_level;
4462 WARN(
"Failed to check device format support, hr %#lx.\n",
hr);
4467 *format_support |= flag_mapping[
i].flag;
4472 *format_support &= ~D3D11_FORMAT_SUPPORT_BUFFER;
4474 if (*format_support & (D3D11_FORMAT_SUPPORT_TEXTURE1D
4475 | D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_TEXTURE3D))
4477 *format_support |= D3D11_FORMAT_SUPPORT_SHADER_LOAD;
4478 *format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE;
4479 *format_support |= D3D11_FORMAT_SUPPORT_TEXTURECUBE;
4482 *format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER;
4484 if (*format_support & D3D11_FORMAT_SUPPORT_DEPTH_STENCIL)
4487 *format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON;
4490 *format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON;
4501 *format_support |= D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
4502 | D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
4503 | D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD;
4518 TRACE(
"iface %p, format %s, sample_count %u, quality_level_count %p.\n",
4521 if (!quality_level_count)
4524 *quality_level_count = 0;
4528 if (sample_count == 1)
4530 *quality_level_count = 1;
4553 FIXME(
"iface %p, info %p stub!\n", iface,
info);
4560 FIXME(
"iface %p, desc %p, type %p, active_counter_count %p, name %p, name_length %p, "
4561 "units %p, units_length %p, description %p, description_length %p stub!\n",
4562 iface,
desc,
type, active_counter_count,
name, name_length,
4569 void *feature_support_data,
UINT feature_support_data_size)
4575 TRACE(
"iface %p, feature %u, feature_support_data %p, feature_support_data_size %u.\n",
4576 iface,
feature, feature_support_data, feature_support_data_size);
4583 if (feature_support_data_size !=
sizeof(*threading_data))
4585 WARN(
"Invalid data size.\n");
4591 FIXME(
"Returning fake threading support data.\n");
4600 if (feature_support_data_size !=
sizeof(*doubles_data))
4602 WARN(
"Invalid data size.\n");
4611 WARN(
"Failed to get device caps, hr %#lx.\n",
hr);
4622 if (feature_support_data_size !=
sizeof(*
options))
4624 WARN(
"Invalid data size.\n");
4633 WARN(
"Failed to get device caps, hr %#lx.\n",
hr);
4644 if (feature_support_data_size !=
sizeof(*
options))
4646 WARN(
"Invalid data size.\n");
4655 WARN(
"Failed to get device caps, hr %#lx.\n",
hr);
4659 options->ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x
4667 if (feature_support_data_size !=
sizeof(*
options))
4669 WARN(
"Invalid data size.\n");
4673 FIXME(
"Returning fake Options support data.\n");
4682 options->MapNoOverwriteOnDynamicConstantBuffer =
TRUE;
4684 options->MultisampleRTVWithForcedSampleCountOne =
FALSE;
4694 if (feature_support_data_size !=
sizeof(*
options))
4696 WARN(
"Invalid data size.\n");
4700 FIXME(
"Returning fake Options1 support data.\n");
4703 options->ClearViewAlsoSupportsDepthOnlyFormats =
FALSE;
4711 if (feature_support_data_size !=
sizeof(*
options))
4713 WARN(
"Invalid data size.\n");
4722 WARN(
"Failed to get device caps, hr %#lx.\n",
hr);
4740 if (feature_support_data_size !=
sizeof(*
options))
4742 WARN(
"Invalid data size.\n");
4751 WARN(
"Failed to get device caps, hr %#lx.\n",
hr);
4755 options->VPAndRTArrayIndexFromAnyShaderFeedingRasterizer
4763 if (feature_support_data_size !=
sizeof(*
options))
4765 WARN(
"Invalid data size.\n");
4769 FIXME(
"Returning fake data architecture info.\n");
4777 if (feature_support_data_size !=
sizeof(*
data))
4779 WARN(
"Invalid size %u for D3D11_FEATURE_FORMAT_SUPPORT.\n", feature_support_data_size);
4800 if (
FAILED(
hr = ID3D11Device2_QueryInterface(iface, &IID_IDXGIDevice, (
void **)&
dxgi_device)))
4816 if (
FAILED(
hr = ID3D11Device2_QueryInterface(iface, &IID_IDXGIDevice, (
void **)&
dxgi_device)))
4832 if (
FAILED(
hr = ID3D11Device2_QueryInterface(iface, &IID_IDXGIDevice, (
void **)&
dxgi_device)))
4844 TRACE(
"iface %p.\n", iface);
4846 return device->state->feature_level;
4851 FIXME(
"iface %p stub!\n", iface);
4858 WARN(
"iface %p stub!\n", iface);
4876 FIXME(
"iface %p, flags %#x stub!\n", iface,
flags);
4883 FIXME(
"iface %p stub!\n", iface);
4911 *
context = &
object->ID3D11DeviceContext1_iface;
4930 *
state = &
object->ID3D11RasterizerState1_iface;
4945 TRACE(
"iface %p, flags %#x, feature_levels %p, feature_level_count %u, "
4946 "sdk_version %u, emulated_interface %s, chosen_feature_level %p, state %p.\n",
4955 if (!feature_level_count)
4963 if (chosen_feature_level)
4973 if (!(state_impl =
calloc(1,
sizeof(*state_impl))))
4997 if (chosen_feature_level)
4998 *chosen_feature_level = 0;
5040 FIXME(
"iface %p, resource %p, tile_count %p, mip_desc %p, tile_shape %p, "
5041 "subresource_tiling_count %p, first_subresource_tiling %u, subresource_tiling %p stub!\n",
5042 iface,
resource, tile_count, mip_desc, tile_shape,
5043 subresource_tiling_count, first_subresource_tiling, subresource_tiling);
5049 FIXME(
"iface %p, format %#x, sample_count %u, flags %#x, quality_level_count %p stub!\n",
5050 iface,
format, sample_count,
flags, quality_level_count);
5137 else if (!
device->d3d11_only
5145 *
out = &
device->ID3D10Multithread_iface;
5149 *
out = &
device->IWineDXGIDeviceParent_iface;
5153 *
out = &
device->ID3D11VideoDevice1_iface;
5188 for (
i = 0;
i <
device->context_state_count; ++
i)
5194 if (
device->wined3d_device)
5213 return IUnknown_QueryInterface(
device->outer_unk, iid,
out);
5219 return IUnknown_AddRef(
device->outer_unk);
5225 return IUnknown_Release(
device->outer_unk);
5276 wined3d_buffers[
i].
offset = 0;
5293 WARN(
"View count %u exceeds limit; ignoring call.\n",
count);
5305 type, start_slot,
count, wined3d_views);
5317 WARN(
"Sampler count %u exceeds limit; ignoring call.\n",
count);
5329 type, start_slot,
count, wined3d_samplers);
5335 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
5345 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
5346 iface, start_slot, view_count, views);
5366 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
5367 iface, start_slot, sampler_count,
samplers);
5385 UINT start_index_location,
INT base_vertex_location)
5389 TRACE(
"iface %p, index_count %u, start_index_location %u, base_vertex_location %d.\n",
5390 iface, index_count, start_index_location, base_vertex_location);
5393 base_vertex_location, start_index_location, index_count, 0, 0);
5397 UINT start_vertex_location)
5401 TRACE(
"iface %p, vertex_count %u, start_vertex_location %u\n",
5410 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
5423 TRACE(
"iface %p, input_layout %p\n", iface, input_layout);
5436 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, strides %p, offsets %p\n",
5466 TRACE(
"iface %p, buffer %p, format %s, offset %u.\n",
5475 UINT instance_index_count,
UINT instance_count,
UINT start_index_location,
5476 INT base_vertex_location,
UINT start_instance_location)
5480 TRACE(
"iface %p, instance_index_count %u, instance_count %u, start_index_location %u, "
5481 "base_vertex_location %d, start_instance_location %u.\n",
5482 iface, instance_index_count, instance_count, start_index_location,
5483 base_vertex_location, start_instance_location);
5486 start_index_location, instance_index_count, start_instance_location, instance_count);
5490 UINT instance_vertex_count,
UINT instance_count,
5491 UINT start_vertex_location,
UINT start_instance_location)
5495 TRACE(
"iface %p, instance_vertex_count %u, instance_count %u, start_vertex_location %u, "
5496 "start_instance_location %u.\n", iface, instance_vertex_count, instance_count,
5497 start_vertex_location, start_instance_location);
5500 instance_vertex_count, start_instance_location, instance_count);
5506 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
5538 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
5539 iface, start_slot, view_count, views);
5547 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
5548 iface, start_slot, sampler_count,
samplers);
5568 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
5569 iface, start_slot, view_count, views);
5577 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
5578 iface, start_slot, sampler_count,
samplers);
5591 TRACE(
"iface %p, rtv_count %u, rtvs %p, depth_stencil_view %p.\n", iface, rtv_count, rtvs, depth_stencil_view);
5595 WARN(
"View count %u exceeds limit.\n", rtv_count);
5599 for (
i = 0;
i < rtv_count; ++
i)
5618 TRACE(
"iface %p, blend_state %p, blend_factor %s, sample_mask 0x%08x.\n",
5619 iface, blend_state,
debug_float4(blend_factor), sample_mask);
5624 blend_factor, sample_mask);
5633 TRACE(
"iface %p, depth_stencil_state %p, stencil_ref %u.\n",
5634 iface, depth_stencil_state, stencil_ref);
5648 TRACE(
"iface %p, target_count %u, targets %p, offsets %p.\n", iface, target_count, targets,
offsets);
5664 FIXME(
"iface %p stub!\n", iface);
5672 TRACE(
"iface %p, rasterizer_state %p.\n", iface, rasterizer_state);
5686 TRACE(
"iface %p, viewport_count %u, viewports %p.\n", iface, viewport_count, viewports);
5691 for (
i = 0;
i < viewport_count; ++
i)
5709 TRACE(
"iface %p, rect_count %u, rects %p.\n", iface, rect_count, rects);
5725 TRACE(
"iface %p, dst_resource %p, dst_subresource_idx %u, dst_x %u, dst_y %u, dst_z %u, "
5726 "src_resource %p, src_subresource_idx %u, src_box %p.\n",
5727 iface, dst_resource, dst_subresource_idx, dst_x, dst_y, dst_z,
5728 src_resource, src_subresource_idx, src_box);
5730 if (!dst_resource || !src_resource)
5740 wined3d_dst_resource, dst_subresource_idx, dst_x, dst_y, dst_z,
5741 wined3d_src_resource, src_subresource_idx, src_box ? &wined3d_src_box :
NULL, 0);
5750 TRACE(
"iface %p, dst_resource %p, src_resource %p.\n", iface, dst_resource, src_resource);
5755 wined3d_dst_resource, wined3d_src_resource);
5763 ID3D11Resource *d3d11_resource;
5765 TRACE(
"iface %p, resource %p, subresource_idx %u, box %p, data %p, row_pitch %u, depth_pitch %u.\n",
5768 ID3D10Resource_QueryInterface(
resource, &IID_ID3D11Resource, (
void **)&d3d11_resource);
5770 d3d11_resource, subresource_idx, (
const D3D11_BOX *)
box,
data, row_pitch, depth_pitch);
5771 ID3D11Resource_Release(d3d11_resource);
5779 const struct wined3d_color color = {color_rgba[0], color_rgba[1], color_rgba[2], color_rgba[3]};
5782 TRACE(
"iface %p, render_target_view %p, color_rgba %s.\n",
5790 ERR(
"Failed to clear view, hr %#lx.\n",
hr);
5798 DWORD wined3d_flags;
5801 TRACE(
"iface %p, depth_stencil_view %p, flags %#x, depth %.8e, stencil %u.\n",
5811 ERR(
"Failed to clear view, hr %#lx.\n",
hr);
5820 TRACE(
"iface %p, view %p.\n", iface,
view);
5833 TRACE(
"iface %p, dst_resource %p, dst_subresource_idx %u, "
5834 "src_resource %p, src_subresource_idx %u, format %s.\n",
5835 iface, dst_resource, dst_subresource_idx,
5842 wined3d_dst_resource, dst_subresource_idx,
5849 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
5862 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
5863 iface, start_slot, view_count, views);
5866 for (
i = 0;
i < view_count; ++
i)
5880 ID3D10ShaderResourceView_AddRef(views[
i]);
5905 ID3D10PixelShader_AddRef(*
shader);
5914 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
5915 iface, start_slot, sampler_count,
samplers);
5918 for (
i = 0;
i < sampler_count; ++
i)
5957 ID3D10VertexShader_AddRef(*
shader);
5963 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
5976 TRACE(
"iface %p, input_layout %p.\n", iface, input_layout);
5980 device->immediate_context.wined3d_context)))
5983 *input_layout =
NULL;
5990 ID3D10InputLayout_AddRef(*input_layout);
5999 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p, strides %p, offsets %p.\n",
6010 ERR(
"Failed to get vertex buffer.\n");
6049 ID3D10Buffer_AddRef(*
buffer);
6055 TRACE(
"iface %p, start_slot %u, buffer_count %u, buffers %p.\n",
6082 ID3D10GeometryShader_AddRef(*
shader);
6090 TRACE(
"iface %p, topology %p.\n", iface, topology);
6104 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
6105 iface, start_slot, view_count, views);
6108 for (
i = 0;
i < view_count; ++
i)
6122 ID3D10ShaderResourceView_AddRef(views[
i]);
6133 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
6134 iface, start_slot, sampler_count,
samplers);
6137 for (
i = 0;
i < sampler_count; ++
i)
6185 TRACE(
"iface %p, start_slot %u, view_count %u, views %p.\n",
6186 iface, start_slot, view_count, views);
6189 for (
i = 0;
i < view_count; ++
i)
6203 ID3D10ShaderResourceView_AddRef(views[
i]);
6214 TRACE(
"iface %p, start_slot %u, sampler_count %u, samplers %p.\n",
6215 iface, start_slot, sampler_count,
samplers);
6218 for (
i = 0;
i < sampler_count; ++
i)
6243 TRACE(
"iface %p, view_count %u, render_target_views %p, depth_stencil_view %p.\n",
6244 iface, view_count, render_target_views, depth_stencil_view);
6247 if (render_target_views)
6252 for (
i = 0;
i < view_count; ++
i)
6255 device->immediate_context.wined3d_context,
i))
6258 render_target_views[
i] =
NULL;
6263 ID3D10RenderTargetView_AddRef(render_target_views[
i]);
6267 if (depth_stencil_view)
6274 *depth_stencil_view =
NULL;
6279 ID3D10DepthStencilView_AddRef(*depth_stencil_view);
6289 ID3D11BlendState *d3d11_blend_state;
6291 TRACE(
"iface %p, blend_state %p, blend_factor %p, sample_mask %p.\n",
6292 iface, blend_state, blend_factor, sample_mask);
6295 &d3d11_blend_state, blend_factor, sample_mask);
6299 if (d3d11_blend_state)
6303 ID3D10BlendState_AddRef(*blend_state);
6306 *blend_state =
NULL;
6309 if (d3d11_blend_state)
6310 ID3D11BlendState_Release(d3d11_blend_state);
6317 ID3D11DepthStencilState *d3d11_iface =
NULL;
6319 TRACE(
"iface %p, depth_stencil_state %p, stencil_ref %p.\n",
6320 iface, depth_stencil_state, stencil_ref);
6323 &d3d11_iface, stencil_ref);
6325 if (depth_stencil_state)
6330 ID3D10DepthStencilState_AddRef(*depth_stencil_state);
6333 *depth_stencil_state =
NULL;
6337 ID3D11DepthStencilState_Release(d3d11_iface);
6346 TRACE(
"iface %p, buffer_count %u, buffers %p, offsets %p.\n",
6375 TRACE(
"iface %p, rasterizer_state %p.\n", iface, rasterizer_state);
6385 *rasterizer_state =
NULL;
6395 unsigned int actual_count =
ARRAY_SIZE(wined3d_vp),
i;
6397 TRACE(
"iface %p, viewport_count %p, viewports %p.\n", iface, viewport_count, viewports);
6399 if (!viewport_count)
6404 &actual_count, viewports ? wined3d_vp :
NULL);
6409 *viewport_count = actual_count;
6413 if (*viewport_count > actual_count)
6414 memset(&viewports[actual_count], 0, (*viewport_count - actual_count) *
sizeof(*viewports));
6416 *viewport_count =
min(actual_count, *viewport_count);
6417 for (
i = 0;
i < *viewport_count; ++
i)
6431 unsigned int actual_count;
6433 TRACE(
"iface %p, rect_count %p, rects %p.\n", iface, rect_count, rects);
6438 actual_count = *rect_count;
6446 *rect_count = actual_count;
6450 if (*rect_count > actual_count)
6451 memset(&rects[actual_count], 0, (*rect_count - actual_count) *
sizeof(*rects));
6456 TRACE(
"iface %p.\n", iface);
6466 FIXME(
"iface %p, flags %#x stub!\n", iface,
flags);
6473 FIXME(
"iface %p stub!\n", iface);
6512 TRACE(
"iface %p.\n", iface);
6521 TRACE(
"iface %p.\n", iface);
6530 D3D11_BUFFER_DESC d3d11_desc;
6536 d3d11_desc.ByteWidth =
desc->ByteWidth;
6541 d3d11_desc.StructureByteStride = 0;
6546 *
buffer = &
object->ID3D10Buffer_iface;
6555 D3D11_TEXTURE1D_DESC d3d11_desc;
6561 d3d11_desc.Width =
desc->Width;
6562 d3d11_desc.MipLevels =
desc->MipLevels;
6563 d3d11_desc.ArraySize =
desc->ArraySize;
6564 d3d11_desc.Format =
desc->Format;
6573 *
texture = &
object->ID3D10Texture1D_iface;
6583 D3D11_TEXTURE2D_DESC d3d11_desc;
6589 d3d11_desc.Width =
desc->Width;
6590 d3d11_desc.Height =
desc->Height;
6591 d3d11_desc.MipLevels =
desc->MipLevels;
6592 d3d11_desc.ArraySize =
desc->ArraySize;
6593 d3d11_desc.Format =
desc->Format;
6594 d3d11_desc.SampleDesc =
desc->SampleDesc;
6603 *
texture = &
object->ID3D10Texture2D_iface;
6613 D3D11_TEXTURE3D_DESC d3d11_desc;
6619 d3d11_desc.Width =
desc->Width;
6620 d3d11_desc.Height =
desc->Height;
6621 d3d11_desc.Depth =
desc->Depth;
6622 d3d11_desc.MipLevels =
desc->MipLevels;
6623 d3d11_desc.Format =
desc->Format;
6632 *
texture = &
object->ID3D10Texture3D_iface;
6642 ID3D11Resource *d3d11_resource;
6652 if (
FAILED(
hr = ID3D10Resource_QueryInterface(
resource, &IID_ID3D11Resource, (
void **)&d3d11_resource)))
6654 ERR(
"Resource does not implement ID3D11Resource.\n");
6660 ID3D11Resource_Release(d3d11_resource);
6664 *
view = &
object->ID3D10ShaderResourceView1_iface;
6683 ID3D11Resource *d3d11_resource;
6693 if (
FAILED(
hr = ID3D10Resource_QueryInterface(
resource, &IID_ID3D11Resource, (
void **)&d3d11_resource)))
6695 ERR(
"Resource does not implement ID3D11Resource.\n");
6700 ID3D11Resource_Release(d3d11_resource);
6704 *
view = &
object->ID3D10RenderTargetView_iface;
6718 D3D11_DEPTH_STENCIL_VIEW_DESC d3d11_desc;
6720 ID3D11Resource *d3d11_resource;
6729 d3d11_desc.Format =
desc->Format;
6731 d3d11_desc.Flags = 0;
6732 memcpy(&d3d11_desc.u, &
desc->u,
sizeof(d3d11_desc.u));
6735 if (
FAILED(
hr = ID3D10Resource_QueryInterface(
resource, &IID_ID3D11Resource, (
void **)&d3d11_resource)))
6737 ERR(
"Resource does not implement ID3D11Resource.\n");
6742 ID3D11Resource_Release(d3d11_resource);
6746 *
view = &
object->ID3D10DepthStencilView_iface;
6753 const void *shader_byte_code,
SIZE_T shader_byte_code_length,
6760 TRACE(
"iface %p, element_descs %p, element_count %u, shader_byte_code %p, "
6761 "shader_byte_code_length %Iu, input_layout %p.\n",
6763 shader_byte_code_length, input_layout);
6766 shader_byte_code, shader_byte_code_length, &
object)))
6769 *input_layout = &
object->ID3D10InputLayout_iface;
6781 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, shader %p.\n",
6782 iface, byte_code, byte_code_length,
shader);
6789 *
shader = &
object->ID3D10VertexShader_iface;
6801 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, shader %p.\n",
6802 iface, byte_code, byte_code_length,
shader);
6810 *
shader = &
object->ID3D10GeometryShader_iface;
6820 D3D11_SO_DECLARATION_ENTRY *so_entries =
NULL;
6822 unsigned int i, stride_count = 1;
6825 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, output_stream_decls %p, "
6826 "output_stream_decl_count %u, output_stream_stride %u, shader %p.\n",
6827 iface, byte_code, byte_code_length, output_stream_decls,
6828 output_stream_decl_count, output_stream_stride,
shader);
6832 if (!output_stream_decl_count && output_stream_stride)
6834 WARN(
"Stride must be 0 when declaration entry count is 0.\n");
6838 if (output_stream_decl_count
6839 && !(so_entries =
calloc(output_stream_decl_count,
sizeof(*so_entries))))
6841 ERR(
"Failed to allocate D3D11 SO declaration array memory.\n");
6845 for (
i = 0;
i < output_stream_decl_count; ++
i)
6847 so_entries[
i].Stream = 0;
6848 so_entries[
i].SemanticName = output_stream_decls[
i].
SemanticName;
6852 so_entries[
i].OutputSlot = output_stream_decls[
i].
OutputSlot;
6854 if (output_stream_decls[
i].OutputSlot)
6857 if (output_stream_stride)
6859 WARN(
"Stride must be 0 when multiple output slots are used.\n");
6867 so_entries, output_stream_decl_count, &output_stream_stride, stride_count, 0, &
object);
6872 *
shader = &
object->ID3D10GeometryShader_iface;
6884 TRACE(
"iface %p, byte_code %p, byte_code_length %Iu, shader %p.\n",
6885 iface, byte_code, byte_code_length,
shader);
6892 *
shader = &
object->ID3D10PixelShader_iface;
6901 ID3D11BlendState *
object;
6904 TRACE(
"iface %p, desc %p, blend_state %p.\n", iface,
desc, blend_state);
6919 TRACE(
"iface %p, desc %p, blend_state %p.\n", iface,
desc, blend_state);
6928 if (
desc->BlendEnable[
i] !=
desc->BlendEnable[
i + 1]
6929 ||
desc->RenderTargetWriteMask[
i] !=
desc->RenderTargetWriteMask[
i + 1])
6955 TRACE(
"iface %p, desc %p, depth_stencil_state %p.\n", iface,
desc, depth_stencil_state);
6960 *depth_stencil_state = &
object->ID3D10DepthStencilState_iface;
6973 TRACE(
"iface %p, desc %p, rasterizer_state %p.\n", iface,
desc, rasterizer_state);
6984 *rasterizer_state = &
object->ID3D10RasterizerState_iface;
6996 TRACE(
"iface %p, desc %p, sampler_state %p.\n", iface,
desc, sampler_state);
7001 *sampler_state = &
object->ID3D10SamplerState_iface;
7020 *
query = &
object->ID3D10Query_iface;
7024 ID3D10Query_Release(&
object->ID3D10Query_iface);
7046 ID3D10Query_Release(&
object->ID3D10Query_iface);
7063 TRACE(
"iface %p, format %s, format_support %p.\n",
7074 TRACE(
"iface %p, format %s, sample_count %u, quality_level_count %p.\n",
7078 sample_count, quality_level_count);
7083 FIXME(
"iface %p, counter_info %p stub!\n", iface, counter_info);
7090 FIXME(
"iface %p, desc %p, type %p, active_counters %p, name %p, name_length %p, "
7091 "units %p, units_length %p, description %p, description_length %p stub!\n",
7100 FIXME(
"iface %p stub!\n", iface);
7108 FIXME(
"iface %p, resource_handle %p, guid %s, resource %p stub!\n",
7133 TRACE(
"iface %p.\n", iface);
7266 return IUnknown_QueryInterface(
device->outer_unk, iid,
out);
7273 TRACE(
"iface %p.\n", iface);
7275 return IUnknown_AddRef(
device->outer_unk);
7282 TRACE(
"iface %p.\n", iface);
7284 return IUnknown_Release(
device->outer_unk);
7289 TRACE(
"iface %p.\n", iface);
7296 TRACE(
"iface %p.\n", iface);
7303 FIXME(
"iface %p, enable %#x stub!\n", iface,
enable);
7310 FIXME(
"iface %p stub!\n", iface);
7335 return IUnknown_QueryInterface(
device->outer_unk, iid,
out);
7341 return IUnknown_AddRef(
device->outer_unk);
7347 return IUnknown_Release(
device->outer_unk);
7351 const D3D11_VIDEO_DECODER_DESC *
desc,
const D3D11_VIDEO_DECODER_CONFIG *
config, ID3D11VideoDecoder **
decoder)
7362 *
decoder = &
object->ID3D11VideoDecoder_iface;
7367 ID3D11VideoProcessorEnumerator *enumerator,
UINT rate_conversion_index, ID3D11VideoProcessor **processor)
7369 FIXME(
"iface %p, enumerator %p, rate_conversion_index %u, processor %p, stub!\n",
7370 iface, enumerator, rate_conversion_index, processor);
7375 D3D11_AUTHENTICATED_CHANNEL_TYPE
type, ID3D11AuthenticatedChannel **
channel)
7383 ID3D11CryptoSession **
session)
7385 FIXME(
"iface %p, encryption_type %s, profile %s, key_exchange_type %s, session %p, stub!\n",
7391 ID3D11Resource *
resource,
const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *
desc, ID3D11VideoDecoderOutputView **
view)
7407 *
view = &
object->ID3D11VideoDecoderOutputView_iface;
7414 const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *
desc, ID3D11VideoProcessorInputView **
view)
7416 FIXME(
"iface %p, resource %p, enumerator %p, desc %p, view %p, stub!\n", iface,
resource, enumerator,
desc,
view);
7422 const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *
desc, ID3D11VideoProcessorOutputView **
view)
7424 FIXME(
"iface %p, resource %p, enumerator %p, desc %p, view %p, stub!\n", iface,
resource, enumerator,
desc,
view);
7429 const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *
desc, ID3D11VideoProcessorEnumerator **enumerator)
7431 FIXME(
"iface %p, desc %p, enumerator %p, stub!\n", iface,
desc, enumerator);
7437 FIXME(
"iface %p, stub!\n", iface);
7458 FIXME(
"iface %p, desc %p, count %p, stub!\n", iface,
desc,
count);
7470 const GUID *encryption_type,
const GUID *
profile, D3D11_VIDEO_CONTENT_PROTECTION_CAPS *caps)
7472 FIXME(
"iface %p, encryption_type %s, profile %s, caps %p, stub!\n",
7480 FIXME(
"iface %p, encryption_type %s, profile %s, index %u, key_exchange_type %p, stub!\n",
7501 const GUID *key_exchange_type,
UINT *input_size,
UINT *output_size)
7503 FIXME(
"iface %p, encryption_type %s, profile %s, key_exchange_type %s, input_size %p, output_size %p, stub!\n",
7513 TRACE(
"iface %p, profile %s, width %u, height %u, framerate %u/%u, bitrate %u, encryption_type %s, caps %p, stub!\n",
7524 TRACE(
"iface %p, input_desc %p, input_colour_space %#x, config %p,"
7525 " framerate %u/%u, output_desc %p, supported %p, real_time_hint %p, stub!\n",
7526 iface, input_desc, input_colour_space,
config,
7536 TRACE(
"iface %p, input_desc %p, input_colour_space %#x, config %p, framerate %u/%u, output_desc %p, stub!\n",
7580 return IUnknown_QueryInterface(
device->outer_unk, iid,
out);
7586 return IUnknown_AddRef(
device->outer_unk);
7592 return IUnknown_Release(
device->outer_unk);
7599 return &
device->device_parent;
7608 D3D11_TEXTURE2D_DESC
desc;
7620 desc.Usage = D3D11_USAGE_DEFAULT;
7622 desc.CPUAccessFlags = 0;
7628 texture_flags &= ~WINED3D_TEXTURE_CREATE_GET_DC;
7632 FIXME(
"Unhandled flags %#x.\n", texture_flags);
7637 hr = IUnknown_QueryInterface(
object->dxgi_resource, &IID_IDXGISurface, (
void **)ret_surface);
7638 ID3D11Texture2D_Release(&
object->ID3D11Texture2D_iface);
7677 ERR(
"Failed to create the initial device context state.\n");
7682 device->d3d11_only ? &IID_ID3D11Device2 : &IID_ID3D10Device1);
7689 ID3DDeviceContextState_Release(&
state->ID3DDeviceContextState_iface);
7694 TRACE(
"device_parent %p.\n", device_parent);
7699 TRACE(
"device_parent %p, activate %#x.\n", device_parent, activate);
7706 TRACE(
"device_parent %p, type %#x, wined3d_texture %p, sub_resource_idx %u, parent %p, parent_ops %p.\n",
7725 const D3D11_SAMPLER_DESC *ka =
key;
7728 return memcmp(ka, kb,
sizeof(*ka));
7736 return memcmp(ka, kb,
sizeof(*ka));
7741 const D3D11_DEPTH_STENCIL_DESC *ka =
key;
7745 return memcmp(ka, kb,
sizeof(*ka));
7753 return memcmp(ka, kb,
sizeof(*ka));
7767 device->outer_unk = outer_unknown;
7772 ID3D11DeviceContext1_Release(&
device->immediate_context.ID3D11DeviceContext1_iface);
_Check_return_ _Ret_maybenull_ _In_ size_t alignment
#define InterlockedIncrement
#define InterlockedDecrement
static const char * wine_dbgstr_rect(const RECT *prc)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
void CDECL wined3d_device_context_dispatch_indirect(struct wined3d_device_context *context, struct wined3d_buffer *buffer, unsigned int offset)
void CDECL wined3d_deferred_context_destroy(struct wined3d_device_context *context)
void CDECL wined3d_device_context_draw_indirect(struct wined3d_device_context *context, struct wined3d_buffer *buffer, unsigned int offset, bool indexed)
void CDECL wined3d_device_context_dispatch(struct wined3d_device_context *context, unsigned int group_count_x, unsigned int group_count_y, unsigned int group_count_z)
ULONG CDECL wined3d_command_list_decref(struct wined3d_command_list *list)
HRESULT CDECL wined3d_deferred_context_create(struct wined3d_device *device, struct wined3d_device_context **context)
HRESULT CDECL wined3d_deferred_context_record_command_list(struct wined3d_device_context *context, bool restore, struct wined3d_command_list **list)
const unsigned int D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
const unsigned int D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
const unsigned int D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT
const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
const unsigned int D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
D3D11_VIDEO_PROCESSOR_STEREO_FORMAT
@ D3D11_TILED_RESOURCES_NOT_SUPPORTED
const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
D3D11_VIDEO_DECODER_BUFFER_TYPE
const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT
D3D11_DEVICE_CONTEXT_TYPE
@ D3D11_DEVICE_CONTEXT_DEFERRED
@ D3D11_DEVICE_CONTEXT_IMMEDIATE
const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT
@ D3D11_FEATURE_D3D11_OPTIONS
@ D3D11_FEATURE_FORMAT_SUPPORT
@ D3D11_FEATURE_THREADING
@ D3D11_FEATURE_ARCHITECTURE_INFO
@ D3D11_FEATURE_D3D11_OPTIONS1
@ D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS
@ D3D11_FEATURE_D3D11_OPTIONS3
@ D3D11_FEATURE_D3D9_OPTIONS
@ D3D11_FEATURE_D3D11_OPTIONS2
const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS
@ D3D11_RESOURCE_MISC_GDI_COMPATIBLE
const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
const UINT D3D11_PS_CS_UAV_REGISTER_COUNT
@ D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED
const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL
D3D11_VIDEO_PROCESSOR_OUTPUT_RATE
D3D11_VIDEO_PROCESSOR_ROTATION
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT
D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE
@ D3D11_MAP_WRITE_NO_OVERWRITE
@ D3D11_MAP_WRITE_DISCARD
D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE
const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
HRESULT d3d_blend_state_create(struct d3d_device *device, const D3D11_BLEND_DESC1 *desc, struct d3d_blend_state **state)
UINT d3d11_bind_flags_from_d3d10_bind_flags(UINT bind_flags)
struct wined3d_resource * wined3d_resource_from_d3d11_resource(ID3D11Resource *resource)
HRESULT d3d11_domain_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d11_domain_shader **shader)
struct d3d11_unordered_access_view * unsafe_impl_from_ID3D11UnorderedAccessView(ID3D11UnorderedAccessView *iface)
static struct d3d_depthstencil_state * impl_from_ID3D11DepthStencilState(ID3D11DepthStencilState *iface)
struct d3d_rendertarget_view * unsafe_impl_from_ID3D11RenderTargetView(ID3D11RenderTargetView *iface)
struct d3d_vertex_shader * unsafe_impl_from_ID3D10VertexShader(ID3D10VertexShader *iface)
HRESULT d3d_geometry_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, const D3D11_SO_DECLARATION_ENTRY *so_entries, unsigned int so_entry_count, const unsigned int *buffer_strides, unsigned int buffer_stride_count, unsigned int rasterizer_stream, struct d3d_geometry_shader **shader)
const char * debug_dxgi_format(DXGI_FORMAT format)
struct d3d11_compute_shader * unsafe_impl_from_ID3D11ComputeShader(ID3D11ComputeShader *iface)
const char * debug_float4(const float *values)
enum wined3d_format_id wined3dformat_from_dxgi_format(DXGI_FORMAT format)
struct d3d_rasterizer_state * unsafe_impl_from_ID3D11RasterizerState(ID3D11RasterizerState *iface)
HRESULT d3d_video_decoder_create(struct d3d_device *device, const D3D11_VIDEO_DECODER_DESC *desc, const D3D11_VIDEO_DECODER_CONFIG *config, struct d3d_video_decoder **decoder)
struct d3d_sampler_state * unsafe_impl_from_ID3D11SamplerState(ID3D11SamplerState *iface)
UINT d3d11_cpu_access_flags_from_d3d10_cpu_access_flags(UINT cpu_access_flags)
struct d3d11_domain_shader * unsafe_impl_from_ID3D11DomainShader(ID3D11DomainShader *iface)
struct d3d11_hull_shader * unsafe_impl_from_ID3D11HullShader(ID3D11HullShader *iface)
HRESULT d3d_input_layout_create(struct d3d_device *device, const D3D11_INPUT_ELEMENT_DESC *element_descs, UINT element_count, const void *shader_byte_code, SIZE_T shader_byte_code_length, struct d3d_input_layout **layout)
struct d3d_vertex_shader * unsafe_impl_from_ID3D11VertexShader(ID3D11VertexShader *iface)
HRESULT d3d_get_private_data(struct wined3d_private_store *store, REFGUID guid, UINT *data_size, void *data)
struct d3d_depthstencil_view * unsafe_impl_from_ID3D11DepthStencilView(ID3D11DepthStencilView *iface)
static struct d3d_blend_state * impl_from_ID3D11BlendState1(ID3D11BlendState1 *iface)
static struct d3d_device * impl_from_ID3D10Device(ID3D10Device1 *iface)
struct d3d_depthstencil_view * unsafe_impl_from_ID3D10DepthStencilView(ID3D10DepthStencilView *iface)
HRESULT d3d_texture2d_create(struct d3d_device *device, const D3D11_TEXTURE2D_DESC *desc, struct wined3d_texture *wined3d_texture, const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture2d **out)
HRESULT d3d_rasterizer_state_create(struct d3d_device *device, const D3D11_RASTERIZER_DESC1 *desc, struct d3d_rasterizer_state **state)
void d3d11_primitive_topology_from_wined3d_primitive_type(enum wined3d_primitive_type primitive_type, unsigned int patch_vertex_count, D3D11_PRIMITIVE_TOPOLOGY *topology)
struct d3d_pixel_shader * unsafe_impl_from_ID3D11PixelShader(ID3D11PixelShader *iface)
struct d3d_blend_state * unsafe_impl_from_ID3D11BlendState(ID3D11BlendState *iface)
struct d3d_geometry_shader * unsafe_impl_from_ID3D10GeometryShader(ID3D10GeometryShader *iface)
HRESULT d3d_texture1d_create(struct d3d_device *device, const D3D11_TEXTURE1D_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture1d **texture)
struct d3d_rasterizer_state * unsafe_impl_from_ID3D10RasterizerState(ID3D10RasterizerState *iface)
DWORD wined3d_map_flags_from_d3d11_map_type(D3D11_MAP map_type)
static struct d3d_device * impl_from_ID3D11Device2(ID3D11Device2 *iface)
void wined3d_primitive_type_from_d3d11_primitive_topology(D3D11_PRIMITIVE_TOPOLOGY topology, enum wined3d_primitive_type *type, unsigned int *patch_vertex_count)
struct wined3d_resource * wined3d_resource_from_d3d10_resource(ID3D10Resource *resource)
HRESULT d3d_shader_resource_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_SHADER_RESOURCE_VIEW_DESC *desc, struct d3d_shader_resource_view **view)
struct d3d_input_layout * unsafe_impl_from_ID3D10InputLayout(ID3D10InputLayout *iface)
HRESULT d3d11_class_linkage_create(struct d3d_device *device, struct d3d11_class_linkage **class_linkage)
HRESULT d3d_video_decoder_output_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *desc, struct d3d_video_decoder_output_view **view)
HRESULT d3d_texture3d_create(struct d3d_device *device, const D3D11_TEXTURE3D_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture3d **texture)
unsigned int wined3d_getdata_flags_from_d3d11_async_getdata_flags(unsigned int d3d11_flags)
HRESULT d3d_vertex_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d_vertex_shader **shader)
struct d3d_geometry_shader * unsafe_impl_from_ID3D11GeometryShader(ID3D11GeometryShader *iface)
struct d3d_rendertarget_view * unsafe_impl_from_ID3D10RenderTargetView(ID3D10RenderTargetView *iface)
enum D3D11_USAGE d3d11_usage_from_d3d10_usage(enum D3D10_USAGE usage)
DWORD wined3d_clear_flags_from_d3d11_clear_flags(UINT clear_flags)
struct d3d_depthstencil_state * unsafe_impl_from_ID3D11DepthStencilState(ID3D11DepthStencilState *iface)
struct d3d_shader_resource_view * unsafe_impl_from_ID3D10ShaderResourceView(ID3D10ShaderResourceView *iface)
struct d3d_depthstencil_state * unsafe_impl_from_ID3D10DepthStencilState(ID3D10DepthStencilState *iface)
HRESULT d3d_sampler_state_create(struct d3d_device *device, const D3D11_SAMPLER_DESC *desc, struct d3d_sampler_state **state)
HRESULT d3d_set_private_data_interface(struct wined3d_private_store *store, REFGUID guid, const IUnknown *object)
HRESULT d3d_pixel_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d_pixel_shader **shader)
struct d3d_input_layout * unsafe_impl_from_ID3D11InputLayout(ID3D11InputLayout *iface)
HRESULT d3d11_unordered_access_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_UNORDERED_ACCESS_VIEW_DESC *desc, struct d3d11_unordered_access_view **view)
HRESULT d3d_depthstencil_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_DEPTH_STENCIL_VIEW_DESC *desc, struct d3d_depthstencil_view **view)
HRESULT d3d11_hull_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d11_hull_shader **shader)
HRESULT d3d_rendertarget_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_RENDER_TARGET_VIEW_DESC *desc, struct d3d_rendertarget_view **view)
static UINT d3d11_bind_flags_from_wined3d(unsigned int bind_flags)
struct d3d_blend_state * unsafe_impl_from_ID3D10BlendState(ID3D10BlendState *iface)
UINT d3d11_resource_misc_flags_from_d3d10_resource_misc_flags(UINT resource_misc_flags)
HRESULT d3d_set_private_data(struct wined3d_private_store *store, REFGUID guid, UINT data_size, const void *data)
struct d3d_pixel_shader * unsafe_impl_from_ID3D10PixelShader(ID3D10PixelShader *iface)
HRESULT d3d11_compute_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d11_compute_shader **shader)
struct d3d_sampler_state * unsafe_impl_from_ID3D10SamplerState(ID3D10SamplerState *iface)
HRESULT d3d_depthstencil_state_create(struct d3d_device *device, const D3D11_DEPTH_STENCIL_DESC *desc, struct d3d_depthstencil_state **state)
struct d3d_shader_resource_view * unsafe_impl_from_ID3D11ShaderResourceView(ID3D11ShaderResourceView *iface)
DXGI_FORMAT dxgi_format_from_wined3dformat(enum wined3d_format_id format)
const char * debug_d3d10_primitive_topology(D3D10_PRIMITIVE_TOPOLOGY topology)
struct d3d_query * unsafe_impl_from_ID3D11Query(ID3D11Query *iface)
struct d3d_query * unsafe_impl_from_ID3D10Query(ID3D10Query *iface)
HRESULT d3d_query_create(struct d3d_device *device, const D3D11_QUERY_DESC *desc, BOOL predicate, struct d3d_query **query)
struct d3d_query * unsafe_impl_from_ID3D11Asynchronous(ID3D11Asynchronous *iface)
static struct d2d_device_context * impl_from_IUnknown(IUnknown *iface)
struct d3d_buffer * unsafe_impl_from_ID3D10Buffer(ID3D10Buffer *iface)
struct d3d_buffer * unsafe_impl_from_ID3D11Buffer(ID3D11Buffer *iface)
HRESULT d3d_buffer_create(struct d3d_device *device, const D3D11_BUFFER_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, struct d3d_buffer **buffer)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_GetVideoDecoderConfig(ID3D11VideoDevice1 *iface, const D3D11_VIDEO_DECODER_DESC *desc, UINT index, D3D11_VIDEO_DECODER_CONFIG *config)
static HRESULT STDMETHODCALLTYPE d3d10_device_CheckCounter(ID3D10Device1 *iface, const D3D10_COUNTER_DESC *desc, D3D10_COUNTER_TYPE *type, UINT *active_counters, char *name, UINT *name_length, char *units, UINT *units_length, char *description, UINT *description_length)
static void STDMETHODCALLTYPE d3d11_device_context_CopySubresourceRegion(ID3D11DeviceContext1 *iface, ID3D11Resource *dst_resource, UINT dst_subresource_idx, UINT dst_x, UINT dst_y, UINT dst_z, ID3D11Resource *src_resource, UINT src_subresource_idx, const D3D11_BOX *src_box)
static HRESULT STDMETHODCALLTYPE d3d10_device_OpenSharedResource(ID3D10Device1 *iface, HANDLE resource_handle, REFIID guid, void **resource)
static UINT STDMETHODCALLTYPE d3d11_video_device_GetVideoDecoderProfileCount(ID3D11VideoDevice1 *iface)
static const struct wined3d_parent_ops d3d_null_wined3d_parent_ops
static void STDMETHODCALLTYPE d3d11_device_context_RSSetViewports(ID3D11DeviceContext1 *iface, UINT viewport_count, const D3D11_VIEWPORT *viewports)
static ULONG STDMETHODCALLTYPE d3d_device_context_state_AddRef(ID3DDeviceContextState *iface)
static D3D_FEATURE_LEVEL d3d_feature_level_from_wined3d(enum wined3d_feature_level level)
static void STDMETHODCALLTYPE d3d11_device_context_CopySubresourceRegion1(ID3D11DeviceContext1 *iface, ID3D11Resource *dst_resource, UINT dst_subresource_idx, UINT dst_x, UINT dst_y, UINT dst_z, ID3D11Resource *src_resource, UINT src_subresource_idx, const D3D11_BOX *src_box, UINT flags)
static ULONG STDMETHODCALLTYPE d3d_device_context_state_Release(ID3DDeviceContextState *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device2 *iface, D3D11_FEATURE feature, void *feature_support_data, UINT feature_support_data_size)
static void STDMETHODCALLTYPE d3d10_device_RSGetScissorRects(ID3D10Device1 *iface, UINT *rect_count, D3D10_RECT *rects)
static void d3d10_device_set_shader_resource_views(ID3D10Device1 *iface, enum wined3d_shader_type type, unsigned int start_slot, unsigned int count, ID3D10ShaderResourceView *const *views)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamRotation(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable, D3D11_VIDEO_PROCESSOR_ROTATION rotation)
static HRESULT STDMETHODCALLTYPE d3d11_command_list_QueryInterface(ID3D11CommandList *iface, REFIID iid, void **out)
static void STDMETHODCALLTYPE d3d11_device_context_RSSetScissorRects(ID3D11DeviceContext1 *iface, UINT rect_count, const D3D11_RECT *rects)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device1 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D10GeometryShader **shader)
static void STDMETHODCALLTYPE d3d11_device_context_GSSetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState *const *samplers)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetOutputStereoMode(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL enable)
static void STDMETHODCALLTYPE d3d10_device_GSGetShaderResources(ID3D10Device1 *iface, UINT start_slot, UINT view_count, ID3D10ShaderResourceView **views)
static void STDMETHODCALLTYPE d3d10_device_GetTextFilterSize(ID3D10Device1 *iface, UINT *width, UINT *height)
static void STDMETHODCALLTYPE d3d11_device_context_IAGetInputLayout(ID3D11DeviceContext1 *iface, ID3D11InputLayout **input_layout)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CheckVideoDecoderDownsampling(ID3D11VideoDevice1 *iface, const D3D11_VIDEO_DECODER_DESC *input_desc, DXGI_COLOR_SPACE_TYPE input_colour_space, const D3D11_VIDEO_DECODER_CONFIG *config, const DXGI_RATIONAL *framerate, const D3D11_VIDEO_SAMPLE_DESC *output_desc, BOOL *supported, BOOL *real_time_hint)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateVideoProcessorOutputView(ID3D11VideoDevice1 *iface, ID3D11Resource *resource, ID3D11VideoProcessorEnumerator *enumerator, const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *desc, ID3D11VideoProcessorOutputView **view)
static void STDMETHODCALLTYPE d3d10_device_GSGetShader(ID3D10Device1 *iface, ID3D10GeometryShader **shader)
static struct d3d_device_context_state_entry * d3d_device_context_state_get_entry(struct d3d_device_context_state *state, struct d3d_device *device)
static void STDMETHODCALLTYPE d3d10_device_PSGetConstantBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer **buffers)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_GetVideoDecoderCaps(ID3D11VideoDevice1 *iface, const GUID *profile, UINT width, UINT height, const DXGI_RATIONAL *framerate, UINT bitrate, const GUID *encryption_type, UINT *caps)
static void STDMETHODCALLTYPE d3d11_device_context_OMSetBlendState(ID3D11DeviceContext1 *iface, ID3D11BlendState *blend_state, const float blend_factor[4], UINT sample_mask)
static void STDMETHODCALLTYPE d3d11_device_context_DSGetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState **samplers)
static void STDMETHODCALLTYPE d3d10_device_VSSetConstantBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer *const *buffers)
static void STDMETHODCALLTYPE d3d11_device_context_UpdateSubresource(ID3D11DeviceContext1 *iface, ID3D11Resource *resource, UINT subresource_idx, const D3D11_BOX *box, const void *data, UINT row_pitch, UINT depth_pitch)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetOutputTargetRect(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL *enabled, RECT *rect)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable, const DXGI_RATIONAL *src_ratio, const DXGI_RATIONAL *dst_ratio)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamDestRect(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable, const RECT *rect)
static void STDMETHODCALLTYPE d3d11_device_context_PSGetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView **views)
static BOOL d3d_device_is_d3d10_active(struct d3d_device *device)
static void STDMETHODCALLTYPE d3d10_device_GSSetSamplers(ID3D10Device1 *iface, UINT start_slot, UINT sampler_count, ID3D10SamplerState *const *samplers)
static HRESULT d3d11_deferred_context_create(struct d3d_device *device, UINT flags, struct d3d11_device_context **context)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateCounter(ID3D10Device1 *iface, const D3D10_COUNTER_DESC *desc, ID3D10Counter **counter)
static struct d3d_device * impl_from_ID3D11VideoDevice1(ID3D11VideoDevice1 *iface)
static ULONG STDMETHODCALLTYPE d3d10_multithread_AddRef(ID3D10Multithread *iface)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateVideoProcessorInputView(ID3D11VideoDevice1 *iface, ID3D11Resource *resource, ID3D11VideoProcessorEnumerator *enumerator, const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *desc, ID3D11VideoProcessorInputView **view)
static void STDMETHODCALLTYPE d3d10_device_VSGetShader(ID3D10Device1 *iface, ID3D10VertexShader **shader)
static void STDMETHODCALLTYPE d3d10_device_VSSetShaderResources(ID3D10Device1 *iface, UINT start_slot, UINT view_count, ID3D10ShaderResourceView *const *views)
static HRESULT STDMETHODCALLTYPE d3d11_device_SetPrivateDataInterface(ID3D11Device2 *iface, REFGUID guid, const IUnknown *data)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateTexture1D(ID3D11Device2 *iface, const D3D11_TEXTURE1D_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, ID3D11Texture1D **texture)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamFrameFormat(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, D3D11_VIDEO_FRAME_FORMAT format)
static void CDECL device_parent_mode_changed(struct wined3d_device_parent *device_parent)
static ULONG STDMETHODCALLTYPE d3d11_video_context_Release(ID3D11VideoContext *iface)
static void STDMETHODCALLTYPE d3d10_device_ClearRenderTargetView(ID3D10Device1 *iface, ID3D10RenderTargetView *render_target_view, const float color_rgba[4])
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamOutputRate(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *rate, BOOL *repeat, DXGI_RATIONAL *custom_rate)
static void STDMETHODCALLTYPE d3d11_device_context_IAGetVertexBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers, UINT *strides, UINT *offsets)
static void STDMETHODCALLTYPE d3d11_device_context_IAGetPrimitiveTopology(ID3D11DeviceContext1 *iface, D3D11_PRIMITIVE_TOPOLOGY *topology)
static ULONG STDMETHODCALLTYPE dxgi_device_parent_AddRef(IWineDXGIDeviceParent *iface)
static void STDMETHODCALLTYPE d3d11_device_context_CSSetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView *const *views)
static HRESULT STDMETHODCALLTYPE d3d_device_context_state_SetPrivateDataInterface(ID3DDeviceContextState *iface, REFGUID guid, const IUnknown *data)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_SetPrivateData(ID3D11VideoContext *iface, REFGUID guid, UINT size, const void *data)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetOutputBackgroundColor(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL yuv, const D3D11_VIDEO_COLOR *color)
static HRESULT STDMETHODCALLTYPE d3d11_device_context_GetPrivateData(ID3D11DeviceContext1 *iface, REFGUID guid, UINT *data_size, void *data)
static void STDMETHODCALLTYPE d3d10_device_PSGetShaderResources(ID3D10Device1 *iface, UINT start_slot, UINT view_count, ID3D10ShaderResourceView **views)
static void STDMETHODCALLTYPE d3d10_device_IASetIndexBuffer(ID3D10Device1 *iface, ID3D10Buffer *buffer, DXGI_FORMAT format, UINT offset)
static void d3d11_device_context_set_constant_buffers(ID3D11DeviceContext1 *iface, enum wined3d_shader_type type, unsigned int start_slot, unsigned int buffer_count, ID3D11Buffer *const *buffers, const unsigned int *offsets, const unsigned int *counts)
static void STDMETHODCALLTYPE d3d10_device_OMSetBlendState(ID3D10Device1 *iface, ID3D10BlendState *blend_state, const float blend_factor[4], UINT sample_mask)
static int d3d_blend_state_compare(const void *key, const struct wine_rb_entry *entry)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_ReleaseDecoderBuffer(ID3D11VideoContext *iface, ID3D11VideoDecoder *decoder, D3D11_VIDEO_DECODER_BUFFER_TYPE type)
static void STDMETHODCALLTYPE d3d11_device_context_OMSetDepthStencilState(ID3D11DeviceContext1 *iface, ID3D11DepthStencilState *depth_stencil_state, UINT stencil_ref)
static void STDMETHODCALLTYPE d3d11_device_context_DSSetShader(ID3D11DeviceContext1 *iface, ID3D11DomainShader *shader, ID3D11ClassInstance *const *class_instances, UINT class_instance_count)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_SetPrivateDataInterface(ID3D11VideoDevice1 *iface, REFGUID guid, const IUnknown *data)
static ULONG STDMETHODCALLTYPE d3d11_command_list_AddRef(ID3D11CommandList *iface)
static void STDMETHODCALLTYPE d3d11_device_context_GSGetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState **samplers)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateTexture2D(ID3D11Device2 *iface, const D3D11_TEXTURE2D_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, ID3D11Texture2D **texture)
static void STDMETHODCALLTYPE d3d11_device_context_VSGetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers)
static void STDMETHODCALLTYPE d3d11_device_context_ClearRenderTargetView(ID3D11DeviceContext1 *iface, ID3D11RenderTargetView *render_target_view, const float color_rgba[4])
static HRESULT STDMETHODCALLTYPE d3d11_video_context_DecoderEndFrame(ID3D11VideoContext *iface, ID3D11VideoDecoder *decoder)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_GetPrivateData(ID3D11VideoContext *iface, REFGUID guid, UINT *size, void *data)
static void STDMETHODCALLTYPE d3d10_device_IASetVertexBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer *const *buffers, const UINT *strides, const UINT *offsets)
static void STDMETHODCALLTYPE d3d11_device_context_OMGetRenderTargets(ID3D11DeviceContext1 *iface, UINT render_target_view_count, ID3D11RenderTargetView **render_target_views, ID3D11DepthStencilView **depth_stencil_view)
static void STDMETHODCALLTYPE d3d10_device_DrawIndexed(ID3D10Device1 *iface, UINT index_count, UINT start_index_location, INT base_vertex_location)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetOutputAlphaFillMode(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE mode, UINT stream_idx)
static void STDMETHODCALLTYPE d3d11_device_context_CSGetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView **views)
static HRESULT STDMETHODCALLTYPE d3d10_device_QueryInterface(ID3D10Device1 *iface, REFIID iid, void **out)
static void STDMETHODCALLTYPE d3d10_device_OMGetRenderTargets(ID3D10Device1 *iface, UINT view_count, ID3D10RenderTargetView **render_target_views, ID3D10DepthStencilView **depth_stencil_view)
static void STDMETHODCALLTYPE d3d11_device_context_Unmap(ID3D11DeviceContext1 *iface, ID3D11Resource *resource, UINT subresource_idx)
static int STDMETHODCALLTYPE d3d11_user_defined_annotation_BeginEvent(ID3DUserDefinedAnnotation *iface, const WCHAR *name)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetOutputConstriction(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL enable, SIZE size)
static void STDMETHODCALLTYPE d3d11_device_context_UpdateSubresource1(ID3D11DeviceContext1 *iface, ID3D11Resource *resource, UINT subresource_idx, const D3D11_BOX *box, const void *data, UINT row_pitch, UINT depth_pitch, UINT flags)
static void STDMETHODCALLTYPE d3d10_device_PSSetShaderResources(ID3D10Device1 *iface, UINT start_slot, UINT view_count, ID3D10ShaderResourceView *const *views)
static HRESULT STDMETHODCALLTYPE d3d_device_context_state_GetPrivateData(ID3DDeviceContextState *iface, REFGUID guid, UINT *data_size, void *data)
static void STDMETHODCALLTYPE d3d10_device_IAGetIndexBuffer(ID3D10Device1 *iface, ID3D10Buffer **buffer, DXGI_FORMAT *format, UINT *offset)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateQuery(ID3D10Device1 *iface, const D3D10_QUERY_DESC *desc, ID3D10Query **query)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_NegotiateCryptoSessionKeyExchange(ID3D11VideoContext *iface, ID3D11CryptoSession *session, UINT size, void *data)
static void STDMETHODCALLTYPE d3d11_device_context_DrawInstancedIndirect(ID3D11DeviceContext1 *iface, ID3D11Buffer *buffer, UINT offset)
static HRESULT STDMETHODCALLTYPE d3d10_device_SetPrivateDataInterface(ID3D10Device1 *iface, REFGUID guid, const IUnknown *data)
static const struct IWineDXGIDeviceParentVtbl d3d_dxgi_device_parent_vtbl
static HRESULT STDMETHODCALLTYPE d3d11_video_context_QueryInterface(ID3D11VideoContext *iface, REFIID iid, void **out)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateVideoDecoder(ID3D11VideoDevice1 *iface, const D3D11_VIDEO_DECODER_DESC *desc, const D3D11_VIDEO_DECODER_CONFIG *config, ID3D11VideoDecoder **decoder)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateBlendState1(ID3D10Device1 *iface, const D3D10_BLEND_DESC1 *desc, ID3D10BlendState1 **blend_state)
static int STDMETHODCALLTYPE d3d11_user_defined_annotation_EndEvent(ID3DUserDefinedAnnotation *iface)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_QueryAuthenticatedChannel(ID3D11VideoContext *iface, ID3D11AuthenticatedChannel *channel, UINT input_size, const void *input, UINT output_size, void *output)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDepthStencilView(ID3D11Device2 *iface, ID3D11Resource *resource, const D3D11_DEPTH_STENCIL_VIEW_DESC *desc, ID3D11DepthStencilView **view)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateClassLinkage(ID3D11Device2 *iface, ID3D11ClassLinkage **class_linkage)
static ULONG STDMETHODCALLTYPE d3d10_multithread_Release(ID3D10Multithread *iface)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamStereoFormat(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enabled, D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *format, BOOL *left_view_frame0, BOOL *base_view_frame0, D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *flip_mode, int *mono_offset)
static void STDMETHODCALLTYPE d3d11_device_context_PSSetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView *const *views)
static void STDMETHODCALLTYPE d3d11_device_context_CSSetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *first_constant, const UINT *num_constants)
static void STDMETHODCALLTYPE d3d10_device_IAGetPrimitiveTopology(ID3D10Device1 *iface, D3D10_PRIMITIVE_TOPOLOGY *topology)
static void STDMETHODCALLTYPE d3d11_device_context_CSSetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState *const *samplers)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateRasterizerState1(ID3D11Device2 *iface, const D3D11_RASTERIZER_DESC1 *desc, ID3D11RasterizerState1 **state)
static BOOL d3d_array_reserve(void **elements, SIZE_T *capacity, SIZE_T count, SIZE_T size)
static BOOL STDMETHODCALLTYPE d3d11_multithread_GetMultithreadProtected(ID3D11Multithread *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateBuffer(ID3D11Device2 *iface, const D3D11_BUFFER_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, ID3D11Buffer **buffer)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateGeometryShaderWithStreamOutput(ID3D11Device2 *iface, const void *byte_code, SIZE_T byte_code_length, const D3D11_SO_DECLARATION_ENTRY *so_entries, UINT entry_count, const UINT *buffer_strides, UINT strides_count, UINT rasterizer_stream, ID3D11ClassLinkage *class_linkage, ID3D11GeometryShader **shader)
static void STDMETHODCALLTYPE d3d11_device_context_ClearState(ID3D11DeviceContext1 *iface)
static void STDMETHODCALLTYPE d3d11_device_GetImmediateContext(ID3D11Device2 *iface, ID3D11DeviceContext **immediate_context)
static void STDMETHODCALLTYPE d3d10_device_RSSetState(ID3D10Device1 *iface, ID3D10RasterizerState *rasterizer_state)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateGeometryShader(ID3D11Device2 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11GeometryShader **shader)
static HRESULT STDMETHODCALLTYPE d3d11_device_OpenSharedResource1(ID3D11Device2 *iface, HANDLE handle, REFIID iid, void **resource)
static void STDMETHODCALLTYPE d3d11_device_context_DrawIndexed(ID3D11DeviceContext1 *iface, UINT index_count, UINT start_index_location, INT base_vertex_location)
static HRESULT STDMETHODCALLTYPE d3d11_user_defined_annotation_QueryInterface(ID3DUserDefinedAnnotation *iface, REFIID iid, void **out)
static void STDMETHODCALLTYPE d3d10_device_VSGetShaderResources(ID3D10Device1 *iface, UINT start_slot, UINT view_count, ID3D10ShaderResourceView **views)
static void STDMETHODCALLTYPE d3d11_device_GetImmediateContext2(ID3D11Device2 *iface, ID3D11DeviceContext2 **context)
static void STDMETHODCALLTYPE d3d11_device_context_GSSetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView *const *views)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetOutputAlphaFillMode(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *mode, UINT *stream_idx)
static void STDMETHODCALLTYPE d3d11_device_context_HSSetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView *const *views)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateTexture3D(ID3D11Device2 *iface, const D3D11_TEXTURE3D_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, ID3D11Texture3D **texture)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateShaderResourceView(ID3D10Device1 *iface, ID3D10Resource *resource, const D3D10_SHADER_RESOURCE_VIEW_DESC *desc, ID3D10ShaderResourceView **view)
static void STDMETHODCALLTYPE d3d10_device_Draw(ID3D10Device1 *iface, UINT vertex_count, UINT start_vertex_location)
static void STDMETHODCALLTYPE d3d10_device_GSSetConstantBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer *const *buffers)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShaderWithStreamOutput(ID3D10Device1 *iface, const void *byte_code, SIZE_T byte_code_length, const D3D10_SO_DECLARATION_ENTRY *output_stream_decls, UINT output_stream_decl_count, UINT output_stream_stride, ID3D10GeometryShader **shader)
static void STDMETHODCALLTYPE d3d10_device_PSGetSamplers(ID3D10Device1 *iface, UINT start_slot, UINT sampler_count, ID3D10SamplerState **samplers)
static void STDMETHODCALLTYPE d3d11_device_context_ClearUnorderedAccessViewUint(ID3D11DeviceContext1 *iface, ID3D11UnorderedAccessView *unordered_access_view, const UINT values[4])
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateHullShader(ID3D11Device2 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11HullShader **shader)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDeferredContext2(ID3D11Device2 *iface, UINT flags, ID3D11DeviceContext2 **context)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetOutputExtension(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, const GUID *guid, UINT size, void *data)
static void STDMETHODCALLTYPE d3d10_device_OMSetDepthStencilState(ID3D10Device1 *iface, ID3D10DepthStencilState *depth_stencil_state, UINT stencil_ref)
static UINT STDMETHODCALLTYPE d3d11_device_GetExceptionMode(ID3D11Device2 *iface)
static HRESULT STDMETHODCALLTYPE d3d10_device_SetExceptionMode(ID3D10Device1 *iface, UINT flags)
static HRESULT STDMETHODCALLTYPE d3d10_device_SetPrivateData(ID3D10Device1 *iface, REFGUID guid, UINT data_size, const void *data)
static void STDMETHODCALLTYPE d3d11_device_context_SetResourceMinLOD(ID3D11DeviceContext1 *iface, ID3D11Resource *resource, FLOAT min_lod)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateInputLayout(ID3D11Device2 *iface, const D3D11_INPUT_ELEMENT_DESC *element_descs, UINT element_count, const void *shader_byte_code, SIZE_T shader_byte_code_length, ID3D11InputLayout **input_layout)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamColorSpace(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, D3D11_VIDEO_PROCESSOR_COLOR_SPACE *space)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateUnorderedAccessView(ID3D11Device2 *iface, ID3D11Resource *resource, const D3D11_UNORDERED_ACCESS_VIEW_DESC *desc, ID3D11UnorderedAccessView **view)
static void STDMETHODCALLTYPE d3d10_device_SetTextFilterSize(ID3D10Device1 *iface, UINT width, UINT height)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDeferredContext(ID3D11Device2 *iface, UINT flags, ID3D11DeviceContext **context)
static void STDMETHODCALLTYPE d3d11_device_context_Begin(ID3D11DeviceContext1 *iface, ID3D11Asynchronous *asynchronous)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_GetVideoDecoderProfile(ID3D11VideoDevice1 *iface, UINT index, GUID *profile)
static struct d3d_device_context_state * impl_from_ID3DDeviceContextState(ID3DDeviceContextState *iface)
static void STDMETHODCALLTYPE d3d10_device_SetPredication(ID3D10Device1 *iface, ID3D10Predicate *predicate, BOOL value)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreatePredicate(ID3D10Device1 *iface, const D3D10_QUERY_DESC *desc, ID3D10Predicate **predicate)
static BOOL d3d_device_context_state_add_entry(struct d3d_device_context_state *state, struct d3d_device *device, struct wined3d_state *wined3d_state)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamExtension(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, const GUID *guid, UINT size, void *data)
static void STDMETHODCALLTYPE d3d10_device_PSGetShader(ID3D10Device1 *iface, ID3D10PixelShader **shader)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamOutputRate(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, D3D11_VIDEO_PROCESSOR_OUTPUT_RATE rate, BOOL repeat, const DXGI_RATIONAL *custom_rate)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enabled, DXGI_RATIONAL *src_ratio, DXGI_RATIONAL *dst_ratio)
static void STDMETHODCALLTYPE d3d11_device_context_DispatchIndirect(ID3D11DeviceContext1 *iface, ID3D11Buffer *buffer, UINT offset)
static HRESULT STDMETHODCALLTYPE d3d11_command_list_GetPrivateData(ID3D11CommandList *iface, REFGUID guid, UINT *data_size, void *data)
static UINT STDMETHODCALLTYPE d3d11_command_list_GetContextFlags(ID3D11CommandList *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_QueryInterface(ID3D11Device2 *iface, REFIID iid, void **out)
static HRESULT STDMETHODCALLTYPE dxgi_device_parent_register_swapchain_texture(IWineDXGIDeviceParent *iface, struct wined3d_texture *wined3d_texture, unsigned int texture_flags, IDXGISurface **ret_surface)
static void STDMETHODCALLTYPE d3d10_device_IAGetVertexBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer **buffers, UINT *strides, UINT *offsets)
static void STDMETHODCALLTYPE d3d11_device_context_HSGetShader(ID3D11DeviceContext1 *iface, ID3D11HullShader **shader, ID3D11ClassInstance **class_instances, UINT *class_instance_count)
static ULONG STDMETHODCALLTYPE d3d11_device_Release(ID3D11Device2 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_VSSetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView *const *views)
static void STDMETHODCALLTYPE d3d11_device_context_IAGetIndexBuffer(ID3D11DeviceContext1 *iface, ID3D11Buffer **buffer, DXGI_FORMAT *format, UINT *offset)
static ULONG STDMETHODCALLTYPE d3d11_video_context_AddRef(ID3D11VideoContext *iface)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_GetContentProtectionCaps(ID3D11VideoDevice1 *iface, const GUID *encryption_type, const GUID *profile, D3D11_VIDEO_CONTENT_PROTECTION_CAPS *caps)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_VideoProcessorBlt(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, ID3D11VideoProcessorOutputView *view, UINT frame_idx, UINT stream_count, const D3D11_VIDEO_PROCESSOR_STREAM *streams)
static void STDMETHODCALLTYPE d3d11_device_context_HSGetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers, UINT *first_constant, UINT *num_constants)
static ULONG STDMETHODCALLTYPE d3d10_device_Release(ID3D10Device1 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_ExecuteCommandList(ID3D11DeviceContext1 *iface, ID3D11CommandList *command_list, BOOL restore_state)
static void STDMETHODCALLTYPE d3d10_device_DrawAuto(ID3D10Device1 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_CSSetShader(ID3D11DeviceContext1 *iface, ID3D11ComputeShader *shader, ID3D11ClassInstance *const *class_instances, UINT class_instance_count)
static void STDMETHODCALLTYPE d3d11_device_context_PSSetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *first_constant, const UINT *num_constants)
static void STDMETHODCALLTYPE d3d10_device_CheckCounterInfo(ID3D10Device1 *iface, D3D10_COUNTER_INFO *counter_info)
static void STDMETHODCALLTYPE d3d10_device_ResolveSubresource(ID3D10Device1 *iface, ID3D10Resource *dst_resource, UINT dst_subresource_idx, ID3D10Resource *src_resource, UINT src_subresource_idx, DXGI_FORMAT format)
static void STDMETHODCALLTYPE d3d11_device_context_GSGetShader(ID3D11DeviceContext1 *iface, ID3D11GeometryShader **shader, ID3D11ClassInstance **class_instances, UINT *class_instance_count)
static void STDMETHODCALLTYPE d3d11_device_context_VSSetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *first_constant, const UINT *num_constants)
static struct d3d11_device_context * impl_from_ID3D11DeviceContext1(ID3D11DeviceContext1 *iface)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetOutputStereoMode(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL *enabled)
static void STDMETHODCALLTYPE d3d11_device_context_DrawAuto(ID3D11DeviceContext1 *iface)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamPalette(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, UINT entry_count, const UINT *entries)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateInputLayout(ID3D10Device1 *iface, const D3D10_INPUT_ELEMENT_DESC *element_descs, UINT element_count, const void *shader_byte_code, SIZE_T shader_byte_code_length, ID3D10InputLayout **input_layout)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateBlendState(ID3D10Device1 *iface, const D3D10_BLEND_DESC *desc, ID3D10BlendState **blend_state)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_ConfigureAuthenticatedChannel(ID3D11VideoContext *iface, ID3D11AuthenticatedChannel *channel, UINT input_size, const void *input, D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *output)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateCryptoSession(ID3D11VideoDevice1 *iface, const GUID *encryption_type, const GUID *profile, const GUID *key_exchange_type, ID3D11CryptoSession **session)
static void STDMETHODCALLTYPE d3d11_device_context_GSGetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView **views)
static D3D_FEATURE_LEVEL STDMETHODCALLTYPE d3d11_device_GetFeatureLevel(ID3D11Device2 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_ClearView(ID3D11DeviceContext1 *iface, ID3D11View *view, const FLOAT color[4], const D3D11_RECT *rect, UINT num_rects)
static void STDMETHODCALLTYPE d3d10_device_SOSetTargets(ID3D10Device1 *iface, UINT target_count, ID3D10Buffer *const *targets, const UINT *offsets)
static void STDMETHODCALLTYPE d3d11_video_context_FinishSessionKeyRefresh(ID3D11VideoContext *iface, ID3D11CryptoSession *session)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetOutputExtension(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, const GUID *guid, UINT size, void *data)
static void d3d11_device_context_set_samplers(ID3D11DeviceContext1 *iface, enum wined3d_shader_type type, unsigned int start_slot, unsigned int count, ID3D11SamplerState *const *samplers)
static void STDMETHODCALLTYPE d3d10_device_ClearState(ID3D10Device1 *iface)
static BOOL STDMETHODCALLTYPE d3d10_multithread_GetMultithreadProtected(ID3D10Multithread *iface)
static void STDMETHODCALLTYPE d3d11_device_GetImmediateContext1(ID3D11Device2 *iface, ID3D11DeviceContext1 **immediate_context)
static const struct IUnknownVtbl d3d_device_inner_unknown_vtbl
static void STDMETHODCALLTYPE d3d11_device_context_PSGetShader(ID3D11DeviceContext1 *iface, ID3D11PixelShader **shader, ID3D11ClassInstance **class_instances, UINT *class_instance_count)
static void STDMETHODCALLTYPE d3d11_device_context_PSSetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers)
static void STDMETHODCALLTYPE d3d11_device_context_VSSetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers)
static void STDMETHODCALLTYPE d3d11_video_context_GetDevice(ID3D11VideoContext *iface, ID3D11Device **device)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDeviceContextState(ID3D11Device2 *iface, UINT flags, const D3D_FEATURE_LEVEL *feature_levels, UINT feature_level_count, UINT sdk_version, REFIID emulated_interface, D3D_FEATURE_LEVEL *chosen_feature_level, ID3DDeviceContextState **state)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateComputeShader(ID3D11Device2 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11ComputeShader **shader)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetOutputColorSpace(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, D3D11_VIDEO_PROCESSOR_COLOR_SPACE *space)
static ULONG STDMETHODCALLTYPE d3d11_user_defined_annotation_AddRef(ID3DUserDefinedAnnotation *iface)
static void STDMETHODCALLTYPE d3d10_device_RSSetScissorRects(ID3D10Device1 *iface, UINT rect_count, const D3D10_RECT *rects)
static int d3d_depthstencil_state_compare(const void *key, const struct wine_rb_entry *entry)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_SubmitDecoderBuffers(ID3D11VideoContext *iface, ID3D11VideoDecoder *decoder, UINT count, const D3D11_VIDEO_DECODER_BUFFER_DESC *buffers)
static UINT STDMETHODCALLTYPE d3d11_device_context_GetContextFlags(ID3D11DeviceContext1 *iface)
static ULONG STDMETHODCALLTYPE d3d11_command_list_Release(ID3D11CommandList *iface)
static void STDMETHODCALLTYPE d3d11_device_context_OMGetRenderTargetsAndUnorderedAccessViews(ID3D11DeviceContext1 *iface, UINT render_target_view_count, ID3D11RenderTargetView **render_target_views, ID3D11DepthStencilView **depth_stencil_view, UINT unordered_access_view_start_slot, UINT unordered_access_view_count, ID3D11UnorderedAccessView **unordered_access_views)
static void STDMETHODCALLTYPE d3d11_device_context_SOSetTargets(ID3D11DeviceContext1 *iface, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *offsets)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateVideoProcessor(ID3D11VideoDevice1 *iface, ID3D11VideoProcessorEnumerator *enumerator, UINT rate_conversion_index, ID3D11VideoProcessor **processor)
static void STDMETHODCALLTYPE d3d11_device_context_GSSetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers)
static HRESULT STDMETHODCALLTYPE d3d11_device_context_QueryInterface(ID3D11DeviceContext1 *iface, REFIID iid, void **out)
static D3D11_DEVICE_CONTEXT_TYPE STDMETHODCALLTYPE d3d11_device_context_GetType(ID3D11DeviceContext1 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_CSSetUnorderedAccessViews(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11UnorderedAccessView *const *views, const UINT *initial_counts)
static void STDMETHODCALLTYPE d3d11_device_context_RSGetScissorRects(ID3D11DeviceContext1 *iface, UINT *rect_count, D3D11_RECT *rects)
static void d3d11_device_context_cleanup(struct d3d11_device_context *context)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CheckVideoDecoderFormat(ID3D11VideoDevice1 *iface, const GUID *profile, DXGI_FORMAT format, BOOL *supported)
static ULONG STDMETHODCALLTYPE d3d11_device_AddRef(ID3D11Device2 *iface)
static void STDMETHODCALLTYPE d3d11_video_context_StartSessionKeyRefresh(ID3D11VideoContext *iface, ID3D11CryptoSession *session, UINT random_number_size, void *random_number)
static HRESULT STDMETHODCALLTYPE d3d10_device_GetPrivateData(ID3D10Device1 *iface, REFGUID guid, UINT *data_size, void *data)
static void STDMETHODCALLTYPE d3d10_device_PSSetConstantBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer *const *buffers)
static void STDMETHODCALLTYPE d3d11_device_context_VSGetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView **views)
static void STDMETHODCALLTYPE d3d10_device_GSSetShaderResources(ID3D10Device1 *iface, UINT start_slot, UINT view_count, ID3D10ShaderResourceView *const *views)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_GetDecoderBuffer(ID3D11VideoContext *iface, ID3D11VideoDecoder *decoder, D3D11_VIDEO_DECODER_BUFFER_TYPE type, UINT *size, void **buffer)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateAuthenticatedChannel(ID3D11VideoDevice1 *iface, D3D11_AUTHENTICATED_CHANNEL_TYPE type, ID3D11AuthenticatedChannel **channel)
static void STDMETHODCALLTYPE d3d11_device_context_ResolveSubresource(ID3D11DeviceContext1 *iface, ID3D11Resource *dst_resource, UINT dst_subresource_idx, ID3D11Resource *src_resource, UINT src_subresource_idx, DXGI_FORMAT format)
static HRESULT STDMETHODCALLTYPE d3d11_device_GetPrivateData(ID3D11Device2 *iface, REFGUID guid, UINT *data_size, void *data)
static int d3d_sampler_state_compare(const void *key, const struct wine_rb_entry *entry)
static void STDMETHODCALLTYPE d3d10_device_CopyResource(ID3D10Device1 *iface, ID3D10Resource *dst_resource, ID3D10Resource *src_resource)
static void d3d11_device_context_set_shader_resource_views(ID3D11DeviceContext1 *iface, enum wined3d_shader_type type, unsigned int start_slot, unsigned int count, ID3D11ShaderResourceView *const *views)
void d3d_device_init(struct d3d_device *device, void *outer_unknown)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_QueryInterface(ID3D11VideoDevice1 *iface, REFIID iid, void **out)
static HRESULT STDMETHODCALLTYPE d3d11_device_context_Map(ID3D11DeviceContext1 *iface, ID3D11Resource *resource, UINT subresource_idx, D3D11_MAP map_type, UINT map_flags, D3D11_MAPPED_SUBRESOURCE *mapped_subresource)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_SetPrivateData(ID3D11VideoDevice1 *iface, REFGUID guid, UINT size, const void *data)
static void STDMETHODCALLTYPE d3d11_device_context_GSSetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *first_constant, const UINT *num_constants)
static HRESULT STDMETHODCALLTYPE d3d_device_inner_QueryInterface(IUnknown *iface, REFIID riid, void **out)
static ULONG STDMETHODCALLTYPE d3d11_device_context_AddRef(ID3D11DeviceContext1 *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateBlendState1(ID3D11Device2 *iface, const D3D11_BLEND_DESC1 *desc, ID3D11BlendState1 **state)
static void STDMETHODCALLTYPE d3d10_device_CopySubresourceRegion(ID3D10Device1 *iface, ID3D10Resource *dst_resource, UINT dst_subresource_idx, UINT dst_x, UINT dst_y, UINT dst_z, ID3D10Resource *src_resource, UINT src_subresource_idx, const D3D10_BOX *src_box)
static HRESULT STDMETHODCALLTYPE d3d10_device_CheckMultisampleQualityLevels(ID3D10Device1 *iface, DXGI_FORMAT format, UINT sample_count, UINT *quality_level_count)
static void CDECL device_parent_activate(struct wined3d_device_parent *device_parent, BOOL activate)
static HRESULT STDMETHODCALLTYPE d3d11_device_OpenSharedResourceByName(ID3D11Device2 *iface, const WCHAR *name, DWORD access, REFIID iid, void **resource)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateShaderResourceView1(ID3D10Device1 *iface, ID3D10Resource *resource, const D3D10_SHADER_RESOURCE_VIEW_DESC1 *desc, ID3D10ShaderResourceView1 **view)
static void STDMETHODCALLTYPE d3d11_device_context_IASetVertexBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *strides, const UINT *offsets)
static void STDMETHODCALLTYPE d3d11_device_context_DSGetShader(ID3D11DeviceContext1 *iface, ID3D11DomainShader **shader, ID3D11ClassInstance **class_instances, UINT *class_instance_count)
static struct d3d_device * device_from_wined3d_device_parent(struct wined3d_device_parent *device_parent)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamExtension(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, const GUID *guid, UINT size, void *data)
static void STDMETHODCALLTYPE d3d11_device_context_PSGetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState **samplers)
static void STDMETHODCALLTYPE d3d11_device_context_GenerateMips(ID3D11DeviceContext1 *iface, ID3D11ShaderResourceView *view)
static void STDMETHODCALLTYPE d3d10_device_GSGetConstantBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer **buffers)
static const struct ID3D11MultithreadVtbl d3d11_multithread_vtbl
static const ID3D11VideoContextVtbl d3d11_video_context_vtbl
static struct d3d11_device_context * impl_from_ID3D11Multithread(ID3D11Multithread *iface)
static void STDMETHODCALLTYPE d3d10_device_UpdateSubresource(ID3D10Device1 *iface, ID3D10Resource *resource, UINT subresource_idx, const D3D10_BOX *box, const void *data, UINT row_pitch, UINT depth_pitch)
static void STDMETHODCALLTYPE d3d10_device_VSGetConstantBuffers(ID3D10Device1 *iface, UINT start_slot, UINT buffer_count, ID3D10Buffer **buffers)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamLumaKey(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable, float lower, float upper)
static void STDMETHODCALLTYPE d3d11_device_context_SetPredication(ID3D11DeviceContext1 *iface, ID3D11Predicate *predicate, BOOL value)
static void STDMETHODCALLTYPE d3d10_device_Flush(ID3D10Device1 *iface)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamAlpha(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable, float alpha)
static const struct ID3DDeviceContextStateVtbl d3d_device_context_state_vtbl
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateVideoDecoderOutputView(ID3D11VideoDevice1 *iface, ID3D11Resource *resource, const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *desc, ID3D11VideoDecoderOutputView **view)
static void STDMETHODCALLTYPE d3d11_device_context_PSGetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers, UINT *first_constant, UINT *num_constants)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamLumaKey(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enabled, float *lower, float *upper)
static struct wined3d_state * d3d_device_context_state_get_wined3d_state(struct d3d_device_context_state *state, struct d3d_device *device)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture2D(ID3D10Device1 *iface, const D3D10_TEXTURE2D_DESC *desc, const D3D10_SUBRESOURCE_DATA *data, ID3D10Texture2D **texture)
static void STDMETHODCALLTYPE d3d10_device_SOGetTargets(ID3D10Device1 *iface, UINT buffer_count, ID3D10Buffer **buffers, UINT *offsets)
static ULONG STDMETHODCALLTYPE d3d11_user_defined_annotation_Release(ID3DUserDefinedAnnotation *iface)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture3D(ID3D10Device1 *iface, const D3D10_TEXTURE3D_DESC *desc, const D3D10_SUBRESOURCE_DATA *data, ID3D10Texture3D **texture)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CreateVideoProcessorEnumerator(ID3D11VideoDevice1 *iface, const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *desc, ID3D11VideoProcessorEnumerator **enumerator)
static void d3d_device_remove_context_state(struct d3d_device *device, struct d3d_device_context_state *state)
static ULONG STDMETHODCALLTYPE d3d11_device_context_Release(ID3D11DeviceContext1 *iface)
static HRESULT STDMETHODCALLTYPE d3d_device_context_state_SetPrivateData(ID3DDeviceContextState *iface, REFGUID guid, UINT data_size, const void *data)
static HRESULT STDMETHODCALLTYPE d3d11_multithread_QueryInterface(ID3D11Multithread *iface, REFIID iid, void **out)
static void STDMETHODCALLTYPE d3d10_device_GenerateMips(ID3D10Device1 *iface, ID3D10ShaderResourceView *view)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamFilter(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, D3D11_VIDEO_PROCESSOR_FILTER filter, BOOL enable, int level)
static void STDMETHODCALLTYPE d3d11_device_context_GSSetShader(ID3D11DeviceContext1 *iface, ID3D11GeometryShader *shader, ID3D11ClassInstance *const *class_instances, UINT class_instance_count)
static void STDMETHODCALLTYPE d3d11_device_context_VSGetShader(ID3D11DeviceContext1 *iface, ID3D11VertexShader **shader, ID3D11ClassInstance **class_instances, UINT *class_instance_count)
static HRESULT STDMETHODCALLTYPE dxgi_device_parent_QueryInterface(IWineDXGIDeviceParent *iface, REFIID iid, void **out)
static void STDMETHODCALLTYPE d3d11_device_context_DSSetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView *const *views)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable)
static void STDMETHODCALLTYPE d3d11_device_context_HSSetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState *const *samplers)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateDepthStencilView(ID3D10Device1 *iface, ID3D10Resource *resource, const D3D10_DEPTH_STENCIL_VIEW_DESC *desc, ID3D10DepthStencilView **view)
static void STDMETHODCALLTYPE d3d11_device_context_DrawInstanced(ID3D11DeviceContext1 *iface, UINT instance_vertex_count, UINT instance_count, UINT start_vertex_location, UINT start_instance_location)
static void STDMETHODCALLTYPE d3d11_device_context_CSGetUnorderedAccessViews(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11UnorderedAccessView **views)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetOutputBackgroundColor(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL *yuv, D3D11_VIDEO_COLOR *color)
static ULONG STDMETHODCALLTYPE d3d_device_inner_AddRef(IUnknown *iface)
static void STDMETHODCALLTYPE d3d10_device_PSSetShader(ID3D10Device1 *iface, ID3D10PixelShader *shader)
static void STDMETHODCALLTYPE d3d11_device_context_Dispatch(ID3D11DeviceContext1 *iface, UINT thread_group_count_x, UINT thread_group_count_y, UINT thread_group_count_z)
static void STDMETHODCALLTYPE d3d11_device_context_DSSetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers)
static void STDMETHODCALLTYPE d3d11_device_context_OMGetBlendState(ID3D11DeviceContext1 *iface, ID3D11BlendState **blend_state, FLOAT blend_factor[4], UINT *sample_mask)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamColorSpace(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *space)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetOutputConstriction(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL *enabled, SIZE *size)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateSamplerState(ID3D11Device2 *iface, const D3D11_SAMPLER_DESC *desc, ID3D11SamplerState **sampler_state)
static void STDMETHODCALLTYPE d3d_null_wined3d_object_destroyed(void *parent)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreatePixelShader(ID3D11Device2 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11PixelShader **shader)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDepthStencilState(ID3D11Device2 *iface, const D3D11_DEPTH_STENCIL_DESC *desc, ID3D11DepthStencilState **depth_stencil_state)
static void STDMETHODCALLTYPE d3d11_device_context_DrawIndexedInstancedIndirect(ID3D11DeviceContext1 *iface, ID3D11Buffer *buffer, UINT offset)
static void STDMETHODCALLTYPE d3d11_device_context_PSSetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState *const *samplers)
static void STDMETHODCALLTYPE d3d11_device_context_ClearDepthStencilView(ID3D11DeviceContext1 *iface, ID3D11DepthStencilView *depth_stencil_view, UINT flags, FLOAT depth, UINT8 stencil)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamSourceRect(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable, const RECT *rect)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamFilter(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, D3D11_VIDEO_PROCESSOR_FILTER filter, BOOL *enabled, int *level)
static HRESULT STDMETHODCALLTYPE d3d10_device_GetDeviceRemovedReason(ID3D10Device1 *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_context_SetPrivateDataInterface(ID3D11DeviceContext1 *iface, REFGUID guid, const IUnknown *data)
static void STDMETHODCALLTYPE d3d11_device_context_IASetInputLayout(ID3D11DeviceContext1 *iface, ID3D11InputLayout *input_layout)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_DecoderExtension(ID3D11VideoContext *iface, ID3D11VideoDecoder *decoder, const D3D11_VIDEO_DECODER_EXTENSION *extension)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateRasterizerState(ID3D10Device1 *iface, const D3D10_RASTERIZER_DESC *desc, ID3D10RasterizerState **rasterizer_state)
static HRESULT STDMETHODCALLTYPE d3d11_device_GetDeviceRemovedReason(ID3D11Device2 *iface)
static void STDMETHODCALLTYPE d3d10_device_OMGetDepthStencilState(ID3D10Device1 *iface, ID3D10DepthStencilState **depth_stencil_state, UINT *stencil_ref)
static void STDMETHODCALLTYPE d3d11_device_context_HSSetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *first_constant, const UINT *num_constants)
static void STDMETHODCALLTYPE d3d11_device_context_Draw(ID3D11DeviceContext1 *iface, UINT vertex_count, UINT start_vertex_location)
static ULONG STDMETHODCALLTYPE d3d10_device_AddRef(ID3D10Device1 *iface)
static struct wined3d_device_parent *STDMETHODCALLTYPE dxgi_device_parent_get_wined3d_device_parent(IWineDXGIDeviceParent *iface)
static const struct ID3DUserDefinedAnnotationVtbl d3d11_user_defined_annotation_vtbl
static ULONG STDMETHODCALLTYPE d3d11_multithread_AddRef(ID3D11Multithread *iface)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_GetCryptoSessionPrivateDataSize(ID3D11VideoDevice1 *iface, const GUID *encryption_type, const GUID *profile, const GUID *key_exchange_type, UINT *input_size, UINT *output_size)
static const struct ID3D11VideoDevice1Vtbl d3d11_video_device1_vtbl
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateDepthStencilState(ID3D10Device1 *iface, const D3D10_DEPTH_STENCIL_DESC *desc, ID3D10DepthStencilState **depth_stencil_state)
static HRESULT STDMETHODCALLTYPE d3d11_command_list_SetPrivateData(ID3D11CommandList *iface, REFGUID guid, UINT data_size, const void *data)
static void STDMETHODCALLTYPE d3d10_device_DrawIndexedInstanced(ID3D10Device1 *iface, UINT instance_index_count, UINT instance_count, UINT start_index_location, INT base_vertex_location, UINT start_instance_location)
static void STDMETHODCALLTYPE d3d11_device_context_ClearUnorderedAccessViewFloat(ID3D11DeviceContext1 *iface, ID3D11UnorderedAccessView *unordered_access_view, const float values[4])
static void STDMETHODCALLTYPE d3d10_device_OMGetBlendState(ID3D10Device1 *iface, ID3D10BlendState **blend_state, FLOAT blend_factor[4], UINT *sample_mask)
static D3D10_FEATURE_LEVEL1 STDMETHODCALLTYPE d3d10_device_GetFeatureLevel(ID3D10Device1 *iface)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetOutputColorSpace(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *space)
static void STDMETHODCALLTYPE d3d11_device_context_OMGetDepthStencilState(ID3D11DeviceContext1 *iface, ID3D11DepthStencilState **depth_stencil_state, UINT *stencil_ref)
static void STDMETHODCALLTYPE d3d10_device_OMSetRenderTargets(ID3D10Device1 *iface, UINT rtv_count, ID3D10RenderTargetView *const *rtvs, ID3D10DepthStencilView *depth_stencil_view)
static const struct wined3d_device_parent_ops d3d_wined3d_device_parent_ops
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetOutputTargetRect(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, BOOL enable, const RECT *rect)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateShaderResourceView(ID3D11Device2 *iface, ID3D11Resource *resource, const D3D11_SHADER_RESOURCE_VIEW_DESC *desc, ID3D11ShaderResourceView **view)
static void STDMETHODCALLTYPE d3d11_device_context_RSGetState(ID3D11DeviceContext1 *iface, ID3D11RasterizerState **rasterizer_state)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_SetPrivateDataInterface(ID3D11VideoContext *iface, REFGUID guid, const IUnknown *data)
static void d3d10_device_get_constant_buffers(ID3D10Device1 *iface, enum wined3d_shader_type type, UINT start_slot, UINT buffer_count, ID3D10Buffer **buffers)
static void STDMETHODCALLTYPE d3d10_device_GSGetSamplers(ID3D10Device1 *iface, UINT start_slot, UINT sampler_count, ID3D10SamplerState **samplers)
static void STDMETHODCALLTYPE d3d11_device_context_CSGetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers, UINT *first_constant, UINT *num_constants)
static void STDMETHODCALLTYPE d3d11_device_context_VSSetShader(ID3D11DeviceContext1 *iface, ID3D11VertexShader *shader, ID3D11ClassInstance *const *class_instances, UINT class_instance_count)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreatePredicate(ID3D11Device2 *iface, const D3D11_QUERY_DESC *desc, ID3D11Predicate **predicate)
static void STDMETHODCALLTYPE d3d11_device_context_GetPredication(ID3D11DeviceContext1 *iface, ID3D11Predicate **predicate, BOOL *value)
static ULONG STDMETHODCALLTYPE dxgi_device_parent_Release(IWineDXGIDeviceParent *iface)
static int d3d_rasterizer_state_compare(const void *key, const struct wine_rb_entry *entry)
static const struct ID3D11CommandListVtbl d3d11_command_list_vtbl
static struct d3d11_command_list * unsafe_impl_from_ID3D11CommandList(ID3D11CommandList *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDomainShader(ID3D11Device2 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11DomainShader **shader)
static void d3d11_device_context_init(struct d3d11_device_context *context, struct d3d_device *device, D3D11_DEVICE_CONTEXT_TYPE type)
static HRESULT STDMETHODCALLTYPE d3d11_device_context_FinishCommandList(ID3D11DeviceContext1 *iface, BOOL restore, ID3D11CommandList **command_list)
static void STDMETHODCALLTYPE d3d11_device_context_VSGetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers, UINT *first_constant, UINT *num_constants)
static UINT STDMETHODCALLTYPE d3d11_device_GetCreationFlags(ID3D11Device2 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_RSSetState(ID3D11DeviceContext1 *iface, ID3D11RasterizerState *rasterizer_state)
static HRESULT STDMETHODCALLTYPE d3d11_device_CheckCounter(ID3D11Device2 *iface, const D3D11_COUNTER_DESC *desc, D3D11_COUNTER_TYPE *type, UINT *active_counter_count, char *name, UINT *name_length, char *units, UINT *units_length, char *description, UINT *description_length)
static void d3d_device_context_state_remove_entry(struct d3d_device_context_state *state, struct d3d_device *device)
static void STDMETHODCALLTYPE d3d10_device_RSGetState(ID3D10Device1 *iface, ID3D10RasterizerState **rasterizer_state)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorSetStreamStereoFormat(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL enable, D3D11_VIDEO_PROCESSOR_STEREO_FORMAT format, BOOL left_view_frame0, BOOL base_view_frame0, D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE flip_mode, int mono_offset)
static void STDMETHODCALLTYPE d3d11_device_context_HSGetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers)
static BOOL STDMETHODCALLTYPE d3d10_multithread_SetMultithreadProtected(ID3D10Multithread *iface, BOOL enable)
static void STDMETHODCALLTYPE d3d11_device_context_PSSetShader(ID3D11DeviceContext1 *iface, ID3D11PixelShader *shader, ID3D11ClassInstance *const *class_instances, UINT class_instance_count)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateBlendState(ID3D11Device2 *iface, const D3D11_BLEND_DESC *desc, ID3D11BlendState **blend_state)
static void STDMETHODCALLTYPE d3d10_multithread_Enter(ID3D10Multithread *iface)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreatePixelShader(ID3D10Device1 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D10PixelShader **shader)
static struct d3d_device * device_from_dxgi_device_parent(IWineDXGIDeviceParent *iface)
static void STDMETHODCALLTYPE d3d11_device_context_CSSetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers)
static HRESULT STDMETHODCALLTYPE d3d11_command_list_SetPrivateDataInterface(ID3D11CommandList *iface, REFGUID guid, const IUnknown *data)
static void STDMETHODCALLTYPE d3d11_device_context_GetDevice(ID3D11DeviceContext1 *iface, ID3D11Device **device)
static struct d3d11_device_context * impl_from_ID3D11VideoContext(ID3D11VideoContext *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_SetPrivateData(ID3D11Device2 *iface, REFGUID guid, UINT data_size, const void *data)
static void STDMETHODCALLTYPE d3d10_device_VSSetShader(ID3D10Device1 *iface, ID3D10VertexShader *shader)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateRenderTargetView(ID3D11Device2 *iface, ID3D11Resource *resource, const D3D11_RENDER_TARGET_VIEW_DESC *desc, ID3D11RenderTargetView **view)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_CheckCryptoKeyExchange(ID3D11VideoDevice1 *iface, const GUID *encryption_type, const GUID *profile, UINT index, GUID *key_exchange_type)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_RecommendVideoDecoderDownsampleParameters(ID3D11VideoDevice1 *iface, const D3D11_VIDEO_DECODER_DESC *input_desc, DXGI_COLOR_SPACE_TYPE input_colour_space, const D3D11_VIDEO_DECODER_CONFIG *config, const DXGI_RATIONAL *framerate, D3D11_VIDEO_SAMPLE_DESC *output_desc)
static void STDMETHODCALLTYPE d3d11_device_context_DiscardView1(ID3D11DeviceContext1 *iface, ID3D11View *view, const D3D11_RECT *rects, UINT num_rects)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateRasterizerState(ID3D11Device2 *iface, const D3D11_RASTERIZER_DESC *desc, ID3D11RasterizerState **rasterizer_state)
static void STDMETHODCALLTYPE d3d11_device_context_DrawIndexedInstanced(ID3D11DeviceContext1 *iface, UINT instance_index_count, UINT instance_count, UINT start_index_location, INT base_vertex_location, UINT start_instance_location)
static void STDMETHODCALLTYPE d3d11_device_context_Flush(ID3D11DeviceContext1 *iface)
static BOOL STDMETHODCALLTYPE d3d11_multithread_SetMultithreadProtected(ID3D11Multithread *iface, BOOL enable)
static HRESULT STDMETHODCALLTYPE d3d10_device_CheckFormatSupport(ID3D10Device1 *iface, DXGI_FORMAT format, UINT *format_support)
static ULONG STDMETHODCALLTYPE d3d11_multithread_Release(ID3D11Multithread *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_OpenSharedResource(ID3D11Device2 *iface, HANDLE resource, REFIID iid, void **out)
static void STDMETHODCALLTYPE d3d11_device_context_IASetIndexBuffer(ID3D11DeviceContext1 *iface, ID3D11Buffer *buffer, DXGI_FORMAT format, UINT offset)
static void STDMETHODCALLTYPE d3d11_device_context_DSGetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView **views)
static void d3d_device_context_state_init(struct d3d_device_context_state *state, struct d3d_device *device, D3D_FEATURE_LEVEL feature_level, REFIID emulated_interface)
static HRESULT STDMETHODCALLTYPE d3d11_device_CheckMultisampleQualityLevels1(ID3D11Device2 *iface, DXGI_FORMAT format, UINT sample_count, UINT flags, UINT *quality_level_count)
static void STDMETHODCALLTYPE d3d11_user_defined_annotation_SetMarker(ID3DUserDefinedAnnotation *iface, const WCHAR *name)
static HRESULT STDMETHODCALLTYPE d3d11_video_device_GetVideoDecoderConfigCount(ID3D11VideoDevice1 *iface, const D3D11_VIDEO_DECODER_DESC *desc, UINT *count)
static void STDMETHODCALLTYPE d3d11_device_context_CSGetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers)
static void STDMETHODCALLTYPE d3d11_device_context_SOGetTargets(ID3D11DeviceContext1 *iface, UINT buffer_count, ID3D11Buffer **buffers)
static void STDMETHODCALLTYPE d3d11_device_CheckCounterInfo(ID3D11Device2 *iface, D3D11_COUNTER_INFO *info)
static ULONG STDMETHODCALLTYPE d3d_device_inner_Release(IUnknown *iface)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enabled)
static void d3d_device_context_state_private_release(struct d3d_device_context_state *state)
static void STDMETHODCALLTYPE d3d11_device_context_DSGetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers)
static void STDMETHODCALLTYPE d3d11_device_context_DiscardResource(ID3D11DeviceContext1 *iface, ID3D11Resource *resource)
static void STDMETHODCALLTYPE d3d11_device_context_CopyResource(ID3D11DeviceContext1 *iface, ID3D11Resource *dst_resource, ID3D11Resource *src_resource)
static BOOL STDMETHODCALLTYPE d3d11_user_defined_annotation_GetStatus(ID3DUserDefinedAnnotation *iface)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamAlpha(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enabled, float *alpha)
static void STDMETHODCALLTYPE d3d11_device_context_OMSetRenderTargetsAndUnorderedAccessViews(ID3D11DeviceContext1 *iface, UINT render_target_view_count, ID3D11RenderTargetView *const *render_target_views, ID3D11DepthStencilView *depth_stencil_view, UINT uav_start_idx, UINT uav_count, ID3D11UnorderedAccessView *const *uavs, const UINT *initial_counts)
static const struct ID3D11Device2Vtbl d3d11_device_vtbl
static void STDMETHODCALLTYPE d3d11_device_context_DiscardView(ID3D11DeviceContext1 *iface, ID3D11View *view)
static ULONG d3d_device_context_state_private_addref(struct d3d_device_context_state *state)
static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *iface, DXGI_FORMAT format, UINT *format_support)
static void STDMETHODCALLTYPE d3d10_device_GetPredication(ID3D10Device1 *iface, ID3D10Predicate **predicate, BOOL *value)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_NegotiateAuthenticatedChannelKeyExchange(ID3D11VideoContext *iface, ID3D11AuthenticatedChannel *channel, UINT size, void *data)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateVertexShader(ID3D10Device1 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D10VertexShader **shader)
static void d3d11_device_context_get_constant_buffers(ID3D11DeviceContext1 *iface, enum wined3d_shader_type type, unsigned int start_slot, unsigned int buffer_count, ID3D11Buffer **buffers, unsigned int *offsets, unsigned int *counts)
static void STDMETHODCALLTYPE d3d11_multithread_Leave(ID3D11Multithread *iface)
static D3D11_DSV_DIMENSION d3d11_dsv_dimension_from_d3d10(D3D10_DSV_DIMENSION dim)
static void STDMETHODCALLTYPE d3d11_device_context_PSGetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers)
static void STDMETHODCALLTYPE d3d11_device_context_IASetPrimitiveTopology(ID3D11DeviceContext1 *iface, D3D11_PRIMITIVE_TOPOLOGY topology)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateVertexShader(ID3D11Device2 *iface, const void *byte_code, SIZE_T byte_code_length, ID3D11ClassLinkage *class_linkage, ID3D11VertexShader **shader)
static void STDMETHODCALLTYPE d3d11_device_context_End(ID3D11DeviceContext1 *iface, ID3D11Asynchronous *asynchronous)
static UINT STDMETHODCALLTYPE d3d10_device_GetCreationFlags(ID3D10Device1 *iface)
static struct d3d11_command_list * impl_from_ID3D11CommandList(ID3D11CommandList *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_SetExceptionMode(ID3D11Device2 *iface, UINT flags)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateCounter(ID3D11Device2 *iface, const D3D11_COUNTER_DESC *desc, ID3D11Counter **counter)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateQuery(ID3D11Device2 *iface, const D3D11_QUERY_DESC *desc, ID3D11Query **query)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateBuffer(ID3D10Device1 *iface, const D3D10_BUFFER_DESC *desc, const D3D10_SUBRESOURCE_DATA *data, ID3D10Buffer **buffer)
static void STDMETHODCALLTYPE d3d10_device_PSSetSamplers(ID3D10Device1 *iface, UINT start_slot, UINT sampler_count, ID3D10SamplerState *const *samplers)
static void STDMETHODCALLTYPE d3d11_device_context_RSGetViewports(ID3D11DeviceContext1 *iface, UINT *viewport_count, D3D11_VIEWPORT *viewports)
static struct d3d11_device_context * impl_from_ID3DUserDefinedAnnotation(ID3DUserDefinedAnnotation *iface)
static HRESULT STDMETHODCALLTYPE d3d11_device_context_SetPrivateData(ID3D11DeviceContext1 *iface, REFGUID guid, UINT data_size, const void *data)
static struct d3d_device * impl_from_ID3D10Multithread(ID3D10Multithread *iface)
static void STDMETHODCALLTYPE d3d10_device_IASetPrimitiveTopology(ID3D10Device1 *iface, D3D10_PRIMITIVE_TOPOLOGY topology)
static ULONG STDMETHODCALLTYPE d3d11_video_device_AddRef(ID3D11VideoDevice1 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_HSGetShaderResources(ID3D11DeviceContext1 *iface, UINT start_slot, UINT view_count, ID3D11ShaderResourceView **views)
static void STDMETHODCALLTYPE d3d10_device_VSGetSamplers(ID3D10Device1 *iface, UINT start_slot, UINT sampler_count, ID3D10SamplerState **samplers)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateSamplerState(ID3D10Device1 *iface, const D3D10_SAMPLER_DESC *desc, ID3D10SamplerState **sampler_state)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamFrameFormat(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, D3D11_VIDEO_FRAME_FORMAT *format)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture1D(ID3D10Device1 *iface, const D3D10_TEXTURE1D_DESC *desc, const D3D10_SUBRESOURCE_DATA *data, ID3D10Texture1D **texture)
static HRESULT CDECL device_parent_texture_sub_resource_created(struct wined3d_device_parent *device_parent, enum wined3d_resource_type type, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, void **parent, const struct wined3d_parent_ops **parent_ops)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamRotation(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enable, D3D11_VIDEO_PROCESSOR_ROTATION *rotation)
static HRESULT STDMETHODCALLTYPE d3d_device_context_state_QueryInterface(ID3DDeviceContextState *iface, REFIID iid, void **out)
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateRenderTargetView(ID3D10Device1 *iface, ID3D10Resource *resource, const D3D10_RENDER_TARGET_VIEW_DESC *desc, ID3D10RenderTargetView **view)
static void STDMETHODCALLTYPE d3d10_device_VSSetSamplers(ID3D10Device1 *iface, UINT start_slot, UINT sampler_count, ID3D10SamplerState *const *samplers)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamPalette(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, UINT count, UINT *entries)
static void STDMETHODCALLTYPE d3d10_device_GSSetShader(ID3D10Device1 *iface, ID3D10GeometryShader *shader)
static void STDMETHODCALLTYPE d3d11_device_context_CSGetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState **samplers)
static const struct ID3D11DeviceContext1Vtbl d3d11_device_context_vtbl
static void STDMETHODCALLTYPE d3d11_device_context_HSSetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamSourceRect(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enabled, RECT *rect)
static void d3d10_device_set_samplers(ID3D10Device1 *iface, enum wined3d_shader_type type, unsigned int start_slot, unsigned int count, ID3D10SamplerState *const *samplers)
static HRESULT STDMETHODCALLTYPE d3d11_device_context_GetData(ID3D11DeviceContext1 *iface, ID3D11Asynchronous *asynchronous, void *data, UINT data_size, UINT data_flags)
static void STDMETHODCALLTYPE d3d11_multithread_Enter(ID3D11Multithread *iface)
static void STDMETHODCALLTYPE d3d_device_context_state_GetDevice(ID3DDeviceContextState *iface, ID3D11Device **device)
static void STDMETHODCALLTYPE d3d11_video_context_EncryptionBlt(ID3D11VideoContext *iface, ID3D11CryptoSession *session, ID3D11Texture2D *src_surface, ID3D11Texture2D *dst_surface, UINT iv_size, void *iv)
static void STDMETHODCALLTYPE d3d11_video_context_VideoProcessorGetStreamDestRect(ID3D11VideoContext *iface, ID3D11VideoProcessor *processor, UINT stream_idx, BOOL *enabled, RECT *rect)
static void STDMETHODCALLTYPE d3d11_device_context_GSGetConstantBuffers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers)
static void STDMETHODCALLTYPE d3d10_device_RSGetViewports(ID3D10Device1 *iface, UINT *viewport_count, D3D10_VIEWPORT *viewports)
static const struct ID3D10Device1Vtbl d3d10_device1_vtbl
static void STDMETHODCALLTYPE d3d11_device_context_DSGetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers, UINT *first_constant, UINT *num_constants)
static void STDMETHODCALLTYPE d3d11_video_context_DecryptionBlt(ID3D11VideoContext *iface, ID3D11CryptoSession *session, ID3D11Texture2D *src_surface, ID3D11Texture2D *dst_surface, D3D11_ENCRYPTED_BLOCK_INFO *block_info, UINT key_size, const void *key, UINT iv_size, void *iv)
static void STDMETHODCALLTYPE d3d11_command_list_GetDevice(ID3D11CommandList *iface, ID3D11Device **device)
static void STDMETHODCALLTYPE d3d10_device_IASetInputLayout(ID3D10Device1 *iface, ID3D10InputLayout *input_layout)
static const struct ID3D10MultithreadVtbl d3d10_multithread_vtbl
static void STDMETHODCALLTYPE d3d10_device_IAGetInputLayout(ID3D10Device1 *iface, ID3D10InputLayout **input_layout)
static HRESULT STDMETHODCALLTYPE d3d11_device_CheckMultisampleQualityLevels(ID3D11Device2 *iface, DXGI_FORMAT format, UINT sample_count, UINT *quality_level_count)
static UINT STDMETHODCALLTYPE d3d10_device_GetExceptionMode(ID3D10Device1 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_GSGetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer **buffers, UINT *first_constant, UINT *num_constants)
static ULONG STDMETHODCALLTYPE d3d11_video_device_Release(ID3D11VideoDevice1 *iface)
static void STDMETHODCALLTYPE d3d11_device_context_DSSetConstantBuffers1(ID3D11DeviceContext1 *iface, UINT start_slot, UINT buffer_count, ID3D11Buffer *const *buffers, const UINT *first_constant, const UINT *num_constants)
static void STDMETHODCALLTYPE d3d10_multithread_Leave(ID3D10Multithread *iface)
static void STDMETHODCALLTYPE d3d10_device_RSSetViewports(ID3D10Device1 *iface, UINT viewport_count, const D3D10_VIEWPORT *viewports)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_GetEncryptionBltKey(ID3D11VideoContext *iface, ID3D11CryptoSession *session, UINT size, void *key)
static void STDMETHODCALLTYPE d3d10_device_DrawInstanced(ID3D10Device1 *iface, UINT instance_vertex_count, UINT instance_count, UINT start_vertex_location, UINT start_instance_location)
static void STDMETHODCALLTYPE d3d11_device_context_HSSetShader(ID3D11DeviceContext1 *iface, ID3D11HullShader *shader, ID3D11ClassInstance *const *class_instances, UINT class_instance_count)
static void STDMETHODCALLTYPE d3d11_device_context_HSGetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState **samplers)
static void STDMETHODCALLTYPE d3d11_device_context_CSGetShader(ID3D11DeviceContext1 *iface, ID3D11ComputeShader **shader, ID3D11ClassInstance **class_instances, UINT *class_instance_count)
static void STDMETHODCALLTYPE d3d11_device_context_VSSetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState *const *samplers)
static void STDMETHODCALLTYPE d3d11_device_context_OMSetRenderTargets(ID3D11DeviceContext1 *iface, UINT rtv_count, ID3D11RenderTargetView *const *rtvs, ID3D11DepthStencilView *depth_stencil_view)
static HRESULT STDMETHODCALLTYPE d3d10_multithread_QueryInterface(ID3D10Multithread *iface, REFIID iid, void **out)
static void STDMETHODCALLTYPE d3d11_device_context_DSSetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState *const *samplers)
static void STDMETHODCALLTYPE d3d11_device_context_SwapDeviceContextState(ID3D11DeviceContext1 *iface, ID3DDeviceContextState *state, ID3DDeviceContextState **prev)
static void STDMETHODCALLTYPE d3d11_device_context_VSGetSamplers(ID3D11DeviceContext1 *iface, UINT start_slot, UINT sampler_count, ID3D11SamplerState **samplers)
static void CDECL device_parent_wined3d_device_created(struct wined3d_device_parent *device_parent, struct wined3d_device *wined3d_device)
static void STDMETHODCALLTYPE d3d11_device_GetResourceTiling(ID3D11Device2 *iface, ID3D11Resource *resource, UINT *tile_count, D3D11_PACKED_MIP_DESC *mip_desc, D3D11_TILE_SHAPE *tile_shape, UINT *subresource_tiling_count, UINT first_subresource_tiling, D3D11_SUBRESOURCE_TILING *subresource_tiling)
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDeferredContext1(ID3D11Device2 *iface, UINT flags, ID3D11DeviceContext1 **context)
static void STDMETHODCALLTYPE d3d11_device_context_CopyStructureCount(ID3D11DeviceContext1 *iface, ID3D11Buffer *dst_buffer, UINT dst_offset, ID3D11UnorderedAccessView *src_view)
static D3D10_FEATURE_LEVEL1 d3d10_feature_level1_from_d3d_feature_level(D3D_FEATURE_LEVEL level)
static void STDMETHODCALLTYPE d3d10_device_ClearDepthStencilView(ID3D10Device1 *iface, ID3D10DepthStencilView *depth_stencil_view, UINT flags, FLOAT depth, UINT8 stencil)
static HRESULT STDMETHODCALLTYPE d3d11_video_context_DecoderBeginFrame(ID3D11VideoContext *iface, ID3D11VideoDecoder *decoder, ID3D11VideoDecoderOutputView *view, UINT key_size, const void *key)
static FLOAT STDMETHODCALLTYPE d3d11_device_context_GetResourceMinLOD(ID3D11DeviceContext1 *iface, ID3D11Resource *resource)
static void d3d10_device_set_constant_buffers(ID3D10Device1 *iface, enum wined3d_shader_type type, unsigned int start_slot, unsigned int buffer_count, ID3D10Buffer *const *buffers)
void *CDECL wined3d_buffer_get_parent(const struct wined3d_buffer *buffer)
void CDECL wined3d_device_context_draw(struct wined3d_device_context *context, unsigned int start_vertex, unsigned int vertex_count, unsigned int start_instance, unsigned int instance_count)
void CDECL wined3d_device_context_set_rasterizer_state(struct wined3d_device_context *context, struct wined3d_rasterizer_state *rasterizer_state)
void CDECL wined3d_device_context_set_primitive_type(struct wined3d_device_context *context, enum wined3d_primitive_type primitive_type, unsigned int patch_vertex_count)
void CDECL wined3d_device_context_set_depth_stencil_state(struct wined3d_device_context *context, struct wined3d_depth_stencil_state *depth_stencil_state, unsigned int stencil_ref)
struct wined3d_depth_stencil_state *CDECL wined3d_device_context_get_depth_stencil_state(const struct wined3d_device_context *context, unsigned int *stencil_ref)
void CDECL wined3d_device_context_set_shader(struct wined3d_device_context *context, enum wined3d_shader_type type, struct wined3d_shader *shader)
void CDECL wined3d_device_context_clear_uav_uint(struct wined3d_device_context *context, struct wined3d_unordered_access_view *view, const struct wined3d_uvec4 *clear_value)
struct wined3d_shader *CDECL wined3d_device_context_get_shader(const struct wined3d_device_context *context, enum wined3d_shader_type type)
void CDECL wined3d_device_get_creation_parameters(const struct wined3d_device *device, struct wined3d_device_creation_parameters *parameters)
struct wined3d_sampler *CDECL wined3d_device_context_get_sampler(const struct wined3d_device_context *context, enum wined3d_shader_type shader_type, unsigned int idx)
void CDECL wined3d_device_context_set_blend_state(struct wined3d_device_context *context, struct wined3d_blend_state *blend_state, const struct wined3d_color *blend_factor, unsigned int sample_mask)
struct wined3d_rasterizer_state *CDECL wined3d_device_context_get_rasterizer_state(struct wined3d_device_context *context)
struct wined3d_buffer *CDECL wined3d_device_context_get_index_buffer(const struct wined3d_device_context *context, enum wined3d_format_id *format, unsigned int *offset)
HRESULT CDECL wined3d_device_context_unmap(struct wined3d_device_context *context, struct wined3d_resource *resource, unsigned int sub_resource_idx)
void CDECL wined3d_device_context_resolve_sub_resource(struct wined3d_device_context *context, struct wined3d_resource *dst_resource, unsigned int dst_sub_resource_idx, struct wined3d_resource *src_resource, unsigned int src_sub_resource_idx, enum wined3d_format_id format_id)
void CDECL wined3d_device_context_set_vertex_declaration(struct wined3d_device_context *context, struct wined3d_vertex_declaration *declaration)
void CDECL wined3d_device_context_clear_uav_float(struct wined3d_device_context *context, struct wined3d_unordered_access_view *view, const struct wined3d_vec4 *clear_value)
struct wined3d_rendertarget_view *CDECL wined3d_device_context_get_depth_stencil_view(const struct wined3d_device_context *context)
HRESULT CDECL wined3d_device_context_map(struct wined3d_device_context *context, struct wined3d_resource *resource, unsigned int sub_resource_idx, struct wined3d_map_desc *map_desc, const struct wined3d_box *box, unsigned int flags)
void CDECL wined3d_device_context_set_shader_resource_views(struct wined3d_device_context *context, enum wined3d_shader_type type, unsigned int start_idx, unsigned int count, struct wined3d_shader_resource_view *const *const views)
struct wined3d_query *CDECL wined3d_device_context_get_predication(struct wined3d_device_context *context, BOOL *value)
HRESULT CDECL wined3d_device_context_copy_sub_resource_region(struct wined3d_device_context *context, struct wined3d_resource *dst_resource, unsigned int dst_sub_resource_idx, unsigned int dst_x, unsigned int dst_y, unsigned int dst_z, struct wined3d_resource *src_resource, unsigned int src_sub_resource_idx, const struct wined3d_box *src_box, unsigned int flags)
struct wined3d_state *CDECL wined3d_device_get_state(struct wined3d_device *device)
HRESULT CDECL wined3d_device_context_set_stream_sources(struct wined3d_device_context *context, unsigned int start_idx, unsigned int count, const struct wined3d_stream_state *streams)
HRESULT CDECL wined3d_device_context_get_stream_source(const struct wined3d_device_context *context, unsigned int stream_idx, struct wined3d_buffer **buffer, unsigned int *offset, unsigned int *stride)
struct wined3d_unordered_access_view *CDECL wined3d_device_context_get_unordered_access_view(const struct wined3d_device_context *context, enum wined3d_pipeline pipeline, unsigned int idx)
void CDECL wined3d_device_context_execute_command_list(struct wined3d_device_context *context, struct wined3d_command_list *list, bool restore_state)
ULONG CDECL wined3d_device_decref(struct wined3d_device *device)
void CDECL wined3d_device_context_get_scissor_rects(const struct wined3d_device_context *context, unsigned int *rect_count, RECT *rects)
void *CDECL wined3d_blend_state_get_parent(const struct wined3d_blend_state *state)
void CDECL wined3d_device_context_generate_mipmaps(struct wined3d_device_context *context, struct wined3d_shader_resource_view *view)
void CDECL wined3d_device_context_set_constant_buffers(struct wined3d_device_context *context, enum wined3d_shader_type type, unsigned int start_idx, unsigned int count, const struct wined3d_constant_buffer_state *buffers)
struct wined3d_rendertarget_view *CDECL wined3d_device_context_get_rendertarget_view(const struct wined3d_device_context *context, unsigned int view_idx)
void CDECL wined3d_device_context_set_viewports(struct wined3d_device_context *context, unsigned int viewport_count, const struct wined3d_viewport *viewports)
void CDECL wined3d_device_context_get_primitive_type(const struct wined3d_device_context *context, enum wined3d_primitive_type *primitive_type, unsigned int *patch_vertex_count)
void CDECL wined3d_device_context_flush(struct wined3d_device_context *context)
HRESULT CDECL wined3d_device_context_clear_rendertarget_view(struct wined3d_device_context *context, struct wined3d_rendertarget_view *view, const RECT *rect, unsigned int flags, const struct wined3d_color *color, float depth, unsigned int stencil)
void CDECL wined3d_device_context_get_viewports(const struct wined3d_device_context *context, unsigned int *viewport_count, struct wined3d_viewport *viewports)
void CDECL wined3d_device_context_update_sub_resource(struct wined3d_device_context *context, struct wined3d_resource *resource, unsigned int sub_resource_idx, const struct wined3d_box *box, const void *data, unsigned int row_pitch, unsigned int depth_pitch, unsigned int flags)
void CDECL wined3d_device_context_copy_uav_counter(struct wined3d_device_context *context, struct wined3d_buffer *dst_buffer, unsigned int offset, struct wined3d_unordered_access_view *uav)
struct wined3d_device_context *CDECL wined3d_device_get_immediate_context(struct wined3d_device *device)
void *CDECL wined3d_depth_stencil_state_get_parent(const struct wined3d_depth_stencil_state *state)
void CDECL wined3d_device_context_set_unordered_access_views(struct wined3d_device_context *context, enum wined3d_pipeline pipeline, unsigned int start_idx, unsigned int count, struct wined3d_unordered_access_view *const *uavs, const unsigned int *initial_counts)
void CDECL wined3d_device_context_set_samplers(struct wined3d_device_context *context, enum wined3d_shader_type type, unsigned int start_idx, unsigned int count, struct wined3d_sampler *const *samplers)
void CDECL wined3d_device_context_set_state(struct wined3d_device_context *context, struct wined3d_state *state)
struct wined3d_buffer *CDECL wined3d_device_context_get_stream_output(struct wined3d_device_context *context, unsigned int idx, unsigned int *offset)
void CDECL wined3d_device_context_draw_indexed(struct wined3d_device_context *context, int base_vertex_index, unsigned int start_index, unsigned int index_count, unsigned int start_instance, unsigned int instance_count)
struct wined3d *CDECL wined3d_device_get_wined3d(const struct wined3d_device *device)
void CDECL wined3d_device_context_reset_state(struct wined3d_device_context *context)
HRESULT CDECL wined3d_device_get_device_caps(const struct wined3d_device *device, struct wined3d_caps *caps)
void CDECL wined3d_device_context_issue_query(struct wined3d_device_context *context, struct wined3d_query *query, unsigned int flags)
struct wined3d_vertex_declaration *CDECL wined3d_device_context_get_vertex_declaration(const struct wined3d_device_context *context)
void CDECL wined3d_device_context_set_render_targets_and_unordered_access_views(struct wined3d_device_context *context, unsigned int rtv_count, struct wined3d_rendertarget_view *const *render_target_views, struct wined3d_rendertarget_view *depth_stencil_view, UINT uav_count, struct wined3d_unordered_access_view *const *unordered_access_views, const unsigned int *initial_counts)
void CDECL wined3d_device_context_copy_resource(struct wined3d_device_context *context, struct wined3d_resource *dst_resource, struct wined3d_resource *src_resource)
void CDECL wined3d_device_context_set_stream_outputs(struct wined3d_device_context *context, const struct wined3d_stream_output outputs[WINED3D_MAX_STREAM_OUTPUT_BUFFERS])
struct wined3d_shader_resource_view *CDECL wined3d_device_context_get_shader_resource_view(const struct wined3d_device_context *context, enum wined3d_shader_type shader_type, unsigned int idx)
void *CDECL wined3d_rasterizer_state_get_parent(const struct wined3d_rasterizer_state *state)
ULONG CDECL wined3d_device_incref(struct wined3d_device *device)
struct wined3d_blend_state *CDECL wined3d_device_context_get_blend_state(const struct wined3d_device_context *context, struct wined3d_color *blend_factor, unsigned int *sample_mask)
void CDECL wined3d_device_context_set_predication(struct wined3d_device_context *context, struct wined3d_query *predicate, BOOL value)
void CDECL wined3d_device_context_set_scissor_rects(struct wined3d_device_context *context, unsigned int rect_count, const RECT *rects)
void CDECL wined3d_device_context_set_index_buffer(struct wined3d_device_context *context, struct wined3d_buffer *buffer, enum wined3d_format_id format_id, unsigned int offset)
void CDECL wined3d_device_context_get_constant_buffer(const struct wined3d_device_context *context, enum wined3d_shader_type shader_type, unsigned int idx, struct wined3d_constant_buffer_state *state)
HRESULT CDECL wined3d_query_get_data(struct wined3d_query *query, void *data, UINT data_size, uint32_t flags)
void *CDECL wined3d_query_get_parent(const struct wined3d_query *query)
UINT CDECL wined3d_query_get_data_size(const struct wined3d_query *query)
void CDECL wined3d_resource_get_desc(const struct wined3d_resource *resource, struct wined3d_resource_desc *desc)
void *CDECL wined3d_shader_get_parent(const struct wined3d_shader *shader)
struct wined3d_resource *CDECL wined3d_texture_get_resource(struct wined3d_texture *texture)
void *CDECL wined3d_shader_resource_view_get_parent(const struct wined3d_shader_resource_view *view)
void *CDECL wined3d_rendertarget_view_get_parent(const struct wined3d_rendertarget_view *view)
void *CDECL wined3d_unordered_access_view_get_parent(const struct wined3d_unordered_access_view *view)
_ACRTIMP int __cdecl memcmp(const void *, const void *, size_t)
static const FxOffsetAndName offsets[]
GLint GLint GLsizei GLsizei GLsizei depth
GLuint GLuint GLsizei count
GLint GLint GLsizei GLsizei height
GLuint GLuint GLsizei GLenum type
GLclampf GLclampf GLclampf alpha
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei width
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLenum const GLfloat * params
GLboolean GLenum GLenum GLvoid * values
GLuint GLint GLboolean GLint GLenum access
GLenum GLenum GLenum input
GLsizeiptr const GLvoid GLenum usage
GLint GLfloat GLint stencil
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
static D3D_DRIVER_TYPE HMODULE UINT const D3D_FEATURE_LEVEL UINT UINT sdk_version
static D3D_DRIVER_TYPE HMODULE UINT const D3D_FEATURE_LEVEL * feature_levels
static D3D_DRIVER_TYPE HMODULE UINT const D3D_FEATURE_LEVEL UINT UINT ID3D11Device D3D_FEATURE_LEVEL ID3D11DeviceContext ** immediate_context
#define memcpy(s1, s2, n)
D3D11_SHADER_VARIABLE_DESC desc
static ULONG ** element_count
INTERNETFEATURELIST feature
#define IsEqualGUID(rguid1, rguid2)
unsigned random_number(size_t range)
void *CDECL wined3d_sampler_get_parent(const struct wined3d_sampler *sampler)
#define WINE_RB_ENTRY_VALUE
D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT]
BOOL AlphaToCoverageEnable
BOOL IndependentBlendEnable
D3D10_BLEND_OP BlendOpAlpha
UINT8 RenderTargetWriteMask
D3D10_BLEND SrcBlendAlpha
D3D10_BLEND DestBlendAlpha
const char * SemanticName
BOOL AlphaToCoverageEnable
BOOL IndependentBlendEnable
D3D11_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT]
BOOL DoublePrecisionFloatShaderOps
BOOL DriverConcurrentCreates
D3D11_BLEND DestBlendAlpha
UINT8 RenderTargetWriteMask
D3D11_BLEND SrcBlendAlpha
D3D11_BLEND_OP BlendOpAlpha
ID3D11CommandList ID3D11CommandList_iface
struct wined3d_command_list * wined3d_list
ID3D11ComputeShader ID3D11ComputeShader_iface
ID3DUserDefinedAnnotation ID3DUserDefinedAnnotation_iface
ID3D11VideoContext ID3D11VideoContext_iface
ID3D11DeviceContext1 ID3D11DeviceContext1_iface
ID3D11Multithread ID3D11Multithread_iface
ID3D11DomainShader ID3D11DomainShader_iface
struct wined3d_shader * wined3d_shader
ID3D11HullShader ID3D11HullShader_iface
ID3D11UnorderedAccessView ID3D11UnorderedAccessView_iface
struct wined3d_unordered_access_view * wined3d_view
struct wined3d_blend_state * wined3d_state
ID3D11BlendState1 ID3D11BlendState1_iface
ID3D10Buffer ID3D10Buffer_iface
struct wined3d_buffer * wined3d_buffer
ID3D11Buffer ID3D11Buffer_iface
struct wined3d_depth_stencil_state * wined3d_state
ID3D11DepthStencilState ID3D11DepthStencilState_iface
struct wined3d_rendertarget_view * wined3d_view
ID3D11DepthStencilView ID3D11DepthStencilView_iface
ID3D10DepthStencilView ID3D10DepthStencilView_iface
struct wined3d_state * wined3d_state
struct d3d_device * device
ID3DDeviceContextState ID3DDeviceContextState_iface
struct wined3d_device_parent device_parent
IWineDXGIDeviceParent IWineDXGIDeviceParent_iface
ID3D10Multithread ID3D10Multithread_iface
ID3D11VideoDevice1 ID3D11VideoDevice1_iface
ID3D11GeometryShader ID3D11GeometryShader_iface
ID3D10GeometryShader ID3D10GeometryShader_iface
struct wined3d_shader * wined3d_shader
ID3D10PixelShader ID3D10PixelShader_iface
ID3D11PixelShader ID3D11PixelShader_iface
ID3D10Query ID3D10Query_iface
ID3D11Query ID3D11Query_iface
ID3D10RasterizerState ID3D10RasterizerState_iface
struct wined3d_rasterizer_state * wined3d_state
ID3D11RasterizerState1 ID3D11RasterizerState1_iface
struct wined3d_rendertarget_view * wined3d_view
ID3D10RenderTargetView ID3D10RenderTargetView_iface
ID3D11RenderTargetView ID3D11RenderTargetView_iface
ID3D10SamplerState ID3D10SamplerState_iface
ID3D11SamplerState ID3D11SamplerState_iface
ID3D10ShaderResourceView1 ID3D10ShaderResourceView1_iface
struct wined3d_shader_resource_view * wined3d_view
ID3D11ShaderResourceView ID3D11ShaderResourceView_iface
ID3D11VertexShader ID3D11VertexShader_iface
ID3D10VertexShader ID3D10VertexShader_iface
BOOL viewport_array_index_any_shader
enum wined3d_feature_level max_feature_level
BOOL shader_double_precision
struct wined3d_buffer * buffer
enum wined3d_multisample_type multisample_type
unsigned int multisample_quality
enum wined3d_format_id format
enum wined3d_feature_level feature_level
struct wined3d_buffer * buffer
struct wined3d_buffer * buffer
#define CONTAINING_RECORD(address, type, field)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, const struct wined3d_adapter *adapter, enum wined3d_device_type device_type, enum wined3d_format_id adapter_format_id, uint32_t usage, unsigned int bind_flags, enum wined3d_resource_type resource_type, enum wined3d_format_id check_format_id)
HRESULT CDECL wined3d_check_device_multisample_type(const struct wined3d_adapter *adapter, enum wined3d_device_type device_type, enum wined3d_format_id surface_format_id, BOOL windowed, enum wined3d_multisample_type multisample_type, unsigned int *quality_levels)
struct wined3d_adapter *CDECL wined3d_get_adapter(const struct wined3d *wined3d, unsigned int idx)
void CDECL wined3d_state_destroy(struct wined3d_state *state)
HRESULT CDECL wined3d_state_create(struct wined3d_device *device, const enum wined3d_feature_level *levels, unsigned int level_count, struct wined3d_state **state)
enum wined3d_feature_level CDECL wined3d_state_get_feature_level(const struct wined3d_state *state)
void *CDECL wined3d_vertex_declaration_get_parent(const struct wined3d_vertex_declaration *declaration)
#define WINED3DISSUE_BEGIN
#define WINED3DCLEAR_TARGET
@ WINED3D_MULTISAMPLE_8_SAMPLES
@ WINED3D_MULTISAMPLE_4_SAMPLES
static void wined3d_private_store_cleanup(struct wined3d_private_store *store)
#define WINED3D_BIND_VERTEX_BUFFER
#define WINED3D_MAX_STREAM_OUTPUT_BUFFERS
@ WINED3D_RTYPE_TEXTURE_2D
@ WINED3D_RTYPE_TEXTURE_1D
@ WINED3D_RTYPE_TEXTURE_3D
#define WINED3D_MAX_VIEWPORTS
#define WINED3D_MAX_CONSTANT_BUFFER_SIZE
#define WINED3D_BIND_UNORDERED_ACCESS
#define WINED3DERR_NOTAVAILABLE
#define WINED3DPTEXTURECAPS_POW2
#define WINED3D_BIND_SHADER_RESOURCE
#define WINED3DUSAGE_QUERY_WRAPANDMIP
#define WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
@ WINED3D_PIPELINE_COMPUTE
@ WINED3D_PIPELINE_GRAPHICS
#define WINED3D_BIND_DEPTH_STENCIL
static void wined3d_box_set(struct wined3d_box *box, unsigned int left, unsigned int top, unsigned int right, unsigned int bottom, unsigned int front, unsigned int back)
static void wined3d_private_store_init(struct wined3d_private_store *store)
static bool wined3d_bound_range(unsigned int start, unsigned int count, unsigned int limit)
@ WINED3D_FEATURE_LEVEL_11
@ WINED3D_SHADER_TYPE_HULL
@ WINED3D_SHADER_TYPE_PIXEL
@ WINED3D_SHADER_TYPE_GEOMETRY
@ WINED3D_SHADER_TYPE_DOMAIN
@ WINED3D_SHADER_TYPE_COMPUTE
@ WINED3D_SHADER_TYPE_VERTEX
#define WINED3D_BIND_RENDER_TARGET
#define WINED3DUSAGE_QUERY_GENMIPMAP
#define WINED3DERR_INVALIDCALL
#define WINED3D_TEXTURE_CREATE_GET_DC
#define WINED3D_BIND_INDEX_BUFFER
#define WINED3DOK_NOMIPGEN
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
#define DXGI_ERROR_INVALID_CALL
size_t const buffer_count