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

vk::MemoryBarrier conflicts with winnt.h #1519

Open
Mozartenhimer opened this issue Feb 23, 2023 · 0 comments
Open

vk::MemoryBarrier conflicts with winnt.h #1519

Mozartenhimer opened this issue Feb 23, 2023 · 0 comments

Comments

@Mozartenhimer
Copy link

Microsoft helpfully defines MemoryBarrier to be __faststorefence in winnt.h
https://learn.microsoft.com/en-us/windows/win32/api/winnt/nf-winnt-memorybarrier

The effect of this is that if you try to declare a vk::MemoryBarrier on windows, MSVC fails to compile with the message:

 error C2039: '__faststorefence': is not a member of 'vk'
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

No branches or pull requests

1 participant