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

fix VK_API_VERSION_PATCH #743

Merged
merged 1 commit into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/notes/3.3.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This build includes the following changes:
- Core: Fixed Java/native library incompatibility detection. (#737)
- Core: Fixed `dlerror` decoding to use UTF-8. (#738)
- Build: Fixed offline mode with multiple local architectures. (#740)
- Vulkan: Fixed definition of the `VK_API_VERSION_PATCH` macro. (#743)

#### Breaking Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15491,7 +15491,7 @@ public static int VK_API_VERSION_MINOR(@NativeType("uint32_t") int version) {
*/
@NativeType("uint32_t")
public static int VK_API_VERSION_PATCH(@NativeType("uint32_t") int version) {
return (version >>> 22) & 0xFFF;
return version & 0xFFF;
}

// --- [ VK_MAKE_VERSION ] ---
Expand Down
2 changes: 1 addition & 1 deletion modules/lwjgl/vulkan/src/templates/kotlin/vulkan/Custom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fun templateCustomization() {
noPrefix = true
)

macro(expression = "(version >>> 22) & 0xFFF")..uint32_t(
macro(expression = "version & 0xFFF")..uint32_t(
"VK_API_VERSION_PATCH",
"Extracts the API patch version number from a packed version number.",

Expand Down