Change-Id: I3d494e4723c48f9d9db58068ad1e734e5c2512cd
enum { VK_MAX_DESCRIPTION = 256 };
enum { VK_FALSE = 0 };
enum { VK_TRUE = 1 };
+enum { VK_ATTACHMENT_UNUSED = (~0u) };
VK_DEFINE_HANDLE (VkInstance, HANDLE_TYPE_INSTANCE);
VK_DEFINE_HANDLE (VkPhysicalDevice, HANDLE_TYPE_PHYSICAL_DEVICE);
"VK_MAX_DESCRIPTION",
"VK_FALSE",
"VK_TRUE",
+ "VK_ATTACHMENT_UNUSED"
]
class Handle:
definition = re.search(r'#\s*define\s+' + name + r'\s+([^\n]+)\n', src)
if definition is None:
raise Exception("No such definition: %s" % name)
- return definition.group(1).strip()
+ value = definition.group(1).strip()
+
+ if value == "UINT32_MAX":
+ value = "(~0u)"
+
+ return value
def parseEnum (name, src):
keyValuePtrn = '(' + IDENT_PTRN + r')\s*=\s*([^\s,}]+)\s*[,}]'