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

Implement Direct3DDevice8::GetInfo #179

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

WinterSnowfall
Copy link
Contributor

@WinterSnowfall WinterSnowfall commented Sep 21, 2024

Implementation of Direct3DDevice8::GetInfo, which partially maps onto Direct3DDevice9::CreateQuery followed by queries on a IDirect3DQuery9 object.

The specific details of the implementation, especially the response codes have been recreated based on the information available in the MS DX8.1 SDK. Unfortunately, the documentation you can find online on the topic is not at all extensive.

This is largely relevant on Nvidia for D3DDEVINFOID_VCACHE type queries, since some games expect some data there and native drivers do indeed return non-zero information (see here for some samples). Beside games, VCACHE queries have also been observed to be initiated by D3D9 D3DX libraries, though I am unsure if this is also the case in D3D8.

Needs a bit of testing and validation, submitting as draft for now.

@WinterSnowfall
Copy link
Contributor Author

Verified to be working properly at least on D3DDEVINFOID_VCACHE queries. I'm unsure if MinGW needs any additional header definitions, but MSVC is fine as is.

@WinterSnowfall WinterSnowfall marked this pull request as ready for review September 21, 2024 17:03
@crosire crosire merged commit 7136cbf into crosire:main Oct 10, 2024
@WinterSnowfall WinterSnowfall deleted the getinfo branch October 10, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants