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
0559f440
Commit
0559f440
authored
Dec 22, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move struct wined3d_texture_vk to wined3d_vk.h.
parent
37752cb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-31
wined3d_vk.h
dlls/wined3d/wined3d_vk.h
+29
-0
No files found.
dlls/wined3d/wined3d_private.h
View file @
0559f440
...
...
@@ -3715,8 +3715,6 @@ void wined3d_allocator_cleanup(struct wined3d_allocator *allocator) DECLSPEC_HID
bool
wined3d_allocator_init
(
struct
wined3d_allocator
*
allocator
,
size_t
pool_count
,
const
struct
wined3d_allocator_ops
*
allocator_ops
)
DECLSPEC_HIDDEN
;
#include "wined3d_vk.h"
struct
wined3d_device_gl
{
struct
wined3d_device
d
;
...
...
@@ -4191,7 +4189,6 @@ HRESULT wined3d_texture_no3d_init(struct wined3d_texture *texture_no3d, struct w
uint32_t
flags
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
void
wined3d_gl_texture_swizzle_from_color_fixup
(
GLint
swizzle
[
4
],
struct
color_fixup_desc
fixup
)
DECLSPEC_HIDDEN
;
void
wined3d_vk_swizzle_from_color_fixup
(
VkComponentMapping
*
mapping
,
struct
color_fixup_desc
fixup
)
DECLSPEC_HIDDEN
;
struct
gl_texture
{
...
...
@@ -4268,34 +4265,6 @@ void wined3d_texture_gl_set_compatible_renderbuffer(struct wined3d_texture_gl *t
struct
wined3d_context_gl
*
context_gl
,
unsigned
int
level
,
const
struct
wined3d_rendertarget_info
*
rt
)
DECLSPEC_HIDDEN
;
struct
wined3d_texture_vk
{
struct
wined3d_texture
t
;
struct
wined3d_image_vk
image
;
enum
VkImageLayout
layout
;
uint32_t
bind_mask
;
VkDescriptorImageInfo
default_image_info
;
};
static
inline
struct
wined3d_texture_vk
*
wined3d_texture_vk
(
struct
wined3d_texture
*
texture
)
{
return
CONTAINING_RECORD
(
texture
,
struct
wined3d_texture_vk
,
t
);
}
void
wined3d_texture_vk_barrier
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
,
uint32_t
bind_mask
)
DECLSPEC_HIDDEN
;
const
VkDescriptorImageInfo
*
wined3d_texture_vk_get_default_image_info
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
HRESULT
wined3d_texture_vk_init
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_device
*
device
,
const
struct
wined3d_resource_desc
*
desc
,
unsigned
int
layer_count
,
unsigned
int
level_count
,
uint32_t
flags
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
void
wined3d_texture_vk_make_generic
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
BOOL
wined3d_texture_vk_prepare_texture
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
struct
wined3d_renderbuffer_entry
{
struct
list
entry
;
...
...
@@ -4356,6 +4325,8 @@ void wined3d_sampler_gl_init(struct wined3d_sampler_gl *sampler_gl,
struct
wined3d_device
*
device
,
const
struct
wined3d_sampler_desc
*
desc
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
#include "wined3d_vk.h"
struct
wined3d_sampler_vk
{
struct
wined3d_sampler
s
;
...
...
dlls/wined3d/wined3d_vk.h
View file @
0559f440
...
...
@@ -249,6 +249,7 @@ VkAccessFlags vk_access_mask_from_buffer_usage(VkBufferUsageFlags usage) DECLSPE
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
;
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
;
struct
wined3d_bo_vk
...
...
@@ -813,4 +814,32 @@ void wined3d_device_vk_destroy_null_views(struct wined3d_device_vk *device_vk,
void
wined3d_device_vk_uav_clear_state_init
(
struct
wined3d_device_vk
*
device_vk
)
DECLSPEC_HIDDEN
;
void
wined3d_device_vk_uav_clear_state_cleanup
(
struct
wined3d_device_vk
*
device_vk
)
DECLSPEC_HIDDEN
;
struct
wined3d_texture_vk
{
struct
wined3d_texture
t
;
struct
wined3d_image_vk
image
;
enum
VkImageLayout
layout
;
uint32_t
bind_mask
;
VkDescriptorImageInfo
default_image_info
;
};
static
inline
struct
wined3d_texture_vk
*
wined3d_texture_vk
(
struct
wined3d_texture
*
texture
)
{
return
CONTAINING_RECORD
(
texture
,
struct
wined3d_texture_vk
,
t
);
}
void
wined3d_texture_vk_barrier
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
,
uint32_t
bind_mask
)
DECLSPEC_HIDDEN
;
const
VkDescriptorImageInfo
*
wined3d_texture_vk_get_default_image_info
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
HRESULT
wined3d_texture_vk_init
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_device
*
device
,
const
struct
wined3d_resource_desc
*
desc
,
unsigned
int
layer_count
,
unsigned
int
level_count
,
uint32_t
flags
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
void
wined3d_texture_vk_make_generic
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
BOOL
wined3d_texture_vk_prepare_texture
(
struct
wined3d_texture_vk
*
texture_vk
,
struct
wined3d_context_vk
*
context_vk
)
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