Skip to content
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

Add device, adapter, output, and mode querying. #13

Open
mtwilliams opened this issue Aug 25, 2014 · 1 comment
Open

Add device, adapter, output, and mode querying. #13

mtwilliams opened this issue Aug 25, 2014 · 1 comment
Assignees
Labels

Comments

@mtwilliams
Copy link
Member

For Direct3D9, this means using the IDirect3D9 interface.

For Direct3D11, this means using IDXGIFactory::EnumAdapters and IDXGIAdapter::EnumOutputs and IDXGIOutput::GetDisplayModeList.

For OpenGL 2.1+ and OpenGL 3.1+, this means using EnumDisplayDevices and EnumDisplaySettings on Windows, and God knows what on other platforms. Vendor-specific extensions have to be used as well, namely WGL_NV_swap_group, WGL_NV_gpu_affinity, and WGL_AMD_gpu_association.

For OpenGL ES 2 and OpenGL ES 3 this isn't much of an issue, however there might be a brute-force method via eglGetDisplay.

@mtwilliams
Copy link
Member Author

This has been implemented for Direct3D9. It still needs to be debugged and cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant