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

Regenerating bindings to take advantage of some C# 11 features #312

Merged
merged 4 commits into from
Jun 15, 2022

Conversation

tannergooding
Copy link
Member

This takes advantage of UTF-8 string literals and static abstracts in interfaces to make the code more readable, more maintainable, and more performant.

[Guid("00000000-0000-0000-0000-000000000000")]
public partial struct ID3D11On12On7
{
static ref readonly Guid IHaveNativeGuid.GUID => throw new NotImplementedException();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it intentional that this throws NotImplementedException ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now. There is no guid for this that I can find anywhere. I plan on asking in the DX Discord to try and confirm.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DX Discord indicates this is by design and the interface only implements IUnknown for AddRef and Release

@tannergooding tannergooding merged commit cfa0e7a into terrafx:main Jun 15, 2022
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.

2 participants