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
8463c4f1
Commit
8463c4f1
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: Fix handling unions in needs_alignment().
parent
19a23b78
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
29 deletions
+140
-29
make_vulkan
dlls/winevulkan/make_vulkan
+9
-5
vulkan_thunks.c
dlls/winevulkan/vulkan_thunks.c
+85
-2
vulkan_thunks.h
dlls/winevulkan/vulkan_thunks.h
+26
-2
vulkan.h
include/wine/vulkan.h
+20
-20
No files found.
dlls/winevulkan/make_vulkan
View file @
8463c4f1
...
@@ -1145,6 +1145,9 @@ class VkVariable(object):
...
@@ -1145,6 +1145,9 @@ class VkVariable(object):
def
is_struct
(
self
):
def
is_struct
(
self
):
return
self
.
struct
is
not
None
return
self
.
struct
is
not
None
def
is_union
(
self
):
return
self
.
type_info
[
"category"
]
==
"union"
def
is_dynamic_array
(
self
):
def
is_dynamic_array
(
self
):
""" Returns if the member is an array element.
""" Returns if the member is an array element.
Vulkan uses this for dynamically sized arrays for which
Vulkan uses this for dynamically sized arrays for which
...
@@ -1177,8 +1180,8 @@ class VkVariable(object):
...
@@ -1177,8 +1180,8 @@ class VkVariable(object):
return
False
return
False
elif
self
.
type
in
[
"uint64_t"
,
"VkDeviceAddress"
,
"VkDeviceSize"
]:
elif
self
.
type
in
[
"uint64_t"
,
"VkDeviceAddress"
,
"VkDeviceSize"
]:
return
True
return
True
elif
self
.
is_struct
():
elif
self
.
is_struct
()
or
self
.
is_union
()
:
return
self
.
struct
.
needs_alignment
()
return
self
.
type_info
[
"data"
]
.
needs_alignment
()
elif
self
.
is_handle
():
elif
self
.
is_handle
():
# Dispatchable handles are pointers to objects, while
# Dispatchable handles are pointers to objects, while
# non-dispatchable are uint64_t and hence need alignment.
# non-dispatchable are uint64_t and hence need alignment.
...
@@ -1399,9 +1402,6 @@ class VkMember(VkVariable):
...
@@ -1399,9 +1402,6 @@ class VkMember(VkVariable):
def
is_struct_forward_declaration
(
self
):
def
is_struct_forward_declaration
(
self
):
return
self
.
struct_fwd_decl
return
self
.
struct_fwd_decl
def
is_union
(
self
):
return
self
.
type_info
[
"category"
]
==
"union"
def
is_bit_field
(
self
):
def
is_bit_field
(
self
):
return
self
.
bit_width
is
not
None
return
self
.
bit_width
is
not
None
...
@@ -2009,6 +2009,10 @@ class VkStruct(Sequence):
...
@@ -2009,6 +2009,10 @@ class VkStruct(Sequence):
return
False
return
False
def
needs_host_type
(
self
):
def
needs_host_type
(
self
):
# FIXME: needs pointer array support
if
self
.
name
==
"VkAccelerationStructureGeometryKHR"
:
return
False
for
m
in
self
.
members
:
for
m
in
self
.
members
:
if
self
.
name
==
m
.
type
:
if
self
.
name
==
m
.
type
:
continue
continue
...
...
dlls/winevulkan/vulkan_thunks.c
View file @
8463c4f1
...
@@ -7950,6 +7950,26 @@ static inline void convert_VkMicromapBuildSizesInfoEXT_host_to_win32(const VkMic
...
@@ -7950,6 +7950,26 @@ static inline void convert_VkMicromapBuildSizesInfoEXT_host_to_win32(const VkMic
#endif
/* USE_STRUCT_CONVERSION */
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPerformanceValueINTEL_win32_to_host
(
const
VkPerformanceValueINTEL
*
in
,
VkPerformanceValueINTEL_host
*
out
)
{
if
(
!
in
)
return
;
out
->
type
=
in
->
type
;
out
->
data
=
in
->
data
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPerformanceValueINTEL_host_to_win32
(
const
VkPerformanceValueINTEL_host
*
in
,
VkPerformanceValueINTEL
*
out
)
{
if
(
!
in
)
return
;
out
->
type
=
in
->
type
;
out
->
data
=
in
->
data
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPhysicalDeviceExternalSemaphoreInfo_win32_to_host
(
struct
conversion_context
*
ctx
,
const
VkPhysicalDeviceExternalSemaphoreInfo
*
in
,
VkPhysicalDeviceExternalSemaphoreInfo
*
out
)
static
inline
void
convert_VkPhysicalDeviceExternalSemaphoreInfo_win32_to_host
(
struct
conversion_context
*
ctx
,
const
VkPhysicalDeviceExternalSemaphoreInfo
*
in
,
VkPhysicalDeviceExternalSemaphoreInfo
*
out
)
{
{
const
VkBaseInStructure
*
in_header
;
const
VkBaseInStructure
*
in_header
;
...
@@ -9867,6 +9887,60 @@ static inline void convert_VkPipelineInfoKHR_win32_to_host(const VkPipelineInfoK
...
@@ -9867,6 +9887,60 @@ static inline void convert_VkPipelineInfoKHR_win32_to_host(const VkPipelineInfoK
#endif
/* USE_STRUCT_CONVERSION */
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPipelineExecutableStatisticKHR_win32_to_host
(
const
VkPipelineExecutableStatisticKHR
*
in
,
VkPipelineExecutableStatisticKHR_host
*
out
)
{
if
(
!
in
)
return
;
out
->
sType
=
in
->
sType
;
out
->
pNext
=
in
->
pNext
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPipelineExecutableStatisticKHR_host_to_win32
(
const
VkPipelineExecutableStatisticKHR_host
*
in
,
VkPipelineExecutableStatisticKHR
*
out
)
{
if
(
!
in
)
return
;
memcpy
(
out
->
name
,
in
->
name
,
VK_MAX_DESCRIPTION_SIZE
*
sizeof
(
char
));
memcpy
(
out
->
description
,
in
->
description
,
VK_MAX_DESCRIPTION_SIZE
*
sizeof
(
char
));
out
->
format
=
in
->
format
;
out
->
value
=
in
->
value
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
VkPipelineExecutableStatisticKHR_host
*
convert_VkPipelineExecutableStatisticKHR_array_win32_to_host
(
struct
conversion_context
*
ctx
,
const
VkPipelineExecutableStatisticKHR
*
in
,
uint32_t
count
)
{
VkPipelineExecutableStatisticKHR_host
*
out
;
unsigned
int
i
;
if
(
!
in
||
!
count
)
return
NULL
;
out
=
conversion_context_alloc
(
ctx
,
count
*
sizeof
(
*
out
));
for
(
i
=
0
;
i
<
count
;
i
++
)
{
convert_VkPipelineExecutableStatisticKHR_win32_to_host
(
&
in
[
i
],
&
out
[
i
]);
}
return
out
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPipelineExecutableStatisticKHR_array_host_to_win32
(
const
VkPipelineExecutableStatisticKHR_host
*
in
,
VkPipelineExecutableStatisticKHR
*
out
,
uint32_t
count
)
{
unsigned
int
i
;
if
(
!
in
)
return
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
convert_VkPipelineExecutableStatisticKHR_host_to_win32
(
&
in
[
i
],
&
out
[
i
]);
}
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPipelineInfoEXT_win32_to_host
(
const
VkPipelineInfoEXT
*
in
,
VkPipelineInfoEXT_host
*
out
)
static
inline
void
convert_VkPipelineInfoEXT_win32_to_host
(
const
VkPipelineInfoEXT
*
in
,
VkPipelineInfoEXT_host
*
out
)
{
{
if
(
!
in
)
return
;
if
(
!
in
)
return
;
...
@@ -21547,10 +21621,13 @@ static NTSTATUS thunk64_vkGetPerformanceParameterINTEL(void *args)
...
@@ -21547,10 +21621,13 @@ static NTSTATUS thunk64_vkGetPerformanceParameterINTEL(void *args)
static
NTSTATUS
thunk32_vkGetPerformanceParameterINTEL
(
void
*
args
)
static
NTSTATUS
thunk32_vkGetPerformanceParameterINTEL
(
void
*
args
)
{
{
struct
vkGetPerformanceParameterINTEL_params
*
params
=
args
;
struct
vkGetPerformanceParameterINTEL_params
*
params
=
args
;
VkPerformanceValueINTEL_host
pValue_host
;
TRACE
(
"%p, %#x, %p
\n
"
,
params
->
device
,
params
->
parameter
,
params
->
pValue
);
TRACE
(
"%p, %#x, %p
\n
"
,
params
->
device
,
params
->
parameter
,
params
->
pValue
);
params
->
result
=
wine_device_from_handle
(
params
->
device
)
->
funcs
.
p_vkGetPerformanceParameterINTEL
(
wine_device_from_handle
(
params
->
device
)
->
device
,
params
->
parameter
,
params
->
pValue
);
convert_VkPerformanceValueINTEL_win32_to_host
(
params
->
pValue
,
&
pValue_host
);
params
->
result
=
wine_device_from_handle
(
params
->
device
)
->
funcs
.
p_vkGetPerformanceParameterINTEL
(
wine_device_from_handle
(
params
->
device
)
->
device
,
params
->
parameter
,
&
pValue_host
);
convert_VkPerformanceValueINTEL_host_to_win32
(
&
pValue_host
,
params
->
pValue
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
@@ -22852,11 +22929,17 @@ static NTSTATUS thunk32_vkGetPipelineExecutableStatisticsKHR(void *args)
...
@@ -22852,11 +22929,17 @@ static NTSTATUS thunk32_vkGetPipelineExecutableStatisticsKHR(void *args)
{
{
struct
vkGetPipelineExecutableStatisticsKHR_params
*
params
=
args
;
struct
vkGetPipelineExecutableStatisticsKHR_params
*
params
=
args
;
VkPipelineExecutableInfoKHR_host
pExecutableInfo_host
;
VkPipelineExecutableInfoKHR_host
pExecutableInfo_host
;
VkPipelineExecutableStatisticKHR_host
*
pStatistics_host
;
struct
conversion_context
ctx
;
TRACE
(
"%p, %p, %p, %p
\n
"
,
params
->
device
,
params
->
pExecutableInfo
,
params
->
pStatisticCount
,
params
->
pStatistics
);
TRACE
(
"%p, %p, %p, %p
\n
"
,
params
->
device
,
params
->
pExecutableInfo
,
params
->
pStatisticCount
,
params
->
pStatistics
);
init_conversion_context
(
&
ctx
);
convert_VkPipelineExecutableInfoKHR_win32_to_host
(
params
->
pExecutableInfo
,
&
pExecutableInfo_host
);
convert_VkPipelineExecutableInfoKHR_win32_to_host
(
params
->
pExecutableInfo
,
&
pExecutableInfo_host
);
params
->
result
=
wine_device_from_handle
(
params
->
device
)
->
funcs
.
p_vkGetPipelineExecutableStatisticsKHR
(
wine_device_from_handle
(
params
->
device
)
->
device
,
&
pExecutableInfo_host
,
params
->
pStatisticCount
,
params
->
pStatistics
);
pStatistics_host
=
convert_VkPipelineExecutableStatisticKHR_array_win32_to_host
(
&
ctx
,
params
->
pStatistics
,
*
params
->
pStatisticCount
);
params
->
result
=
wine_device_from_handle
(
params
->
device
)
->
funcs
.
p_vkGetPipelineExecutableStatisticsKHR
(
wine_device_from_handle
(
params
->
device
)
->
device
,
&
pExecutableInfo_host
,
params
->
pStatisticCount
,
pStatistics_host
);
convert_VkPipelineExecutableStatisticKHR_array_host_to_win32
(
pStatistics_host
,
params
->
pStatistics
,
*
params
->
pStatisticCount
);
free_conversion_context
(
&
ctx
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
dlls/winevulkan/vulkan_thunks.h
View file @
8463c4f1
...
@@ -1670,6 +1670,16 @@ typedef VkMicromapBuildSizesInfoEXT VkMicromapBuildSizesInfoEXT_host;
...
@@ -1670,6 +1670,16 @@ typedef VkMicromapBuildSizesInfoEXT VkMicromapBuildSizesInfoEXT_host;
#endif
#endif
#if defined(USE_STRUCT_CONVERSION)
#if defined(USE_STRUCT_CONVERSION)
typedef
struct
VkPerformanceValueINTEL_host
{
VkPerformanceValueTypeINTEL
type
;
VkPerformanceValueDataINTEL
data
;
}
VkPerformanceValueINTEL_host
;
#else
typedef
VkPerformanceValueINTEL
VkPerformanceValueINTEL_host
;
#endif
#if defined(USE_STRUCT_CONVERSION)
typedef
struct
VkImageFormatProperties_host
typedef
struct
VkImageFormatProperties_host
{
{
VkExtent3D
maxExtent
;
VkExtent3D
maxExtent
;
...
@@ -2217,6 +2227,20 @@ typedef VkPipelineInfoKHR VkPipelineInfoKHR_host;
...
@@ -2217,6 +2227,20 @@ typedef VkPipelineInfoKHR VkPipelineInfoKHR_host;
#endif
#endif
#if defined(USE_STRUCT_CONVERSION)
#if defined(USE_STRUCT_CONVERSION)
typedef
struct
VkPipelineExecutableStatisticKHR_host
{
VkStructureType
sType
;
void
*
pNext
;
char
name
[
VK_MAX_DESCRIPTION_SIZE
];
char
description
[
VK_MAX_DESCRIPTION_SIZE
];
VkPipelineExecutableStatisticFormatKHR
format
;
VkPipelineExecutableStatisticValueKHR
value
;
}
VkPipelineExecutableStatisticKHR_host
;
#else
typedef
VkPipelineExecutableStatisticKHR
VkPipelineExecutableStatisticKHR_host
;
#endif
#if defined(USE_STRUCT_CONVERSION)
typedef
struct
VkPipelineInfoEXT_host
typedef
struct
VkPipelineInfoEXT_host
{
{
VkStructureType
sType
;
VkStructureType
sType
;
...
@@ -2847,11 +2871,11 @@ struct vulkan_device_funcs
...
@@ -2847,11 +2871,11 @@ struct vulkan_device_funcs
uint32_t
(
*
p_vkGetImageViewHandleNVX
)(
VkDevice
,
const
VkImageViewHandleInfoNVX_host
*
);
uint32_t
(
*
p_vkGetImageViewHandleNVX
)(
VkDevice
,
const
VkImageViewHandleInfoNVX_host
*
);
VkResult
(
*
p_vkGetMemoryHostPointerPropertiesEXT
)(
VkDevice
,
VkExternalMemoryHandleTypeFlagBits
,
const
void
*
,
VkMemoryHostPointerPropertiesEXT
*
);
VkResult
(
*
p_vkGetMemoryHostPointerPropertiesEXT
)(
VkDevice
,
VkExternalMemoryHandleTypeFlagBits
,
const
void
*
,
VkMemoryHostPointerPropertiesEXT
*
);
void
(
*
p_vkGetMicromapBuildSizesEXT
)(
VkDevice
,
VkAccelerationStructureBuildTypeKHR
,
const
VkMicromapBuildInfoEXT_host
*
,
VkMicromapBuildSizesInfoEXT_host
*
);
void
(
*
p_vkGetMicromapBuildSizesEXT
)(
VkDevice
,
VkAccelerationStructureBuildTypeKHR
,
const
VkMicromapBuildInfoEXT_host
*
,
VkMicromapBuildSizesInfoEXT_host
*
);
VkResult
(
*
p_vkGetPerformanceParameterINTEL
)(
VkDevice
,
VkPerformanceParameterTypeINTEL
,
VkPerformanceValueINTEL
*
);
VkResult
(
*
p_vkGetPerformanceParameterINTEL
)(
VkDevice
,
VkPerformanceParameterTypeINTEL
,
VkPerformanceValueINTEL
_host
*
);
VkResult
(
*
p_vkGetPipelineCacheData
)(
VkDevice
,
VkPipelineCache
,
size_t
*
,
void
*
);
VkResult
(
*
p_vkGetPipelineCacheData
)(
VkDevice
,
VkPipelineCache
,
size_t
*
,
void
*
);
VkResult
(
*
p_vkGetPipelineExecutableInternalRepresentationsKHR
)(
VkDevice
,
const
VkPipelineExecutableInfoKHR_host
*
,
uint32_t
*
,
VkPipelineExecutableInternalRepresentationKHR
*
);
VkResult
(
*
p_vkGetPipelineExecutableInternalRepresentationsKHR
)(
VkDevice
,
const
VkPipelineExecutableInfoKHR_host
*
,
uint32_t
*
,
VkPipelineExecutableInternalRepresentationKHR
*
);
VkResult
(
*
p_vkGetPipelineExecutablePropertiesKHR
)(
VkDevice
,
const
VkPipelineInfoKHR_host
*
,
uint32_t
*
,
VkPipelineExecutablePropertiesKHR
*
);
VkResult
(
*
p_vkGetPipelineExecutablePropertiesKHR
)(
VkDevice
,
const
VkPipelineInfoKHR_host
*
,
uint32_t
*
,
VkPipelineExecutablePropertiesKHR
*
);
VkResult
(
*
p_vkGetPipelineExecutableStatisticsKHR
)(
VkDevice
,
const
VkPipelineExecutableInfoKHR_host
*
,
uint32_t
*
,
VkPipelineExecutableStatisticKHR
*
);
VkResult
(
*
p_vkGetPipelineExecutableStatisticsKHR
)(
VkDevice
,
const
VkPipelineExecutableInfoKHR_host
*
,
uint32_t
*
,
VkPipelineExecutableStatisticKHR
_host
*
);
VkResult
(
*
p_vkGetPipelinePropertiesEXT
)(
VkDevice
,
const
VkPipelineInfoEXT_host
*
,
VkBaseOutStructure
*
);
VkResult
(
*
p_vkGetPipelinePropertiesEXT
)(
VkDevice
,
const
VkPipelineInfoEXT_host
*
,
VkBaseOutStructure
*
);
void
(
*
p_vkGetPrivateData
)(
VkDevice
,
VkObjectType
,
uint64_t
,
VkPrivateDataSlot
,
uint64_t
*
);
void
(
*
p_vkGetPrivateData
)(
VkDevice
,
VkObjectType
,
uint64_t
,
VkPrivateDataSlot
,
uint64_t
*
);
void
(
*
p_vkGetPrivateDataEXT
)(
VkDevice
,
VkObjectType
,
uint64_t
,
VkPrivateDataSlot
,
uint64_t
*
);
void
(
*
p_vkGetPrivateDataEXT
)(
VkDevice
,
VkObjectType
,
uint64_t
,
VkPrivateDataSlot
,
uint64_t
*
);
...
...
include/wine/vulkan.h
View file @
8463c4f1
...
@@ -6583,7 +6583,7 @@ typedef union VkPerformanceValueDataINTEL
...
@@ -6583,7 +6583,7 @@ typedef union VkPerformanceValueDataINTEL
typedef
struct
VkPerformanceValueINTEL
typedef
struct
VkPerformanceValueINTEL
{
{
VkPerformanceValueTypeINTEL
type
;
VkPerformanceValueTypeINTEL
type
;
VkPerformanceValueDataINTEL
data
;
VkPerformanceValueDataINTEL
WINE_VK_ALIGN
(
8
)
data
;
}
VkPerformanceValueINTEL
;
}
VkPerformanceValueINTEL
;
typedef
struct
VkPhysicalDevice16BitStorageFeatures
typedef
struct
VkPhysicalDevice16BitStorageFeatures
...
@@ -10288,7 +10288,7 @@ typedef struct VkAccelerationStructureGeometryAabbsDataKHR
...
@@ -10288,7 +10288,7 @@ typedef struct VkAccelerationStructureGeometryAabbsDataKHR
{
{
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkDeviceOrHostAddressConstKHR
data
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
data
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
stride
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
stride
;
}
VkAccelerationStructureGeometryAabbsDataKHR
;
}
VkAccelerationStructureGeometryAabbsDataKHR
;
...
@@ -10297,14 +10297,14 @@ typedef struct VkAccelerationStructureGeometryInstancesDataKHR
...
@@ -10297,14 +10297,14 @@ typedef struct VkAccelerationStructureGeometryInstancesDataKHR
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkBool32
arrayOfPointers
;
VkBool32
arrayOfPointers
;
VkDeviceOrHostAddressConstKHR
data
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
data
;
}
VkAccelerationStructureGeometryInstancesDataKHR
;
}
VkAccelerationStructureGeometryInstancesDataKHR
;
typedef
struct
VkAccelerationStructureGeometryMotionTrianglesDataNV
typedef
struct
VkAccelerationStructureGeometryMotionTrianglesDataNV
{
{
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkDeviceOrHostAddressConstKHR
vertexData
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
vertexData
;
}
VkAccelerationStructureGeometryMotionTrianglesDataNV
;
}
VkAccelerationStructureGeometryMotionTrianglesDataNV
;
typedef
struct
VkAccelerationStructureGeometryTrianglesDataKHR
typedef
struct
VkAccelerationStructureGeometryTrianglesDataKHR
...
@@ -10312,12 +10312,12 @@ typedef struct VkAccelerationStructureGeometryTrianglesDataKHR
...
@@ -10312,12 +10312,12 @@ typedef struct VkAccelerationStructureGeometryTrianglesDataKHR
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkFormat
vertexFormat
;
VkFormat
vertexFormat
;
VkDeviceOrHostAddressConstKHR
vertexData
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
vertexData
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
vertexStride
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
vertexStride
;
uint32_t
maxVertex
;
uint32_t
maxVertex
;
VkIndexType
indexType
;
VkIndexType
indexType
;
VkDeviceOrHostAddressConstKHR
indexData
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
indexData
;
VkDeviceOrHostAddressConstKHR
transformData
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
transformData
;
}
VkAccelerationStructureGeometryTrianglesDataKHR
;
}
VkAccelerationStructureGeometryTrianglesDataKHR
;
typedef
struct
VkAccelerationStructureInstanceKHR
typedef
struct
VkAccelerationStructureInstanceKHR
...
@@ -10358,7 +10358,7 @@ typedef struct VkAccelerationStructureTrianglesOpacityMicromapEXT
...
@@ -10358,7 +10358,7 @@ typedef struct VkAccelerationStructureTrianglesOpacityMicromapEXT
VkStructureType
sType
;
VkStructureType
sType
;
void
*
pNext
;
void
*
pNext
;
VkIndexType
indexType
;
VkIndexType
indexType
;
VkDeviceOrHostAddressConstKHR
indexBuffer
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
indexBuffer
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
indexStride
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
indexStride
;
uint32_t
baseTriangle
;
uint32_t
baseTriangle
;
uint32_t
usageCountsCount
;
uint32_t
usageCountsCount
;
...
@@ -10451,7 +10451,7 @@ typedef struct VkCopyAccelerationStructureToMemoryInfoKHR
...
@@ -10451,7 +10451,7 @@ typedef struct VkCopyAccelerationStructureToMemoryInfoKHR
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkAccelerationStructureKHR
WINE_VK_ALIGN
(
8
)
src
;
VkAccelerationStructureKHR
WINE_VK_ALIGN
(
8
)
src
;
VkDeviceOrHostAddressKHR
dst
;
VkDeviceOrHostAddressKHR
WINE_VK_ALIGN
(
8
)
dst
;
VkCopyAccelerationStructureModeKHR
mode
;
VkCopyAccelerationStructureModeKHR
mode
;
}
VkCopyAccelerationStructureToMemoryInfoKHR
;
}
VkCopyAccelerationStructureToMemoryInfoKHR
;
...
@@ -10483,7 +10483,7 @@ typedef struct VkCopyMemoryToAccelerationStructureInfoKHR
...
@@ -10483,7 +10483,7 @@ typedef struct VkCopyMemoryToAccelerationStructureInfoKHR
{
{
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkDeviceOrHostAddressConstKHR
src
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
src
;
VkAccelerationStructureKHR
WINE_VK_ALIGN
(
8
)
dst
;
VkAccelerationStructureKHR
WINE_VK_ALIGN
(
8
)
dst
;
VkCopyAccelerationStructureModeKHR
mode
;
VkCopyAccelerationStructureModeKHR
mode
;
}
VkCopyMemoryToAccelerationStructureInfoKHR
;
}
VkCopyMemoryToAccelerationStructureInfoKHR
;
...
@@ -10502,7 +10502,7 @@ typedef struct VkCopyMemoryToMicromapInfoEXT
...
@@ -10502,7 +10502,7 @@ typedef struct VkCopyMemoryToMicromapInfoEXT
{
{
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkDeviceOrHostAddressConstKHR
src
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
src
;
VkMicromapEXT
WINE_VK_ALIGN
(
8
)
dst
;
VkMicromapEXT
WINE_VK_ALIGN
(
8
)
dst
;
VkCopyMicromapModeEXT
mode
;
VkCopyMicromapModeEXT
mode
;
}
VkCopyMemoryToMicromapInfoEXT
;
}
VkCopyMemoryToMicromapInfoEXT
;
...
@@ -10512,7 +10512,7 @@ typedef struct VkCopyMicromapToMemoryInfoEXT
...
@@ -10512,7 +10512,7 @@ typedef struct VkCopyMicromapToMemoryInfoEXT
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkMicromapEXT
WINE_VK_ALIGN
(
8
)
src
;
VkMicromapEXT
WINE_VK_ALIGN
(
8
)
src
;
VkDeviceOrHostAddressKHR
dst
;
VkDeviceOrHostAddressKHR
WINE_VK_ALIGN
(
8
)
dst
;
VkCopyMicromapModeEXT
mode
;
VkCopyMicromapModeEXT
mode
;
}
VkCopyMicromapToMemoryInfoEXT
;
}
VkCopyMicromapToMemoryInfoEXT
;
...
@@ -10774,9 +10774,9 @@ typedef struct VkMicromapBuildInfoEXT
...
@@ -10774,9 +10774,9 @@ typedef struct VkMicromapBuildInfoEXT
uint32_t
usageCountsCount
;
uint32_t
usageCountsCount
;
const
VkMicromapUsageEXT
*
pUsageCounts
;
const
VkMicromapUsageEXT
*
pUsageCounts
;
const
VkMicromapUsageEXT
*
const
*
ppUsageCounts
;
const
VkMicromapUsageEXT
*
const
*
ppUsageCounts
;
VkDeviceOrHostAddressConstKHR
data
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
data
;
VkDeviceOrHostAddressKHR
scratchData
;
VkDeviceOrHostAddressKHR
WINE_VK_ALIGN
(
8
)
scratchData
;
VkDeviceOrHostAddressConstKHR
triangleArray
;
VkDeviceOrHostAddressConstKHR
WINE_VK_ALIGN
(
8
)
triangleArray
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
triangleArrayStride
;
VkDeviceSize
WINE_VK_ALIGN
(
8
)
triangleArrayStride
;
}
VkMicromapBuildInfoEXT
;
}
VkMicromapBuildInfoEXT
;
...
@@ -10852,7 +10852,7 @@ typedef struct VkPipelineExecutableStatisticKHR
...
@@ -10852,7 +10852,7 @@ typedef struct VkPipelineExecutableStatisticKHR
char
name
[
VK_MAX_DESCRIPTION_SIZE
];
char
name
[
VK_MAX_DESCRIPTION_SIZE
];
char
description
[
VK_MAX_DESCRIPTION_SIZE
];
char
description
[
VK_MAX_DESCRIPTION_SIZE
];
VkPipelineExecutableStatisticFormatKHR
format
;
VkPipelineExecutableStatisticFormatKHR
format
;
VkPipelineExecutableStatisticValueKHR
value
;
VkPipelineExecutableStatisticValueKHR
WINE_VK_ALIGN
(
8
)
value
;
}
VkPipelineExecutableStatisticKHR
;
}
VkPipelineExecutableStatisticKHR
;
typedef
struct
VkPipelineLayoutCreateInfo
typedef
struct
VkPipelineLayoutCreateInfo
...
@@ -11059,7 +11059,7 @@ typedef union VkAccelerationStructureGeometryDataKHR
...
@@ -11059,7 +11059,7 @@ typedef union VkAccelerationStructureGeometryDataKHR
{
{
VkAccelerationStructureGeometryTrianglesDataKHR
WINE_VK_ALIGN
(
8
)
triangles
;
VkAccelerationStructureGeometryTrianglesDataKHR
WINE_VK_ALIGN
(
8
)
triangles
;
VkAccelerationStructureGeometryAabbsDataKHR
WINE_VK_ALIGN
(
8
)
aabbs
;
VkAccelerationStructureGeometryAabbsDataKHR
WINE_VK_ALIGN
(
8
)
aabbs
;
VkAccelerationStructureGeometryInstancesDataKHR
instances
;
VkAccelerationStructureGeometryInstancesDataKHR
WINE_VK_ALIGN
(
8
)
instances
;
}
VkAccelerationStructureGeometryDataKHR
;
}
VkAccelerationStructureGeometryDataKHR
;
typedef
struct
VkAccelerationStructureGeometryKHR
typedef
struct
VkAccelerationStructureGeometryKHR
...
@@ -11067,7 +11067,7 @@ typedef struct VkAccelerationStructureGeometryKHR
...
@@ -11067,7 +11067,7 @@ typedef struct VkAccelerationStructureGeometryKHR
VkStructureType
sType
;
VkStructureType
sType
;
const
void
*
pNext
;
const
void
*
pNext
;
VkGeometryTypeKHR
geometryType
;
VkGeometryTypeKHR
geometryType
;
VkAccelerationStructureGeometryDataKHR
geometry
;
VkAccelerationStructureGeometryDataKHR
WINE_VK_ALIGN
(
8
)
geometry
;
VkGeometryFlagsKHR
flags
;
VkGeometryFlagsKHR
flags
;
}
VkAccelerationStructureGeometryKHR
;
}
VkAccelerationStructureGeometryKHR
;
...
@@ -11093,7 +11093,7 @@ typedef struct VkAccelerationStructureMotionInstanceNV
...
@@ -11093,7 +11093,7 @@ typedef struct VkAccelerationStructureMotionInstanceNV
{
{
VkAccelerationStructureMotionInstanceTypeNV
type
;
VkAccelerationStructureMotionInstanceTypeNV
type
;
VkAccelerationStructureMotionInstanceFlagsNV
flags
;
VkAccelerationStructureMotionInstanceFlagsNV
flags
;
VkAccelerationStructureMotionInstanceDataNV
data
;
VkAccelerationStructureMotionInstanceDataNV
WINE_VK_ALIGN
(
8
)
data
;
}
VkAccelerationStructureMotionInstanceNV
;
}
VkAccelerationStructureMotionInstanceNV
;
typedef
struct
VkBindSparseInfo
typedef
struct
VkBindSparseInfo
...
@@ -11209,7 +11209,7 @@ typedef struct VkAccelerationStructureBuildGeometryInfoKHR
...
@@ -11209,7 +11209,7 @@ typedef struct VkAccelerationStructureBuildGeometryInfoKHR
uint32_t
geometryCount
;
uint32_t
geometryCount
;
const
VkAccelerationStructureGeometryKHR
*
pGeometries
;
const
VkAccelerationStructureGeometryKHR
*
pGeometries
;
const
VkAccelerationStructureGeometryKHR
*
const
*
ppGeometries
;
const
VkAccelerationStructureGeometryKHR
*
const
*
ppGeometries
;
VkDeviceOrHostAddressKHR
scratchData
;
VkDeviceOrHostAddressKHR
WINE_VK_ALIGN
(
8
)
scratchData
;
}
VkAccelerationStructureBuildGeometryInfoKHR
;
}
VkAccelerationStructureBuildGeometryInfoKHR
;
typedef
struct
VkAccelerationStructureCreateInfoNV
typedef
struct
VkAccelerationStructureCreateInfoNV
...
...
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