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
99a0d58d
Commit
99a0d58d
authored
Nov 09, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Preserve const in array conversion output types.
parent
8463c4f1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
make_vulkan
dlls/winevulkan/make_vulkan
+4
-2
vulkan_thunks.c
dlls/winevulkan/vulkan_thunks.c
+0
-0
No files found.
dlls/winevulkan/make_vulkan
View file @
99a0d58d
...
...
@@ -758,7 +758,8 @@ class VkFunction(object):
if
p
.
needs_variable
(
conv
,
unwrap
):
host_type
=
p
.
type
+
"_host"
if
conv
and
p
.
needs_host_type
()
else
p
.
type
if
p
.
is_dynamic_array
():
body
+=
" {0} *{1}_host;
\n
"
.
format
(
host_type
,
p
.
name
)
body
+=
" {2}{0} *{1}_host;
\n
"
.
format
(
host_type
,
p
.
name
,
"const "
if
p
.
is_const
()
else
""
)
elif
p
.
optional
:
body
+=
" {0} *{1}_host = NULL;
\n
"
.
format
(
host_type
,
p
.
name
)
needs_alloc
=
True
...
...
@@ -2288,7 +2289,8 @@ class ArrayConversionFunction(object):
# Generate function prototype.
if
return_type
:
body
+=
"static inline {0} *{1}("
.
format
(
return_type
,
self
.
name
)
body
+=
"static inline {0}{1} *{2}("
.
format
(
"const "
if
self
.
array
.
is_const
()
else
""
,
return_type
,
self
.
name
)
else
:
body
+=
"static inline void {0}("
.
format
(
self
.
name
)
if
needs_alloc
:
...
...
dlls/winevulkan/vulkan_thunks.c
View file @
99a0d58d
This diff is collapsed.
Click to expand it.
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