Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
45a49d11
Commit
45a49d11
authored
Dec 22, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move some definitions to wined3d_vk.h.
parent
ef7b1839
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-16
wined3d_vk.h
dlls/wined3d/wined3d_vk.h
+19
-0
No files found.
dlls/wined3d/wined3d_private.h
View file @
45a49d11
...
...
@@ -341,22 +341,7 @@ extern const GLenum magLookup[WINED3D_TEXF_LINEAR + 1] DECLSPEC_HIDDEN;
static
const
uint32_t
WINED3D_READ_ONLY_BIND_MASK
=
WINED3D_BIND_VERTEX_BUFFER
|
WINED3D_BIND_INDEX_BUFFER
|
WINED3D_BIND_CONSTANT_BUFFER
|
WINED3D_BIND_SHADER_RESOURCE
|
WINED3D_BIND_INDIRECT_BUFFER
;
static
const
VkAccessFlags
WINED3D_READ_ONLY_ACCESS_FLAGS
=
VK_ACCESS_INDIRECT_COMMAND_READ_BIT
|
VK_ACCESS_INDEX_READ_BIT
|
VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT
|
VK_ACCESS_UNIFORM_READ_BIT
|
VK_ACCESS_INPUT_ATTACHMENT_READ_BIT
|
VK_ACCESS_SHADER_READ_BIT
|
VK_ACCESS_COLOR_ATTACHMENT_READ_BIT
|
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT
|
VK_ACCESS_TRANSFER_READ_BIT
|
VK_ACCESS_HOST_READ_BIT
|
VK_ACCESS_MEMORY_READ_BIT
;
GLenum
wined3d_gl_compare_func
(
enum
wined3d_cmp_func
f
)
DECLSPEC_HIDDEN
;
VkAccessFlags
vk_access_mask_from_bind_flags
(
uint32_t
bind_flags
)
DECLSPEC_HIDDEN
;
VkCompareOp
vk_compare_op_from_wined3d
(
enum
wined3d_cmp_func
op
)
DECLSPEC_HIDDEN
;
VkImageViewType
vk_image_view_type_from_wined3d
(
enum
wined3d_resource_type
type
,
uint32_t
flags
)
DECLSPEC_HIDDEN
;
VkPipelineStageFlags
vk_pipeline_stage_mask_from_bind_flags
(
uint32_t
bind_flags
)
DECLSPEC_HIDDEN
;
VkShaderStageFlagBits
vk_shader_stage_from_wined3d
(
enum
wined3d_shader_type
shader_type
)
DECLSPEC_HIDDEN
;
VkAccessFlags
vk_access_mask_from_buffer_usage
(
VkBufferUsageFlags
usage
)
DECLSPEC_HIDDEN
;
VkPipelineStageFlags
vk_pipeline_stage_mask_from_buffer_usage
(
VkBufferUsageFlags
usage
)
DECLSPEC_HIDDEN
;
VkBufferUsageFlags
vk_buffer_usage_from_bind_flags
(
uint32_t
bind_flags
)
DECLSPEC_HIDDEN
;
VkMemoryPropertyFlags
vk_memory_type_from_access_flags
(
uint32_t
access
,
uint32_t
usage
)
DECLSPEC_HIDDEN
;
static
inline
enum
wined3d_cmp_func
wined3d_sanitize_cmp_func
(
enum
wined3d_cmp_func
func
)
{
...
...
@@ -4366,7 +4351,6 @@ const char *wined3d_debug_resource_access(uint32_t access) DECLSPEC_HIDDEN;
const
char
*
wined3d_debug_bind_flags
(
uint32_t
bind_flags
)
DECLSPEC_HIDDEN
;
const
char
*
wined3d_debug_view_desc
(
const
struct
wined3d_view_desc
*
d
,
const
struct
wined3d_resource
*
resource
)
DECLSPEC_HIDDEN
;
const
char
*
wined3d_debug_vkresult
(
VkResult
vr
)
DECLSPEC_HIDDEN
;
static
inline
ULONG
wined3d_atomic_decrement_mutex_lock
(
volatile
LONG
*
refcount
)
{
...
...
dlls/wined3d/wined3d_vk.h
View file @
45a49d11
...
...
@@ -19,6 +19,8 @@
#ifndef __WINE_WINED3D_VK_H
#define __WINE_WINED3D_VK_H
#include "stdint.h"
#include "wine/wined3d.h"
#define VK_NO_PROTOTYPES
#include "wine/vulkan.h"
...
...
@@ -229,4 +231,21 @@ struct wined3d_vk_info
#define VK_CALL(f) (vk_info->vk_ops.f)
static
const
VkAccessFlags
WINED3D_READ_ONLY_ACCESS_FLAGS
=
VK_ACCESS_INDIRECT_COMMAND_READ_BIT
|
VK_ACCESS_INDEX_READ_BIT
|
VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT
|
VK_ACCESS_UNIFORM_READ_BIT
|
VK_ACCESS_INPUT_ATTACHMENT_READ_BIT
|
VK_ACCESS_SHADER_READ_BIT
|
VK_ACCESS_COLOR_ATTACHMENT_READ_BIT
|
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT
|
VK_ACCESS_TRANSFER_READ_BIT
|
VK_ACCESS_HOST_READ_BIT
|
VK_ACCESS_MEMORY_READ_BIT
;
VkAccessFlags
vk_access_mask_from_bind_flags
(
uint32_t
bind_flags
)
DECLSPEC_HIDDEN
;
VkCompareOp
vk_compare_op_from_wined3d
(
enum
wined3d_cmp_func
op
)
DECLSPEC_HIDDEN
;
VkImageViewType
vk_image_view_type_from_wined3d
(
enum
wined3d_resource_type
type
,
uint32_t
flags
)
DECLSPEC_HIDDEN
;
VkPipelineStageFlags
vk_pipeline_stage_mask_from_bind_flags
(
uint32_t
bind_flags
)
DECLSPEC_HIDDEN
;
VkShaderStageFlagBits
vk_shader_stage_from_wined3d
(
enum
wined3d_shader_type
shader_type
)
DECLSPEC_HIDDEN
;
VkAccessFlags
vk_access_mask_from_buffer_usage
(
VkBufferUsageFlags
usage
)
DECLSPEC_HIDDEN
;
VkPipelineStageFlags
vk_pipeline_stage_mask_from_buffer_usage
(
VkBufferUsageFlags
usage
)
DECLSPEC_HIDDEN
;
VkBufferUsageFlags
vk_buffer_usage_from_bind_flags
(
uint32_t
bind_flags
)
DECLSPEC_HIDDEN
;
VkMemoryPropertyFlags
vk_memory_type_from_access_flags
(
uint32_t
access
,
uint32_t
usage
)
DECLSPEC_HIDDEN
;
const
char
*
wined3d_debug_vkresult
(
VkResult
vr
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_WINED3D_VK */
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