Skip to content

Commit

Permalink
fix(Vulkan) VK_API_VERSION_PATCH definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciekce authored and Spasi committed Mar 3, 2022
1 parent 6b6327a commit b5b7b04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/notes/3.3.2.md
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
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
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

0 comments on commit b5b7b04

Please sign in to comment.