summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-01-31 23:58:30 +0000
committerJose Fonseca <jfonseca@vmware.com>2016-03-05 21:43:25 +0000
commitbab1921ca9d30723323a649ac61acf9869adfb34 (patch)
tree6bd9530fb194a4847a3d3d4bbd7a6030927b0449 /wrappers
parent839a3d8747d329e9fc8d2ae029ae3dd867821d97 (diff)
dxgitrace: Complete DirectComposition specs.
This addresses https://github.com/apitrace/apitrace/issues/377 , but even with complete DirectComposition specs, one will stumble into attempts to use undocumented IID_ID3D11PartnerDevice interface.
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/CMakeLists.txt1
-rw-r--r--wrappers/dxgitrace.def2
-rw-r--r--wrappers/dxgitrace.py6
3 files changed, 8 insertions, 1 deletions
diff --git a/wrappers/CMakeLists.txt b/wrappers/CMakeLists.txt
index 2ceac332..24906c4d 100644
--- a/wrappers/CMakeLists.txt
+++ b/wrappers/CMakeLists.txt
@@ -186,6 +186,7 @@ if (WIN32)
trace.py
${CMAKE_SOURCE_DIR}/dispatch/dispatch.py
${CMAKE_SOURCE_DIR}/specs/d3d11.py
+ ${CMAKE_SOURCE_DIR}/specs/dcomp.py
${CMAKE_SOURCE_DIR}/specs/d3d11sdklayers.py
${CMAKE_SOURCE_DIR}/specs/d3d10.py
${CMAKE_SOURCE_DIR}/specs/d3d10sdklayers.py
diff --git a/wrappers/dxgitrace.def b/wrappers/dxgitrace.def
index 02880c48..817b92b9 100644
--- a/wrappers/dxgitrace.def
+++ b/wrappers/dxgitrace.def
@@ -14,3 +14,5 @@ EXPORTS
D3DPERF_QueryRepeatFrame
D3DPERF_SetOptions
D3DPERF_GetStatus
+ DCompositionCreateDevice
+ DCompositionCreateSurfaceHandle
diff --git a/wrappers/dxgitrace.py b/wrappers/dxgitrace.py
index 3edda2c2..36941dff 100644
--- a/wrappers/dxgitrace.py
+++ b/wrappers/dxgitrace.py
@@ -32,6 +32,7 @@ from specs.stdapi import API
from specs import dxgi
from specs import d3d10
from specs import d3d11
+from specs import dcomp
from specs import d3d9
@@ -138,7 +139,7 @@ class D3DCommonTracer(DllTracer):
if __name__ == '__main__':
- print r'#define INITGUID'
+ print r'#include "guids_defs.hpp"'
print
print r'#include "trace_writer_local.hpp"'
print r'#include "os.hpp"'
@@ -149,6 +150,8 @@ if __name__ == '__main__':
print r'#include "d3d10size.hpp"'
print r'#include "d3d11imports.hpp"'
print r'#include "d3d11size.hpp"'
+ print r'#include "dcompimports.hpp"'
+ print r'#include "d2dimports.hpp" // WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT'
print r'#include "d3d9imports.hpp" // D3DPERF_*'
print
@@ -157,6 +160,7 @@ if __name__ == '__main__':
api.addModule(d3d10.d3d10)
api.addModule(d3d10.d3d10_1)
api.addModule(d3d11.d3d11)
+ api.addModule(dcomp.dcomp)
api.addModule(d3d9.d3dperf)
tracer = D3DCommonTracer()