-
Notifications
You must be signed in to change notification settings - Fork 3.1k
video/out/d3d11: add d3d11 composition mode support #16285
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
base: master
Are you sure you want to change the base?
Conversation
Download the artifacts for this pull request: Windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much opinion about it. It looks plumb as is, but if it works it works, I guess. I don't have target to test this, but changes are not that intrusive, so we can have it.
cf023de
to
cad8ce3
Compare
Hello @kasper93 , all the issue mentioned has been resolved. It would be great if it could be reviewed and merged soon. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, not tested, but should be fine.
@@ -31,6 +31,7 @@ Interface changes | |||
:: | |||
|
|||
--- mpv 0.41.0 --- | |||
- add `--d3d11-output-mode` enable use specific output mode for creating the D3D11 swapchain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't edit this file directly, add dedicated file in interface-changes directory.
@@ -563,6 +577,9 @@ static bool d3d11_init(struct ra_ctx *ctx) | |||
if (!mp_d3d11_create_swapchain(p->device, ctx->log, &scopts, &p->swapchain)) | |||
goto error; | |||
|
|||
if (ctx->opts.composition) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, but please be consistent about brackets, we don't use them for single line statements.
Add option to export d3d11 swapchain