Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ee4c61a1
Commit
ee4c61a1
authored
Nov 10, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Move needs_unwrapping implementation to VkVariable.
parent
a2dc7a4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
26 deletions
+14
-26
make_vulkan
dlls/winevulkan/make_vulkan
+14
-26
No files found.
dlls/winevulkan/make_vulkan
View file @
ee4c61a1
...
...
@@ -1203,6 +1203,20 @@ class VkVariable(object):
return
not
self
.
handle
.
is_dispatchable
()
return
False
def
needs_unwrapping
(
self
):
""" Returns if variable needs unwrapping of handle. """
if
self
.
is_struct
():
return
self
.
struct
.
needs_unwrapping
()
if
self
.
is_handle
():
return
self
.
handle
.
needs_unwrapping
()
if
self
.
is_generic_handle
():
return
True
return
False
def
needs_alloc
(
self
,
conv
,
unwrap
):
""" Returns True if conversion needs allocation """
if
self
.
is_dynamic_array
():
...
...
@@ -1425,20 +1439,6 @@ class VkMember(VkVariable):
def
is_bit_field
(
self
):
return
self
.
bit_width
is
not
None
def
needs_unwrapping
(
self
):
""" Structures with wrapped handles need unwrapping. """
if
self
.
is_struct
():
return
self
.
struct
.
needs_unwrapping
()
if
self
.
is_handle
():
return
self
.
handle
.
is_wrapped
()
if
self
.
is_generic_handle
():
return
True
return
False
def
needs_conversion
(
self
,
conv
,
unwrap
,
direction
,
struct_const
):
""" Check if member needs conversion. """
...
...
@@ -1678,18 +1678,6 @@ class VkParam(VkVariable):
return
True
return
False
def
needs_unwrapping
(
self
):
""" Returns if parameter needs unwrapping of handle. """
# Wrapped handle parameters are handled separately, only look for wrapped handles in structs
if
self
.
is_struct
():
return
self
.
struct
.
needs_unwrapping
()
if
self
.
is_handle
()
and
self
.
is_dynamic_array
():
return
self
.
handle
.
needs_unwrapping
()
return
False
def
spec
(
self
):
""" Generate spec file entry for this parameter. """
...
...
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