-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does IDXGIOutput5::DuplicateOutput1()
take enum DXGI_OUTDUPL_FLAG
in the Flags
parameter?
#128
Comments
This isn't really the right place to report this kind of bug, since this repo doesn't actually host DXGI headers, but I don't really have a better place, so 🤷. You are correct that the If you're able/willing, I'd be happy to help review a pull request against the relevant documentation. |
…1()` Fixes microsoft/DirectX-Headers#128, cc @jenatali This function is known to take values from the `DXGI_OUTDUPL_FLAG` enumeration. Note that the type is still `UINT` (can we please change that without ABI repercussions), and there's no documentation page for `DXGI_OUTDUPL_FLAG` yet.
For a non Microsofter there isn't really a good place indeed. Started with a draft at MicrosoftDocs/sdk-api#1824, not sure if we can change the ABI or at the very least change the |
Yeah, I suppose this is as good as any.
What do you mean by this? The important thing is that the function continues to take a 32-bit value (signed/unsigned doesn't strictly matter at the ABI), and we can't/shouldn't make a source-breaking change. Secondary is consistency with the rest of the D3D11/DXGI/Win32 API surface area. |
It's not a |
Heya. MicrosoftDocs/sdk-api#1824 trickled down into the upstream docs yet it appears |
We were investigating where
enum DXGI_OUTDUPL_FLAG
could be used (with its only known valid flag valueDXGI_OUTDUPL_COMPOSITED_UI_CAPTURE_ONLY = 1
), or if it was an accidental unused remnant.@riverar apparently reverse-engineered an example and confirmed my initial hunch that this value is used for
Flags
inIDXGIOutput5::DuplicateOutput1()
. The documentation still suggests that theFlags
value "must be zero" however.Can anyone clear up whether this is true, and if so:
DXGI_OUTDUPL_FLAG
, so that we don't have to hack this inwin32metadata
via[AssociatedEnum]
?After all
DXGI_OUTDUPL_FLAG
is an untyped enum which is assumed to beINT
by default, mismatching theUINT
ABI of theFlags
parameter.Note also that I'm trying to propagate this flag usage into
win32metadata
already via microsoft/win32metadata#1911.The text was updated successfully, but these errors were encountered: