diff options
Diffstat (limited to 'specs/dxgi.py')
-rw-r--r-- | specs/dxgi.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/specs/dxgi.py b/specs/dxgi.py index d2d6583f..7349e25a 100644 --- a/specs/dxgi.py +++ b/specs/dxgi.py @@ -171,6 +171,9 @@ HRESULT = MAKE_HRESULT([ "DXGI_ERROR_NOT_CURRENTLY_AVAILABLE", "DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED", "DXGI_ERROR_REMOTE_OUTOFMEMORY", + # IDXGIKeyedMutex::AcquireSync + "WAIT_ABANDONED", + "WAIT_TIMEOUT", ]) @@ -379,9 +382,13 @@ IDXGIResource.methods += [ StdMethod(HRESULT, "GetEvictionPriority", [Out(Pointer(DXGI_RESOURCE_PRIORITY), "pEvictionPriority")], sideeffects=False), ] +DWORD_TIMEOUT = FakeEnum(DWORD, [ + "INFINITE", +]) + IDXGIKeyedMutex.methods += [ - StdMethod(HRESULT, "AcquireSync", [(UINT64, "Key"), (DWORD, "dwMilliseconds")], sideeffects=False), - StdMethod(HRESULT, "ReleaseSync", [(UINT64, "Key")], sideeffects=False), + StdMethod(HRESULT, "AcquireSync", [(UINT64, "Key"), (DWORD_TIMEOUT, "dwMilliseconds")]), + StdMethod(HRESULT, "ReleaseSync", [(UINT64, "Key")]), ] DXGI_MAP = Flags(UINT, [ |