38 ID3D11BlendState1_AddRef(iface);
47 ID3D10BlendState1_AddRef(&
state->ID3D10BlendState1_iface);
48 *
object = &
state->ID3D10BlendState1_iface;
67 ID3D11Device2_AddRef(
state->device);
85 ID3D11Device2_Release(
device);
99 ID3D11Device_AddRef(*
device);
138 TRACE(
"iface %p, desc %p.\n", iface,
desc);
159 TRACE(
"iface %p, desc %p.\n", iface,
desc);
204 TRACE(
"iface %p.\n", iface);
213 TRACE(
"iface %p.\n", iface);
226 ID3D11Device2_QueryInterface(
state->device, &IID_ID3D10Device, (
void **)
device);
234 TRACE(
"iface %p, guid %s, data_size %p, data %p.\n",
245 TRACE(
"iface %p, guid %s, data_size %u, data %p.\n",
279 TRACE(
"iface %p, desc %p.\n", iface,
desc);
299 TRACE(
"iface %p, desc %p.\n", iface,
desc);
361 memset(&tmp_desc, 0,
sizeof(tmp_desc));
366 j =
desc->IndependentBlendEnable ?
i : 0;
401 TRACE(
"Returning existing blend state %p.\n",
object);
402 ID3D11BlendState1_AddRef(&
object->ID3D11BlendState1_iface);
409 if (!(
object =
calloc(1,
sizeof(*
object))))
417 object->refcount = 1;
419 object->desc = tmp_desc;
423 ERR(
"Failed to insert blend state entry.\n");
434 wined3d_desc.
rt[
i].enable =
desc->RenderTarget[
i].BlendEnable;
441 wined3d_desc.
rt[
i].writemask =
desc->RenderTarget[
i].RenderTargetWriteMask;
445 FIXME(
"Ignoring logic op %#x.\n",
desc->RenderTarget[0].LogicOp);
452 WARN(
"Failed to create wined3d blend state, hr %#lx.\n",
hr);
461 ID3D11Device2_AddRef(
object->device = &
device->ID3D11Device2_iface);
463 TRACE(
"Created blend state %p.\n",
object);
500 ID3D11DepthStencilState_AddRef(iface);
508 ID3D10DepthStencilState_AddRef(&
state->ID3D10DepthStencilState_iface);
509 *
object = &
state->ID3D10DepthStencilState_iface;
528 ID3D11Device2_AddRef(
state->device);
547 ID3D11Device2_Release(
device);
561 ID3D11Device_AddRef(*
device);
595 D3D11_DEPTH_STENCIL_DESC *
desc)
599 TRACE(
"iface %p, desc %p.\n", iface,
desc);
642 TRACE(
"iface %p.\n", iface);
651 TRACE(
"iface %p.\n", iface);
664 ID3D11Device2_QueryInterface(
state->device, &IID_ID3D10Device, (
void **)
device);
672 TRACE(
"iface %p, guid %s, data_size %p, data %p.\n",
683 TRACE(
"iface %p, guid %s, data_size %u, data %p.\n",
706 TRACE(
"iface %p, desc %p.\n", iface,
desc);
756 D3D11_DEPTH_STENCIL_DESC tmp_desc;
765 memset(&tmp_desc, 0,
sizeof(tmp_desc));
766 tmp_desc.DepthEnable =
desc->DepthEnable;
767 if (
desc->DepthEnable)
769 tmp_desc.DepthWriteMask =
desc->DepthWriteMask;
770 tmp_desc.DepthFunc =
desc->DepthFunc;
777 tmp_desc.StencilEnable =
desc->StencilEnable;
778 if (
desc->StencilEnable)
780 tmp_desc.StencilReadMask =
desc->StencilReadMask;
781 tmp_desc.StencilWriteMask =
desc->StencilWriteMask;
782 tmp_desc.FrontFace =
desc->FrontFace;
783 tmp_desc.BackFace =
desc->BackFace;
789 tmp_desc.FrontFace.StencilFailOp = D3D11_STENCIL_OP_KEEP;
790 tmp_desc.FrontFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP;
791 tmp_desc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP;
793 tmp_desc.BackFace.StencilFailOp = D3D11_STENCIL_OP_KEEP;
794 tmp_desc.BackFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP;
795 tmp_desc.BackFace.StencilPassOp = D3D11_STENCIL_OP_KEEP;
804 TRACE(
"Returning existing depthstencil state %p.\n",
object);
805 ID3D11DepthStencilState_AddRef(&
object->ID3D11DepthStencilState_iface);
812 if (!(
object =
calloc(1,
sizeof(*
object))))
820 object->refcount = 1;
822 object->desc = tmp_desc;
826 ERR(
"Failed to insert depth/stencil state entry.\n");
853 WARN(
"Failed to create wined3d depth/stencil state, hr %#lx.\n",
hr);
862 ID3D11Device2_AddRef(
object->device = &
device->ID3D11Device2_iface);
864 TRACE(
"Created depth/stencil state %p.\n",
object);
907 ID3D11RasterizerState1_AddRef(iface);
915 ID3D10RasterizerState_AddRef(&
state->ID3D10RasterizerState_iface);
916 *
object = &
state->ID3D10RasterizerState_iface;
935 ID3D11Device2_AddRef(
state->device);
953 ID3D11Device2_Release(
device);
967 ID3D11Device_AddRef(*
device);
1005 TRACE(
"iface %p, desc %p.\n", iface,
desc);
1015 TRACE(
"iface %p, desc %p.\n", iface,
desc);
1060 TRACE(
"iface %p.\n", iface);
1082 ID3D11Device2_QueryInterface(
state->device, &IID_ID3D10Device, (
void **)
device);
1090 TRACE(
"iface %p, guid %s, data_size %p, data %p.\n",
1101 TRACE(
"iface %p, guid %s, data_size %u, data %p.\n",
1124 TRACE(
"iface %p, desc %p.\n", iface,
desc);
1177 state->refcount = 1;
1183 ERR(
"Failed to insert rasterizer state entry.\n");
1198 if (
desc->MultisampleEnable)
1200 static unsigned int once;
1202 FIXME(
"Ignoring MultisampleEnable %#x.\n",
desc->MultisampleEnable);
1205 if (
desc->ForcedSampleCount)
1207 static unsigned int once;
1209 FIXME(
"Ignoring ForcedSampleCount %#x.\n",
desc->ForcedSampleCount);
1217 WARN(
"Failed to create wined3d rasteriser state, hr %#lx.\n",
hr);
1223 ID3D11Device2_AddRef(
state->device = &
device->ID3D11Device2_iface);
1240 TRACE(
"Returning existing rasterizer state %p.\n",
object);
1241 ID3D11RasterizerState1_AddRef(&
object->ID3D11RasterizerState1_iface);
1248 if (!(
object =
calloc(1,
sizeof(*
object))))
1258 WARN(
"Failed to initialise rasterizer state, hr %#lx.\n",
hr);
1263 TRACE(
"Created rasterizer state %p.\n",
object);
1305 ID3D11SamplerState_AddRef(iface);
1313 ID3D10SamplerState_AddRef(&
state->ID3D10SamplerState_iface);
1314 *
object = &
state->ID3D10SamplerState_iface;
1333 ID3D11Device2_AddRef(
state->device);
1351 ID3D11Device2_Release(
device);
1365 ID3D11Device_AddRef(*
device);
1399 D3D11_SAMPLER_DESC *
desc)
1403 TRACE(
"iface %p, desc %p.\n", iface,
desc);
1446 TRACE(
"iface %p.\n", iface);
1455 TRACE(
"iface %p.\n", iface);
1468 ID3D11Device2_QueryInterface(
state->device, &IID_ID3D10Device, (
void **)
device);
1476 TRACE(
"iface %p, guid %s, data_size %p, data %p.\n",
1487 TRACE(
"iface %p, guid %s, data_size %u, data %p.\n",
1510 TRACE(
"iface %p, desc %p.\n", iface,
desc);
1573 return D3D11_DECODE_IS_COMPARISON_FILTER(
f);
1577 const D3D11_SAMPLER_DESC *
desc)
1584 state->refcount = 1;
1599 wined3d_desc.
max_anisotropy = D3D11_DECODE_IS_ANISOTROPIC_FILTER(
desc->Filter) ?
desc->MaxAnisotropy : 1;
1606 ERR(
"Failed to insert sampler state entry.\n");
1616 WARN(
"Failed to create wined3d sampler, hr %#lx.\n",
hr);
1622 ID3D11Device2_AddRef(
state->device = &
device->ID3D11Device2_iface);
1630 D3D11_SAMPLER_DESC normalized_desc;
1638 normalized_desc = *
desc;
1639 if (!D3D11_DECODE_IS_ANISOTROPIC_FILTER(normalized_desc.Filter))
1640 normalized_desc.MaxAnisotropy = 0;
1641 if (!D3D11_DECODE_IS_COMPARISON_FILTER(normalized_desc.Filter))
1643 if (normalized_desc.AddressU != D3D11_TEXTURE_ADDRESS_BORDER
1644 && normalized_desc.AddressV != D3D11_TEXTURE_ADDRESS_BORDER
1645 && normalized_desc.AddressW != D3D11_TEXTURE_ADDRESS_BORDER)
1646 memset(&normalized_desc.BorderColor, 0,
sizeof(normalized_desc.BorderColor));
1653 TRACE(
"Returning existing sampler state %p.\n",
object);
1654 ID3D11SamplerState_AddRef(&
object->ID3D11SamplerState_iface);
1661 if (!(
object =
calloc(1,
sizeof(*
object))))
1671 WARN(
"Failed to initialise sampler state, hr %#lx.\n",
hr);
1676 TRACE(
"Created sampler state %p.\n",
object);
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
const unsigned int D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT
@ D3D11_FILTER_TYPE_LINEAR
const UINT D3D11_DEFAULT_STENCIL_READ_MASK
const unsigned int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT
@ D3D11_COMPARISON_ALWAYS
@ D3D11_DEPTH_WRITE_MASK_ALL
const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK
static struct d3d_depthstencil_state * impl_from_ID3D11DepthStencilState(ID3D11DepthStencilState *iface)
HRESULT d3d_get_private_data(struct wined3d_private_store *store, REFGUID guid, UINT *data_size, void *data)
static struct d3d_blend_state * impl_from_ID3D11BlendState1(ID3D11BlendState1 *iface)
static struct d3d_device * impl_from_ID3D11Device2(ID3D11Device2 *iface)
HRESULT d3d_set_private_data_interface(struct wined3d_private_store *store, REFGUID guid, const IUnknown *object)
HRESULT d3d_set_private_data(struct wined3d_private_store *store, REFGUID guid, UINT data_size, const void *data)
static ULONG STDMETHODCALLTYPE d3d10_depthstencil_state_Release(ID3D10DepthStencilState *iface)
HRESULT d3d_blend_state_create(struct d3d_device *device, const D3D11_BLEND_DESC1 *desc, struct d3d_blend_state **state)
static HRESULT STDMETHODCALLTYPE d3d10_rasterizer_state_GetPrivateData(ID3D10RasterizerState *iface, REFGUID guid, UINT *data_size, void *data)
static void STDMETHODCALLTYPE d3d11_blend_state_GetDesc1(ID3D11BlendState1 *iface, D3D11_BLEND_DESC1 *desc)
static HRESULT STDMETHODCALLTYPE d3d10_sampler_state_QueryInterface(ID3D10SamplerState *iface, REFIID riid, void **object)
static HRESULT STDMETHODCALLTYPE d3d11_rasterizer_state_SetPrivateData(ID3D11RasterizerState1 *iface, REFGUID guid, UINT data_size, const void *data)
static const struct ID3D10SamplerStateVtbl d3d10_sampler_state_vtbl
static HRESULT d3d_rasterizer_state_init(struct d3d_rasterizer_state *state, struct d3d_device *device, const D3D11_RASTERIZER_DESC1 *desc)
static D3D10_BLEND d3d10_blend_from_d3d11(D3D11_BLEND factor)
static HRESULT STDMETHODCALLTYPE d3d11_sampler_state_GetPrivateData(ID3D11SamplerState *iface, REFGUID guid, UINT *data_size, void *data)
static HRESULT STDMETHODCALLTYPE d3d11_rasterizer_state_GetPrivateData(ID3D11RasterizerState1 *iface, REFGUID guid, UINT *data_size, void *data)
static void STDMETHODCALLTYPE d3d11_sampler_state_GetDevice(ID3D11SamplerState *iface, ID3D11Device **device)
static void STDMETHODCALLTYPE d3d_rasterizer_state_wined3d_object_destroyed(void *parent)
static HRESULT STDMETHODCALLTYPE d3d10_depthstencil_state_SetPrivateDataInterface(ID3D10DepthStencilState *iface, REFGUID guid, const IUnknown *data)
struct d3d_rasterizer_state * unsafe_impl_from_ID3D11RasterizerState(ID3D11RasterizerState *iface)
struct d3d_sampler_state * unsafe_impl_from_ID3D11SamplerState(ID3D11SamplerState *iface)
static void STDMETHODCALLTYPE d3d11_sampler_state_GetDesc(ID3D11SamplerState *iface, D3D11_SAMPLER_DESC *desc)
static D3D10_BLEND_OP d3d10_blend_op_from_d3d11(D3D11_BLEND_OP op)
static struct d3d_rasterizer_state * impl_from_ID3D10RasterizerState(ID3D10RasterizerState *iface)
static HRESULT STDMETHODCALLTYPE d3d10_sampler_state_SetPrivateDataInterface(ID3D10SamplerState *iface, REFGUID guid, const IUnknown *data)
static struct d3d_sampler_state * impl_from_ID3D11SamplerState(ID3D11SamplerState *iface)
static const struct ID3D10DepthStencilStateVtbl d3d10_depthstencil_state_vtbl
static HRESULT STDMETHODCALLTYPE d3d10_depthstencil_state_GetPrivateData(ID3D10DepthStencilState *iface, REFGUID guid, UINT *data_size, void *data)
static ULONG STDMETHODCALLTYPE d3d11_blend_state_Release(ID3D11BlendState1 *iface)
static HRESULT STDMETHODCALLTYPE d3d10_blend_state_GetPrivateData(ID3D10BlendState1 *iface, REFGUID guid, UINT *data_size, void *data)
static ULONG STDMETHODCALLTYPE d3d10_depthstencil_state_AddRef(ID3D10DepthStencilState *iface)
static ULONG STDMETHODCALLTYPE d3d11_sampler_state_Release(ID3D11SamplerState *iface)
static ULONG STDMETHODCALLTYPE d3d11_depthstencil_state_Release(ID3D11DepthStencilState *iface)
static const struct wined3d_parent_ops d3d_depthstencil_state_wined3d_parent_ops
static const struct ID3D11BlendState1Vtbl d3d11_blend_state_vtbl
static enum wined3d_texture_filter_type wined3d_texture_filter_mip_from_d3d11(enum D3D11_FILTER f)
static ULONG STDMETHODCALLTYPE d3d10_blend_state_AddRef(ID3D10BlendState1 *iface)
static void STDMETHODCALLTYPE d3d10_sampler_state_GetDesc(ID3D10SamplerState *iface, D3D10_SAMPLER_DESC *desc)
static void STDMETHODCALLTYPE d3d11_depthstencil_state_GetDesc(ID3D11DepthStencilState *iface, D3D11_DEPTH_STENCIL_DESC *desc)
static HRESULT STDMETHODCALLTYPE d3d11_sampler_state_QueryInterface(ID3D11SamplerState *iface, REFIID riid, void **object)
static HRESULT STDMETHODCALLTYPE d3d11_rasterizer_state_SetPrivateDataInterface(ID3D11RasterizerState1 *iface, REFGUID guid, const IUnknown *data)
static enum wined3d_texture_filter_type wined3d_texture_filter_min_from_d3d11(enum D3D11_FILTER f)
static ULONG STDMETHODCALLTYPE d3d11_blend_state_AddRef(ID3D11BlendState1 *iface)
static BOOL wined3d_texture_compare_from_d3d11(enum D3D11_FILTER f)
static ULONG STDMETHODCALLTYPE d3d10_sampler_state_Release(ID3D10SamplerState *iface)
HRESULT d3d_rasterizer_state_create(struct d3d_device *device, const D3D11_RASTERIZER_DESC1 *desc, struct d3d_rasterizer_state **state)
static HRESULT STDMETHODCALLTYPE d3d10_sampler_state_SetPrivateData(ID3D10SamplerState *iface, REFGUID guid, UINT data_size, const void *data)
static const struct ID3D11DepthStencilStateVtbl d3d11_depthstencil_state_vtbl
static ULONG STDMETHODCALLTYPE d3d11_sampler_state_AddRef(ID3D11SamplerState *iface)
static const struct wined3d_parent_ops d3d_sampler_wined3d_parent_ops
static enum wined3d_blend_op wined3d_blend_op_from_d3d11(D3D11_BLEND_OP op)
static struct d3d_depthstencil_state * impl_from_ID3D10DepthStencilState(ID3D10DepthStencilState *iface)
static enum wined3d_fill_mode wined3d_fill_mode_from_d3d11(D3D11_FILL_MODE mode)
struct d3d_blend_state * unsafe_impl_from_ID3D11BlendState(ID3D11BlendState *iface)
static enum wined3d_blend wined3d_blend_from_d3d11(D3D11_BLEND factor)
static const struct ID3D11RasterizerState1Vtbl d3d11_rasterizer_state_vtbl
static ULONG STDMETHODCALLTYPE d3d11_rasterizer_state_AddRef(ID3D11RasterizerState1 *iface)
static struct d3d_rasterizer_state * impl_from_ID3D11RasterizerState1(ID3D11RasterizerState1 *iface)
static HRESULT STDMETHODCALLTYPE d3d10_sampler_state_GetPrivateData(ID3D10SamplerState *iface, REFGUID guid, UINT *data_size, void *data)
static enum wined3d_stencil_op wined3d_stencil_op_from_d3d11(D3D11_STENCIL_OP stencil_op)
static void STDMETHODCALLTYPE d3d10_sampler_state_GetDevice(ID3D10SamplerState *iface, ID3D10Device **device)
static ULONG STDMETHODCALLTYPE d3d11_rasterizer_state_Release(ID3D11RasterizerState1 *iface)
static void STDMETHODCALLTYPE d3d11_blend_state_GetDevice(ID3D11BlendState1 *iface, ID3D11Device **device)
static enum wined3d_cmp_func wined3d_cmp_func_from_d3d11(D3D11_COMPARISON_FUNC func)
static void STDMETHODCALLTYPE d3d_sampler_wined3d_object_destroyed(void *parent)
static HRESULT STDMETHODCALLTYPE d3d11_depthstencil_state_SetPrivateDataInterface(ID3D11DepthStencilState *iface, REFGUID guid, const IUnknown *data)
struct d3d_rasterizer_state * unsafe_impl_from_ID3D10RasterizerState(ID3D10RasterizerState *iface)
static HRESULT STDMETHODCALLTYPE d3d11_blend_state_GetPrivateData(ID3D11BlendState1 *iface, REFGUID guid, UINT *data_size, void *data)
static void STDMETHODCALLTYPE d3d_blend_state_wined3d_object_destroyed(void *parent)
static const struct wined3d_parent_ops d3d_rasterizer_state_wined3d_parent_ops
static HRESULT STDMETHODCALLTYPE d3d10_rasterizer_state_SetPrivateData(ID3D10RasterizerState *iface, REFGUID guid, UINT data_size, const void *data)
static void STDMETHODCALLTYPE d3d11_rasterizer_state_GetDesc1(ID3D11RasterizerState1 *iface, D3D11_RASTERIZER_DESC1 *desc)
static const struct ID3D10RasterizerStateVtbl d3d10_rasterizer_state_vtbl
static ULONG STDMETHODCALLTYPE d3d10_rasterizer_state_Release(ID3D10RasterizerState *iface)
static void STDMETHODCALLTYPE d3d11_rasterizer_state_GetDesc(ID3D11RasterizerState1 *iface, D3D11_RASTERIZER_DESC *desc)
static struct d3d_sampler_state * impl_from_ID3D10SamplerState(ID3D10SamplerState *iface)
static HRESULT STDMETHODCALLTYPE d3d11_blend_state_SetPrivateDataInterface(ID3D11BlendState1 *iface, REFGUID guid, const IUnknown *data)
static void STDMETHODCALLTYPE d3d10_blend_state_GetDevice(ID3D10BlendState1 *iface, ID3D10Device **device)
static HRESULT STDMETHODCALLTYPE d3d10_rasterizer_state_SetPrivateDataInterface(ID3D10RasterizerState *iface, REFGUID guid, const IUnknown *data)
static HRESULT STDMETHODCALLTYPE d3d10_blend_state_QueryInterface(ID3D10BlendState1 *iface, REFIID riid, void **object)
static HRESULT STDMETHODCALLTYPE d3d10_blend_state_SetPrivateDataInterface(ID3D10BlendState1 *iface, REFGUID guid, const IUnknown *data)
struct d3d_depthstencil_state * unsafe_impl_from_ID3D11DepthStencilState(ID3D11DepthStencilState *iface)
static void STDMETHODCALLTYPE d3d11_rasterizer_state_GetDevice(ID3D11RasterizerState1 *iface, ID3D11Device **device)
static void STDMETHODCALLTYPE d3d10_blend_state_GetDesc1(ID3D10BlendState1 *iface, D3D10_BLEND_DESC1 *desc)
struct d3d_depthstencil_state * unsafe_impl_from_ID3D10DepthStencilState(ID3D10DepthStencilState *iface)
static HRESULT STDMETHODCALLTYPE d3d11_blend_state_QueryInterface(ID3D11BlendState1 *iface, REFIID riid, void **object)
static HRESULT d3d_sampler_state_init(struct d3d_sampler_state *state, struct d3d_device *device, const D3D11_SAMPLER_DESC *desc)
static void STDMETHODCALLTYPE d3d11_depthstencil_state_GetDevice(ID3D11DepthStencilState *iface, ID3D11Device **device)
static ULONG STDMETHODCALLTYPE d3d10_sampler_state_AddRef(ID3D10SamplerState *iface)
static void STDMETHODCALLTYPE d3d10_rasterizer_state_GetDevice(ID3D10RasterizerState *iface, ID3D10Device **device)
HRESULT d3d_sampler_state_create(struct d3d_device *device, const D3D11_SAMPLER_DESC *desc, struct d3d_sampler_state **state)
static void STDMETHODCALLTYPE d3d11_blend_state_GetDesc(ID3D11BlendState1 *iface, D3D11_BLEND_DESC *desc)
static HRESULT STDMETHODCALLTYPE d3d11_sampler_state_SetPrivateData(ID3D11SamplerState *iface, REFGUID guid, UINT data_size, const void *data)
static HRESULT STDMETHODCALLTYPE d3d10_depthstencil_state_SetPrivateData(ID3D10DepthStencilState *iface, REFGUID guid, UINT data_size, const void *data)
static HRESULT STDMETHODCALLTYPE d3d11_sampler_state_SetPrivateDataInterface(ID3D11SamplerState *iface, REFGUID guid, const IUnknown *data)
static ULONG STDMETHODCALLTYPE d3d11_depthstencil_state_AddRef(ID3D11DepthStencilState *iface)
static const struct wined3d_parent_ops d3d_blend_state_wined3d_parent_ops
static void STDMETHODCALLTYPE d3d_depthstencil_state_wined3d_object_destroyed(void *parent)
static HRESULT STDMETHODCALLTYPE d3d11_depthstencil_state_SetPrivateData(ID3D11DepthStencilState *iface, REFGUID guid, UINT data_size, const void *data)
static HRESULT STDMETHODCALLTYPE d3d11_rasterizer_state_QueryInterface(ID3D11RasterizerState1 *iface, REFIID riid, void **object)
static HRESULT STDMETHODCALLTYPE d3d11_depthstencil_state_QueryInterface(ID3D11DepthStencilState *iface, REFIID riid, void **object)
static const struct ID3D11SamplerStateVtbl d3d11_sampler_state_vtbl
static enum wined3d_cull wined3d_cull_from_d3d11(D3D11_CULL_MODE mode)
static HRESULT STDMETHODCALLTYPE d3d11_depthstencil_state_GetPrivateData(ID3D11DepthStencilState *iface, REFGUID guid, UINT *data_size, void *data)
static void STDMETHODCALLTYPE d3d10_blend_state_GetDesc(ID3D10BlendState1 *iface, D3D10_BLEND_DESC *desc)
static ULONG STDMETHODCALLTYPE d3d10_rasterizer_state_AddRef(ID3D10RasterizerState *iface)
struct d3d_blend_state * unsafe_impl_from_ID3D10BlendState(ID3D10BlendState *iface)
static const struct ID3D10BlendState1Vtbl d3d10_blend_state_vtbl
static void STDMETHODCALLTYPE d3d10_rasterizer_state_GetDesc(ID3D10RasterizerState *iface, D3D10_RASTERIZER_DESC *desc)
static void STDMETHODCALLTYPE d3d10_depthstencil_state_GetDesc(ID3D10DepthStencilState *iface, D3D10_DEPTH_STENCIL_DESC *desc)
static enum wined3d_texture_address wined3d_texture_address_from_d3d11(enum D3D11_TEXTURE_ADDRESS_MODE t)
static HRESULT STDMETHODCALLTYPE d3d10_rasterizer_state_QueryInterface(ID3D10RasterizerState *iface, REFIID riid, void **object)
static HRESULT STDMETHODCALLTYPE d3d10_depthstencil_state_QueryInterface(ID3D10DepthStencilState *iface, REFIID riid, void **object)
static enum wined3d_texture_filter_type wined3d_texture_filter_mag_from_d3d11(enum D3D11_FILTER f)
struct d3d_sampler_state * unsafe_impl_from_ID3D10SamplerState(ID3D10SamplerState *iface)
static void STDMETHODCALLTYPE d3d10_depthstencil_state_GetDevice(ID3D10DepthStencilState *iface, ID3D10Device **device)
HRESULT d3d_depthstencil_state_create(struct d3d_device *device, const D3D11_DEPTH_STENCIL_DESC *desc, struct d3d_depthstencil_state **state)
static struct d3d_blend_state * impl_from_ID3D10BlendState(ID3D10BlendState1 *iface)
static HRESULT STDMETHODCALLTYPE d3d10_blend_state_SetPrivateData(ID3D10BlendState1 *iface, REFGUID guid, UINT data_size, const void *data)
static ULONG STDMETHODCALLTYPE d3d10_blend_state_Release(ID3D10BlendState1 *iface)
static HRESULT STDMETHODCALLTYPE d3d11_blend_state_SetPrivateData(ID3D11BlendState1 *iface, REFGUID guid, UINT data_size, const void *data)
ULONG CDECL wined3d_blend_state_incref(struct wined3d_blend_state *state)
ULONG CDECL wined3d_depth_stencil_state_decref(struct wined3d_depth_stencil_state *state)
HRESULT CDECL wined3d_rasterizer_state_create(struct wined3d_device *device, const struct wined3d_rasterizer_state_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_rasterizer_state **state)
ULONG CDECL wined3d_blend_state_decref(struct wined3d_blend_state *state)
HRESULT CDECL wined3d_blend_state_create(struct wined3d_device *device, const struct wined3d_blend_state_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_blend_state **state)
ULONG CDECL wined3d_rasterizer_state_incref(struct wined3d_rasterizer_state *state)
HRESULT CDECL wined3d_depth_stencil_state_create(struct wined3d_device *device, const struct wined3d_depth_stencil_state_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_depth_stencil_state **state)
ULONG CDECL wined3d_depth_stencil_state_incref(struct wined3d_depth_stencil_state *state)
ULONG CDECL wined3d_rasterizer_state_decref(struct wined3d_rasterizer_state *state)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
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 factor
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 const GLfloat const GLdouble const GLfloat GLint GLint GLint j
#define memcpy(s1, s2, n)
D3D11_SHADER_VARIABLE_DESC desc
#define IsEqualGUID(rguid1, rguid2)
ULONG CDECL wined3d_sampler_incref(struct wined3d_sampler *sampler)
HRESULT CDECL wined3d_sampler_create(struct wined3d_device *device, const struct wined3d_sampler_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_sampler **sampler)
ULONG CDECL wined3d_sampler_decref(struct wined3d_sampler *sampler)
#define WINE_RB_ENTRY_VALUE
BOOL AlphaToCoverageEnable
BOOL IndependentBlendEnable
D3D11_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT]
D3D11_BLEND DestBlendAlpha
UINT8 RenderTargetWriteMask
D3D11_BLEND SrcBlendAlpha
D3D11_BLEND_OP BlendOpAlpha
ID3D10BlendState1 ID3D10BlendState1_iface
ID3D10DepthStencilState ID3D10DepthStencilState_iface
ID3D10RasterizerState ID3D10RasterizerState_iface
ID3D11RasterizerState1 ID3D11RasterizerState1_iface
ID3D10SamplerState ID3D10SamplerState_iface
ID3D11SamplerState ID3D11SamplerState_iface
struct wined3d_blend_state_desc::wined3d_rendertarget_blend_state_desc rt[WINED3D_MAX_RENDER_TARGETS]
struct wined3d_stencil_op_desc front
unsigned int stencil_read_mask
enum wined3d_cmp_func depth_func
unsigned int stencil_write_mask
struct wined3d_stencil_op_desc back
enum wined3d_fill_mode fill_mode
enum wined3d_cull cull_mode
enum wined3d_texture_address address_v
enum wined3d_cmp_func comparison_func
unsigned int max_anisotropy
enum wined3d_texture_filter_type mag_filter
enum wined3d_texture_filter_type min_filter
enum wined3d_texture_address address_u
unsigned int mip_base_level
enum wined3d_texture_filter_type mip_filter
enum wined3d_texture_address address_w
#define CONTAINING_RECORD(address, type, field)
static void wined3d_private_store_cleanup(struct wined3d_private_store *store)
wined3d_texture_filter_type
static void wined3d_private_store_init(struct wined3d_private_store *store)
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)