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

Use enum for vendor ID #166

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

DejvBayer
Copy link

@DejvBayer DejvBayer commented Mar 9, 2024

This pull request introduces VkFFTVendor enum datatype for vendor id instead of using magic values.

@DejvBayer DejvBayer changed the title vendor enum Use enum for vendor ID Mar 9, 2024
@DTolm
Copy link
Owner

DTolm commented Mar 22, 2024

Hello,

Thank you for the change, it will also make the code more clear. It missed the 0x1027f00 Apple vendor ID definition and I am not sure yet whether the casting of vendor IDs returned by different APIs to the enum will trigger any warnings (in Vulkan I believe it to be an unsigned integer).

Best regards,
Dmitrii

@DejvBayer
Copy link
Author

Hi,

I have fixed the casts from different types and added VKFFT_VENDOR_APPLE to the enum. I am sorry, I overlooked it completely.

Best regards,
David

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.

None yet

2 participants