Skip to content

Commit

Permalink
Update version to 1.2 and add 1_2 API definition
Browse files Browse the repository at this point in the history
  • Loading branch information
lmariscal committed Feb 18, 2021
1 parent 9d3a59c commit 8929b58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/vulkan.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,7 @@ template vkVersionPatch*(version: untyped): untyped =

const vkApiVersion1_0* = vkMakeVersion(1, 0, 0)
const vkApiVersion1_1* = vkMakeVersion(1, 1, 0)
const vkApiVersion1_2* = vkMakeVersion(1, 2, 0)

type
VkSampleMask* = distinct uint32
Expand Down
2 changes: 2 additions & 0 deletions tools/generator.nim
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ proc genTypes(node: XmlNode, output: var string) =
output.add("\nconst vkApiVersion1_0* = vkMakeVersion(1, 0, 0)\n")
elif name == "VK_API_VERSION_1_1":
output.add("const vkApiVersion1_1* = vkMakeVersion(1, 1, 0)\n")
elif name == "VK_API_VERSION_1_2":
output.add("const vkApiVersion1_2* = vkMakeVersion(1, 2, 0)\n")
else:
echo "category:define not found {name}".fmt
continue
Expand Down
2 changes: 1 addition & 1 deletion vulkan.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.1.0"
version = "1.2.0"
author = "Leonardo Mariscal"
description = "Vulkan bindings for Nim"
license = "MIT"
Expand Down

0 comments on commit 8929b58

Please sign in to comment.