Jacek Caban : d3d11.idl: Added CD3D11_QUERY_DESC declaration.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri May 20 11:27:54 CDT 2016
Module: wine
Branch: master
Commit: 808b00d6e003954cd83b40326b1cf94ddbb51ecc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=808b00d6e003954cd83b40326b1cf94ddbb51ecc
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu May 19 13:16:08 2016 +0200
d3d11.idl: Added CD3D11_QUERY_DESC declaration.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/d3d11.idl | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/include/d3d11.idl b/include/d3d11.idl
index b49d6f4..9d4d8fd 100644
--- a/include/d3d11.idl
+++ b/include/d3d11.idl
@@ -632,6 +632,21 @@ typedef struct D3D11_QUERY_DESC
UINT MiscFlags;
} D3D11_QUERY_DESC;
+cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
+cpp_quote("struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC {")
+cpp_quote(" CD3D11_QUERY_DESC() {}")
+cpp_quote(" ~CD3D11_QUERY_DESC() {}")
+cpp_quote(" explicit CD3D11_QUERY_DESC(const D3D11_QUERY_DESC &other) : D3D11_QUERY_DESC(other) {}")
+cpp_quote(" explicit CD3D11_QUERY_DESC(D3D11_QUERY query, UINT misc_flags = 0) {")
+cpp_quote(" Query = query;")
+cpp_quote(" MiscFlags = misc_flags;")
+cpp_quote(" }")
+cpp_quote(" operator const D3D11_QUERY_DESC&() const {")
+cpp_quote(" return *this;")
+cpp_quote(" }")
+cpp_quote("};")
+cpp_quote("#endif")
+
typedef struct D3D11_RASTERIZER_DESC
{
D3D11_FILL_MODE FillMode;
More information about the wine-cvs
mailing list