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
07283df7
Commit
07283df7
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_rendertarget_view_vk to wined3d_vk.h.
parent
97548eb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
47 deletions
+47
-47
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-47
wined3d_vk.h
dlls/wined3d/wined3d_vk.h
+45
-0
No files found.
dlls/wined3d/wined3d_private.h
View file @
07283df7
...
...
@@ -4775,17 +4775,6 @@ HRESULT wined3d_buffer_gl_init(struct wined3d_buffer_gl *buffer_gl, struct wined
const
struct
wined3d_buffer_desc
*
desc
,
const
struct
wined3d_sub_resource_data
*
data
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
#include "wined3d_vk.h"
static
inline
void
wined3d_resource_vk_barrier
(
struct
wined3d_resource
*
resource
,
struct
wined3d_context_vk
*
context_vk
,
uint32_t
bind_mask
)
{
if
(
resource
->
type
==
WINED3D_RTYPE_BUFFER
)
wined3d_buffer_vk_barrier
(
wined3d_buffer_vk
(
buffer_from_resource
(
resource
)),
context_vk
,
bind_mask
);
else
wined3d_texture_vk_barrier
(
wined3d_texture_vk
(
texture_from_resource
(
resource
)),
context_vk
,
bind_mask
);
}
struct
wined3d_rendertarget_view
{
LONG
refcount
;
...
...
@@ -4842,42 +4831,6 @@ HRESULT wined3d_rendertarget_view_gl_init(struct wined3d_rendertarget_view_gl *v
const
struct
wined3d_view_desc
*
desc
,
struct
wined3d_resource
*
resource
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
struct
wined3d_rendertarget_view_vk
{
struct
wined3d_rendertarget_view
v
;
VkImageView
vk_image_view
;
uint64_t
command_buffer_id
;
};
static
inline
struct
wined3d_rendertarget_view_vk
*
wined3d_rendertarget_view_vk
(
struct
wined3d_rendertarget_view
*
view
)
{
return
CONTAINING_RECORD
(
view
,
struct
wined3d_rendertarget_view_vk
,
v
);
}
static
inline
void
wined3d_rendertarget_view_vk_barrier
(
struct
wined3d_rendertarget_view_vk
*
rtv_vk
,
struct
wined3d_context_vk
*
context_vk
,
uint32_t
bind_mask
)
{
wined3d_resource_vk_barrier
(
rtv_vk
->
v
.
resource
,
context_vk
,
bind_mask
);
}
static
inline
VkImageView
wined3d_rendertarget_view_vk_get_image_view
(
struct
wined3d_rendertarget_view_vk
*
rtv_vk
,
struct
wined3d_context_vk
*
context_vk
)
{
struct
wined3d_texture_vk
*
texture_vk
;
if
(
rtv_vk
->
vk_image_view
)
return
rtv_vk
->
vk_image_view
;
texture_vk
=
wined3d_texture_vk
(
wined3d_texture_from_resource
(
rtv_vk
->
v
.
resource
));
return
wined3d_texture_vk_get_default_image_info
(
texture_vk
,
context_vk
)
->
imageView
;
}
HRESULT
wined3d_rendertarget_view_vk_init
(
struct
wined3d_rendertarget_view_vk
*
view_vk
,
const
struct
wined3d_view_desc
*
desc
,
struct
wined3d_resource
*
resource
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
struct
wined3d_shader_resource_view
{
LONG
refcount
;
...
...
@@ -4916,6 +4869,8 @@ HRESULT wined3d_shader_resource_view_gl_init(struct wined3d_shader_resource_view
void
wined3d_shader_resource_view_gl_update
(
struct
wined3d_shader_resource_view_gl
*
srv_gl
,
struct
wined3d_context_gl
*
context_gl
)
DECLSPEC_HIDDEN
;
#include "wined3d_vk.h"
struct
wined3d_view_vk
{
struct
wined3d_bo_user
bo_user
;
...
...
dlls/wined3d/wined3d_vk.h
View file @
07283df7
...
...
@@ -880,4 +880,49 @@ HRESULT wined3d_buffer_vk_init(struct wined3d_buffer_vk *buffer_vk, struct wined
const
struct
wined3d_buffer_desc
*
desc
,
const
struct
wined3d_sub_resource_data
*
data
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
static
inline
void
wined3d_resource_vk_barrier
(
struct
wined3d_resource
*
resource
,
struct
wined3d_context_vk
*
context_vk
,
uint32_t
bind_mask
)
{
if
(
resource
->
type
==
WINED3D_RTYPE_BUFFER
)
wined3d_buffer_vk_barrier
(
wined3d_buffer_vk
(
buffer_from_resource
(
resource
)),
context_vk
,
bind_mask
);
else
wined3d_texture_vk_barrier
(
wined3d_texture_vk
(
texture_from_resource
(
resource
)),
context_vk
,
bind_mask
);
}
struct
wined3d_rendertarget_view_vk
{
struct
wined3d_rendertarget_view
v
;
VkImageView
vk_image_view
;
uint64_t
command_buffer_id
;
};
static
inline
struct
wined3d_rendertarget_view_vk
*
wined3d_rendertarget_view_vk
(
struct
wined3d_rendertarget_view
*
view
)
{
return
CONTAINING_RECORD
(
view
,
struct
wined3d_rendertarget_view_vk
,
v
);
}
static
inline
void
wined3d_rendertarget_view_vk_barrier
(
struct
wined3d_rendertarget_view_vk
*
rtv_vk
,
struct
wined3d_context_vk
*
context_vk
,
uint32_t
bind_mask
)
{
wined3d_resource_vk_barrier
(
rtv_vk
->
v
.
resource
,
context_vk
,
bind_mask
);
}
static
inline
VkImageView
wined3d_rendertarget_view_vk_get_image_view
(
struct
wined3d_rendertarget_view_vk
*
rtv_vk
,
struct
wined3d_context_vk
*
context_vk
)
{
struct
wined3d_texture_vk
*
texture_vk
;
if
(
rtv_vk
->
vk_image_view
)
return
rtv_vk
->
vk_image_view
;
texture_vk
=
wined3d_texture_vk
(
wined3d_texture_from_resource
(
rtv_vk
->
v
.
resource
));
return
wined3d_texture_vk_get_default_image_info
(
texture_vk
,
context_vk
)
->
imageView
;
}
HRESULT
wined3d_rendertarget_view_vk_init
(
struct
wined3d_rendertarget_view_vk
*
view_vk
,
const
struct
wined3d_view_desc
*
desc
,
struct
wined3d_resource
*
resource
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
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