Skip to content

libobs-d3d12: Add D3D12 for OBS#12817

Closed
wanhongqing123 wants to merge 4 commits intoobsproject:masterfrom
wanhongqing123:master-d3d12-new-2
Closed

libobs-d3d12: Add D3D12 for OBS#12817
wanhongqing123 wants to merge 4 commits intoobsproject:masterfrom
wanhongqing123:master-d3d12-new-2

Conversation

@wanhongqing123
Copy link

Description

Add D3D12 for OBS

Motivation and Context

D3D11 is a relatively old API, so as technology advances, OBS should support D3D12.

How Has This Been Tested?

These codes simply haven't been fully tested.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@Fenrirthviti
Copy link
Member

If this has not been fully tested, please provide details on what has been tested to work, what hasn't been tested to work, what is left that needs attention, etc.

This is a large diff, and there is no description of the work that was done and methods used to approach this, which will make this very difficult to provide a proper review.

@WizardCM WizardCM added Windows Affects Windows New Feature New feature or plugin labels Nov 15, 2025
@DmitriyFrogo
Copy link

Hi! How can I enable D3D12 rendered as regular user? Is it possible now?
I hope it may fix my VRR/G-Sync issues in OBS and want to test it
Changing "Direct3D 11" to "Direct3D 12" in config won't work (or maybe I downloaded wrong or broken artifact?)
I also can't find something like --allow-opengl alternative in code

@Fenrirthviti
Copy link
Member

This is a work-in-progress PR that doesn't seem ready for review or testing. It's failing to build, and requests for further information on how this was actually tested have been ignored.

From internal discussions, this appears to be heavily based on the existing DX11 renderer, with small changes to get it to run on DX12 instead of a fresh implementation using modern rendering/code paradigms. It's improbable that this would see any practical benefits of being a DX12 implementation with this approach.

Since this is highly unlikely to be merged, I will close this PR. In the future, please do not open unfinished PRs that have not been fully tested or completed.

However, all that said, thank you for the submission.

@wanhongqing123
Copy link
Author

Hi! How can I enable D3D12 rendered as regular user? Is it possible now? I hope it may fix my VRR/G-Sync issues in OBS and want to test it Changing "Direct3D 11" to "Direct3D 12" in config won't work (or maybe I downloaded wrong or broken artifact?) I also can't find something like --allow-opengl alternative in code

Please See #12907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Feature New feature or plugin Windows Affects Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants