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
49e437a0
Commit
49e437a0
authored
Dec 22, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move vk_aspect_mask_from_format() functions to wined3d_vk.h.
parent
e4e7c9b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-16
wined3d_vk.h
dlls/wined3d/wined3d_vk.h
+14
-0
No files found.
dlls/wined3d/wined3d_private.h
View file @
49e437a0
...
...
@@ -6014,22 +6014,6 @@ static inline bool isStateDirty(const struct wined3d_context *context, unsigned
return
wined3d_context_is_graphics_state_dirty
(
context
,
state_id
);
}
#include "wined3d_vk.h"
static
inline
VkImageAspectFlags
vk_aspect_mask_from_format
(
const
struct
wined3d_format
*
format
)
{
VkImageAspectFlags
mask
=
0
;
if
(
format
->
depth_size
)
mask
|=
VK_IMAGE_ASPECT_DEPTH_BIT
;
if
(
format
->
stencil_size
)
mask
|=
VK_IMAGE_ASPECT_STENCIL_BIT
;
if
(
!
mask
||
format
->
red_size
||
format
->
green_size
||
format
->
blue_size
||
format
->
alpha_size
)
mask
|=
VK_IMAGE_ASPECT_COLOR_BIT
;
return
mask
;
}
static
inline
bool
wined3d_primitive_type_is_list
(
enum
wined3d_primitive_type
t
)
{
return
t
==
WINED3D_PT_POINTLIST
...
...
@@ -6064,4 +6048,6 @@ static inline bool wined3d_map_persistent(void)
extern
CRITICAL_SECTION
wined3d_command_cs
;
#include "wined3d_vk.h"
#endif
dlls/wined3d/wined3d_vk.h
View file @
49e437a0
...
...
@@ -256,6 +256,20 @@ void wined3d_format_colour_to_vk(const struct wined3d_format *format, const stru
void
wined3d_vk_swizzle_from_color_fixup
(
VkComponentMapping
*
mapping
,
struct
color_fixup_desc
fixup
)
DECLSPEC_HIDDEN
;
const
char
*
wined3d_debug_vkresult
(
VkResult
vr
)
DECLSPEC_HIDDEN
;
static
inline
VkImageAspectFlags
vk_aspect_mask_from_format
(
const
struct
wined3d_format
*
format
)
{
VkImageAspectFlags
mask
=
0
;
if
(
format
->
depth_size
)
mask
|=
VK_IMAGE_ASPECT_DEPTH_BIT
;
if
(
format
->
stencil_size
)
mask
|=
VK_IMAGE_ASPECT_STENCIL_BIT
;
if
(
!
mask
||
format
->
red_size
||
format
->
green_size
||
format
->
blue_size
||
format
->
alpha_size
)
mask
|=
VK_IMAGE_ASPECT_COLOR_BIT
;
return
mask
;
}
struct
wined3d_bo_vk
{
struct
wined3d_bo
b
;
...
...
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