mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 04:34:48 +00:00
winevulkan: Remove no longer used make_vulkan functions.
This commit is contained in:
parent
ac17191530
commit
a2dc7a4ad0
|
@ -642,18 +642,6 @@ class VkFunction(object):
|
||||||
def returns_longlong(self):
|
def returns_longlong(self):
|
||||||
return self.type in ["uint64_t", "VkDeviceAddress"]
|
return self.type in ["uint64_t", "VkDeviceAddress"]
|
||||||
|
|
||||||
def needs_unwrapping(self):
|
|
||||||
""" Check if the function needs any input/output type unwrapping.
|
|
||||||
Functions need input/output unwrapping if struct parameters have
|
|
||||||
wrapped handles.
|
|
||||||
"""
|
|
||||||
|
|
||||||
for p in self.params:
|
|
||||||
if p.needs_unwrapping():
|
|
||||||
return True
|
|
||||||
|
|
||||||
return False
|
|
||||||
|
|
||||||
def needs_dispatch(self):
|
def needs_dispatch(self):
|
||||||
return self.dispatch
|
return self.dispatch
|
||||||
|
|
||||||
|
@ -747,7 +735,7 @@ class VkFunction(object):
|
||||||
body += " return params.result;\n"
|
body += " return params.result;\n"
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def body(self, conv, unwrap=True, params_prefix=""):
|
def body(self, conv, unwrap, params_prefix=""):
|
||||||
body = ""
|
body = ""
|
||||||
needs_alloc = False
|
needs_alloc = False
|
||||||
|
|
||||||
|
@ -2235,17 +2223,6 @@ class StructConversionFunction(object):
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def _set_name(self):
|
|
||||||
name = "convert_{0}_".format(self.type)
|
|
||||||
win_type = "win32" if self.conv else "win64"
|
|
||||||
host_part = "host" if self.unwrap else "unwrapped_host"
|
|
||||||
if self.direction == Direction.INPUT:
|
|
||||||
name += "{0}_to_{1}".format(win_type, host_part)
|
|
||||||
else: # Direction.OUTPUT
|
|
||||||
name += "{0}_to_{1}".format(host_part, win_type)
|
|
||||||
|
|
||||||
self.name = name
|
|
||||||
|
|
||||||
|
|
||||||
class ArrayConversionFunction(object):
|
class ArrayConversionFunction(object):
|
||||||
def __init__(self, array, direction, conv, unwrap):
|
def __init__(self, array, direction, conv, unwrap):
|
||||||
|
|
Loading…
Reference in a new issue