d3dcompiler: Add support for two other versions of ID3D11ShaderReflection.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
77c3761ad4
commit
d52b53d151
|
@ -665,6 +665,14 @@ static UINT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetThreadGroupSize(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static UINT64 STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetRequiresFlags(
|
||||||
|
ID3D11ShaderReflection *iface)
|
||||||
|
{
|
||||||
|
FIXME("iface %p stub!\n", iface);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct ID3D11ShaderReflectionVtbl d3dcompiler_shader_reflection_vtbl =
|
static const struct ID3D11ShaderReflectionVtbl d3dcompiler_shader_reflection_vtbl =
|
||||||
{
|
{
|
||||||
/* IUnknown methods */
|
/* IUnknown methods */
|
||||||
|
@ -690,6 +698,7 @@ static const struct ID3D11ShaderReflectionVtbl d3dcompiler_shader_reflection_vtb
|
||||||
d3dcompiler_shader_reflection_GetNumInterfaceSlots,
|
d3dcompiler_shader_reflection_GetNumInterfaceSlots,
|
||||||
d3dcompiler_shader_reflection_GetMinFeatureLevel,
|
d3dcompiler_shader_reflection_GetMinFeatureLevel,
|
||||||
d3dcompiler_shader_reflection_GetThreadGroupSize,
|
d3dcompiler_shader_reflection_GetThreadGroupSize,
|
||||||
|
d3dcompiler_shader_reflection_GetRequiresFlags,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ID3D11ShaderReflectionConstantBuffer methods */
|
/* ID3D11ShaderReflectionConstantBuffer methods */
|
||||||
|
|
|
@ -174,7 +174,13 @@ DECLARE_INTERFACE(ID3D11ShaderReflectionConstantBuffer)
|
||||||
};
|
};
|
||||||
#undef INTERFACE
|
#undef INTERFACE
|
||||||
|
|
||||||
|
#if D3D_COMPILER_VERSION <= 42
|
||||||
|
DEFINE_GUID(IID_ID3D11ShaderReflection, 0x17f27486, 0xa342, 0x4d10, 0x88, 0x42, 0xab, 0x08, 0x74, 0xe7, 0xf6, 0x70);
|
||||||
|
#elif D3D_COMPILER_VERSION == 43
|
||||||
DEFINE_GUID(IID_ID3D11ShaderReflection, 0x0a233719, 0x3960, 0x4578, 0x9d, 0x7c, 0x20, 0x3b, 0x8b, 0x1d, 0x9c, 0xc1);
|
DEFINE_GUID(IID_ID3D11ShaderReflection, 0x0a233719, 0x3960, 0x4578, 0x9d, 0x7c, 0x20, 0x3b, 0x8b, 0x1d, 0x9c, 0xc1);
|
||||||
|
#else
|
||||||
|
DEFINE_GUID(IID_ID3D11ShaderReflection, 0x8d536ca1, 0x0cca, 0x4956, 0xa8, 0x37, 0x78, 0x69, 0x63, 0x75, 0x55, 0x84);
|
||||||
|
#endif
|
||||||
|
|
||||||
#define INTERFACE ID3D11ShaderReflection
|
#define INTERFACE ID3D11ShaderReflection
|
||||||
DECLARE_INTERFACE_(ID3D11ShaderReflection, IUnknown)
|
DECLARE_INTERFACE_(ID3D11ShaderReflection, IUnknown)
|
||||||
|
@ -202,6 +208,7 @@ DECLARE_INTERFACE_(ID3D11ShaderReflection, IUnknown)
|
||||||
STDMETHOD_(UINT, GetNumInterfaceSlots)(THIS) PURE;
|
STDMETHOD_(UINT, GetNumInterfaceSlots)(THIS) PURE;
|
||||||
STDMETHOD(GetMinFeatureLevel)(THIS_ enum D3D_FEATURE_LEVEL *level) PURE;
|
STDMETHOD(GetMinFeatureLevel)(THIS_ enum D3D_FEATURE_LEVEL *level) PURE;
|
||||||
STDMETHOD_(UINT, GetThreadGroupSize)(THIS_ UINT *sizex, UINT *sizey, UINT *sizez) PURE;
|
STDMETHOD_(UINT, GetThreadGroupSize)(THIS_ UINT *sizex, UINT *sizey, UINT *sizez) PURE;
|
||||||
|
STDMETHOD_(UINT64, GetRequiresFlags)(THIS) PURE;
|
||||||
};
|
};
|
||||||
#undef INTERFACE
|
#undef INTERFACE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue