-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support for Windows with msvc #2
Conversation
As M_PI is non-standard macro, msvc does not support M_PI in cmath. For defining M_PI, add _USE_MATH_DEFINES macro in advance
In msvc, this is not permitted conversion. As std::filesystem::path provides string() method, I replaced it.
replace WINDOWS to _WIN32 for checking botn window 32bit and 64bit. I think WINDOWS is not valid for checking window platform
As non-constant size array declaration is non-standard, I replaced it to vector
As, vector.reserve actually not allocating memory, in my compiler these commands make abort. I think reserve calls need to be replaced by resize or constructor with size.
As a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax, I remove explicit type conversion because both left and right are same type I think there is no need to specifying it.
without this binary flag (e.g. with text mode), vkCreateShaderModule function does not work properly. I added this flag and work project completely good in window
Thanks for the PR. It's great to see these fixes. I'll do a quick review and we'll accept the changes. Also thanks for the issues in windows. I will investigate some fixes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me! Thanks for the quality PR.
@@ -137,9 +137,9 @@ namespace Util { | |||
return false; | |||
} | |||
|
|||
XrReferenceSpaceType referenceSpaces[referenceSpacesCount]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving to C++ vectors from C Arrays is fine for me. I initially wanted to keep them as C Arrays as this is meant as an instructional sample rather than a production code. I think this is a fine change.
Hello. At first, I really appreciated for providing really good example of openxr and vulkan application.
But I encountered problem with build error in Windows msvc compiler
I modified some codes for supporting window platform as far as not touching Linux specific codes.
In addition, there is trivial problems like below
program complains about there is no ktx.dll file. Thus, I did manually relocate ktx.dll file to executable file path.