forked from Mirrors/wine-wine
winevulkan: Fix typos.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
cf5f750ed8
commit
f1b88ab1f6
|
@ -124,12 +124,12 @@ CORE_EXTENSIONS = [
|
||||||
DRIVER_VERSION = 3
|
DRIVER_VERSION = 3
|
||||||
|
|
||||||
# Table of functions for which we have a special implementation.
|
# Table of functions for which we have a special implementation.
|
||||||
# This are regular device / instance functions for which we need
|
# These are regular device / instance functions for which we need
|
||||||
# to more work compared to a regular thunk or because they are
|
# to do more work compared to a regular thunk or because they are
|
||||||
# part of the driver interface.
|
# part of the driver interface.
|
||||||
# - dispatch set whether we need a function pointer in the device
|
# - dispatch set whether we need a function pointer in the device
|
||||||
# / instance dispatch table.
|
# / instance dispatch table.
|
||||||
# - driver sets whether the api is part of the driver interface.
|
# - driver sets whether the API is part of the driver interface.
|
||||||
# - thunk sets whether to create a thunk in vulkan_thunks.c.
|
# - thunk sets whether to create a thunk in vulkan_thunks.c.
|
||||||
FUNCTION_OVERRIDES = {
|
FUNCTION_OVERRIDES = {
|
||||||
# Global functions
|
# Global functions
|
||||||
|
@ -1199,7 +1199,7 @@ class VkParam(object):
|
||||||
else:
|
else:
|
||||||
proto += " " + self.name
|
proto += " " + self.name
|
||||||
|
|
||||||
# Allows appeninding something to the variable name useful for
|
# Allows appending something to the variable name useful for
|
||||||
# win32 to host conversion.
|
# win32 to host conversion.
|
||||||
if postfix is not None:
|
if postfix is not None:
|
||||||
proto += postfix
|
proto += postfix
|
||||||
|
@ -1371,7 +1371,7 @@ class VkParam(object):
|
||||||
return "NULL"
|
return "NULL"
|
||||||
|
|
||||||
# Dispatchable objects wrap the native handle. For thunk generation we
|
# Dispatchable objects wrap the native handle. For thunk generation we
|
||||||
# need to pass the native handle to the native vulkan calls.
|
# need to pass the native handle to the native Vulkan calls.
|
||||||
if self.is_dispatchable():
|
if self.is_dispatchable():
|
||||||
return "{0}->{1}".format(self.name, self.handle.native_handle())
|
return "{0}->{1}".format(self.name, self.handle.native_handle())
|
||||||
elif conv and self.needs_conversion():
|
elif conv and self.needs_conversion():
|
||||||
|
@ -2250,7 +2250,7 @@ class VkRegistry(object):
|
||||||
funcs[func.name] = func
|
funcs[func.name] = func
|
||||||
|
|
||||||
# To make life easy for the code generation, separate all function
|
# To make life easy for the code generation, separate all function
|
||||||
# calls out in the 3 types of vulkan functions: device, global and instance.
|
# calls out in the 3 types of Vulkan functions: device, global and instance.
|
||||||
device_funcs = []
|
device_funcs = []
|
||||||
global_funcs = []
|
global_funcs = []
|
||||||
instance_funcs = []
|
instance_funcs = []
|
||||||
|
@ -2474,7 +2474,7 @@ class VkRegistry(object):
|
||||||
if type_info["category"] in ["struct", "union"]:
|
if type_info["category"] in ["struct", "union"]:
|
||||||
# We store unions among structs as some structs depend
|
# We store unions among structs as some structs depend
|
||||||
# on unions. The types are very similar in parsing and
|
# on unions. The types are very similar in parsing and
|
||||||
# generation anyway. The official vulkan scripts use
|
# generation anyway. The official Vulkan scripts use
|
||||||
# a similar kind of hack.
|
# a similar kind of hack.
|
||||||
struct = VkStruct.from_xml(t)
|
struct = VkStruct.from_xml(t)
|
||||||
structs.append(struct)
|
structs.append(struct)
|
||||||
|
|
|
@ -136,7 +136,7 @@ err:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Helper function for release command buffers. */
|
/* Helper function to release command buffers. */
|
||||||
static void wine_vk_command_buffers_free(struct VkDevice_T *device, VkCommandPool pool,
|
static void wine_vk_command_buffers_free(struct VkDevice_T *device, VkCommandPool pool,
|
||||||
uint32_t count, const VkCommandBuffer *buffers)
|
uint32_t count, const VkCommandBuffer *buffers)
|
||||||
{
|
{
|
||||||
|
@ -799,7 +799,7 @@ PFN_vkVoidFunction WINAPI wine_vkGetDeviceProcAddr(VkDevice device, const char *
|
||||||
/* Per the spec, we are only supposed to return device functions as in functions
|
/* Per the spec, we are only supposed to return device functions as in functions
|
||||||
* for which the first parameter is vkDevice or a child of vkDevice like a
|
* for which the first parameter is vkDevice or a child of vkDevice like a
|
||||||
* vkCommandBuffer or vkQueue.
|
* vkCommandBuffer or vkQueue.
|
||||||
* Loader takes are of filtering of extensions which are enabled or not.
|
* Loader takes care of filtering of extensions which are enabled or not.
|
||||||
*/
|
*/
|
||||||
func = wine_vk_get_device_proc_addr(name);
|
func = wine_vk_get_device_proc_addr(name);
|
||||||
if (func)
|
if (func)
|
||||||
|
|
Loading…
Reference in New Issue