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
f8ecbed3
Commit
f8ecbed3
authored
Nov 02, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Store returnedonly attribute in VkVariable.
parent
a6cd7ee2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
make_vulkan
dlls/winevulkan/make_vulkan
+11
-7
No files found.
dlls/winevulkan/make_vulkan
View file @
f8ecbed3
...
...
@@ -1090,7 +1090,7 @@ class VkHandle(object):
class
VkVariable
(
object
):
def
__init__
(
self
,
const
=
False
,
type_info
=
None
,
type
=
None
,
name
=
None
,
pointer
=
None
,
array_len
=
None
,
dyn_array_len
=
None
,
object_type
=
None
,
optional
=
False
):
dyn_array_len
=
None
,
object_type
=
None
,
optional
=
False
,
returnedonly
=
False
):
self
.
const
=
const
self
.
type_info
=
type_info
self
.
type
=
type
...
...
@@ -1100,6 +1100,7 @@ class VkVariable(object):
self
.
dyn_array_len
=
dyn_array_len
self
.
object_type
=
object_type
self
.
optional
=
optional
self
.
returnedonly
=
returnedonly
if
type_info
:
self
.
set_type_info
(
type_info
)
...
...
@@ -1196,9 +1197,11 @@ class VkVariable(object):
class
VkMember
(
VkVariable
):
def
__init__
(
self
,
const
=
False
,
struct_fwd_decl
=
False
,
_type
=
None
,
pointer
=
None
,
name
=
None
,
array_len
=
None
,
dyn_array_len
=
None
,
optional
=
False
,
values
=
None
,
object_type
=
None
,
bit_width
=
None
):
dyn_array_len
=
None
,
optional
=
False
,
values
=
None
,
object_type
=
None
,
bit_width
=
None
,
returnedonly
=
False
):
VkVariable
.
__init__
(
self
,
const
=
const
,
type
=
_type
,
name
=
name
,
pointer
=
pointer
,
array_len
=
array_len
,
dyn_array_len
=
dyn_array_len
,
object_type
=
object_type
,
optional
=
optional
)
dyn_array_len
=
dyn_array_len
,
object_type
=
object_type
,
optional
=
optional
,
returnedonly
=
returnedonly
)
self
.
struct_fwd_decl
=
struct_fwd_decl
self
.
values
=
values
self
.
bit_width
=
bit_width
...
...
@@ -1217,7 +1220,7 @@ class VkMember(VkVariable):
self
.
name
,
self
.
array_len
,
self
.
dyn_array_len
)
@staticmethod
def
from_xml
(
member
):
def
from_xml
(
member
,
returnedonly
):
""" Helper function for parsing a member tag within a struct or union. """
name_elem
=
member
.
find
(
"name"
)
...
...
@@ -1280,8 +1283,9 @@ class VkMember(VkVariable):
LOGGER
.
debug
(
"Found bit field"
)
bit_width
=
int
(
name_elem
.
tail
[
1
:])
return
VkMember
(
const
=
const
,
struct_fwd_decl
=
struct_fwd_decl
,
_type
=
member_type
,
pointer
=
pointer
,
name
=
name_elem
.
text
,
array_len
=
array_len
,
dyn_array_len
=
dyn_array_len
,
optional
=
optional
,
values
=
values
,
object_type
=
object_type
,
bit_width
=
bit_width
)
return
VkMember
(
const
=
const
,
struct_fwd_decl
=
struct_fwd_decl
,
_type
=
member_type
,
pointer
=
pointer
,
name
=
name_elem
.
text
,
array_len
=
array_len
,
dyn_array_len
=
dyn_array_len
,
optional
=
optional
,
values
=
values
,
object_type
=
object_type
,
bit_width
=
bit_width
,
returnedonly
=
returnedonly
)
def
copy
(
self
,
input
,
output
,
direction
,
conv
,
unwrap
):
""" Helper method for use by conversion logic to generate a C-code statement to copy this member.
...
...
@@ -1804,7 +1808,7 @@ class VkStruct(Sequence):
members
=
[]
for
member
in
struct
.
findall
(
"member"
):
vk_member
=
VkMember
.
from_xml
(
member
)
vk_member
=
VkMember
.
from_xml
(
member
,
returnedonly
)
members
.
append
(
vk_member
)
return
VkStruct
(
name
,
members
,
returnedonly
,
structextends
,
union
=
union
)
...
...
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