Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9a65f822
Commit
9a65f822
authored
Oct 05, 2021
by
Georg Lehmann
Committed by
Alexandre Julliard
Oct 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Support aliased constants.
Signed-off-by:
Georg Lehmann
<
dadschoorse@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1554fc44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
make_vulkan
dlls/winevulkan/make_vulkan
+7
-1
No files found.
dlls/winevulkan/make_vulkan
View file @
9a65f822
...
@@ -3445,11 +3445,17 @@ class VkRegistry(object):
...
@@ -3445,11 +3445,17 @@ class VkRegistry(object):
enum
.
create_alias
(
enum_elem
.
attrib
[
"name"
],
enum_elem
.
attrib
[
"alias"
])
enum
.
create_alias
(
enum_elem
.
attrib
[
"name"
],
enum_elem
.
attrib
[
"alias"
])
elif
"value"
in
enum_elem
.
keys
():
elif
"value"
in
enum_elem
.
keys
():
# Constant
s are not aliased, no need to add them here, they'll get added later on.
# Constant
with an explicit value
if
only_aliased
:
if
only_aliased
:
return
return
self
.
consts
.
append
(
VkConstant
(
enum_elem
.
attrib
[
"name"
],
enum_elem
.
attrib
[
"value"
]))
self
.
consts
.
append
(
VkConstant
(
enum_elem
.
attrib
[
"name"
],
enum_elem
.
attrib
[
"value"
]))
elif
"alias"
in
enum_elem
.
keys
():
# Aliased constant
if
not
only_aliased
:
return
self
.
consts
.
append
(
VkConstant
(
enum_elem
.
attrib
[
"name"
],
enum_elem
.
attrib
[
"alias"
]))
@staticmethod
@staticmethod
def
_require_type
(
type_info
):
def
_require_type
(
type_info
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment