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
e2e77646
Commit
e2e77646
authored
Jan 19, 2021
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Introduce wined3d_context_vk_reference_resource().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4ce1d7f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
+12
-18
wined3d_private.h
dlls/wined3d/wined3d_private.h
+12
-18
No files found.
dlls/wined3d/wined3d_private.h
View file @
e2e77646
...
...
@@ -6043,6 +6043,15 @@ static inline void wined3d_context_vk_reference_texture(const struct wined3d_con
texture_vk
->
command_buffer_id
=
context_vk
->
current_command_buffer
.
id
;
}
static
inline
void
wined3d_context_vk_reference_resource
(
const
struct
wined3d_context_vk
*
context_vk
,
struct
wined3d_resource
*
resource
)
{
if
(
resource
->
type
==
WINED3D_RTYPE_BUFFER
)
wined3d_context_vk_reference_bo
(
context_vk
,
&
wined3d_buffer_vk
(
buffer_from_resource
(
resource
))
->
bo
);
else
wined3d_context_vk_reference_texture
(
context_vk
,
wined3d_texture_vk
(
texture_from_resource
(
resource
)));
}
static
inline
void
wined3d_context_vk_reference_query
(
const
struct
wined3d_context_vk
*
context_vk
,
struct
wined3d_query_vk
*
query_vk
)
{
...
...
@@ -6058,36 +6067,21 @@ static inline void wined3d_context_vk_reference_sampler(const struct wined3d_con
static
inline
void
wined3d_context_vk_reference_rendertarget_view
(
const
struct
wined3d_context_vk
*
context_vk
,
struct
wined3d_rendertarget_view_vk
*
rtv_vk
)
{
struct
wined3d_resource
*
resource
=
rtv_vk
->
v
.
resource
;
if
(
resource
->
type
==
WINED3D_RTYPE_BUFFER
)
wined3d_context_vk_reference_bo
(
context_vk
,
&
wined3d_buffer_vk
(
buffer_from_resource
(
resource
))
->
bo
);
else
wined3d_context_vk_reference_texture
(
context_vk
,
wined3d_texture_vk
(
texture_from_resource
(
resource
)));
wined3d_context_vk_reference_resource
(
context_vk
,
rtv_vk
->
v
.
resource
);
rtv_vk
->
command_buffer_id
=
context_vk
->
current_command_buffer
.
id
;
}
static
inline
void
wined3d_context_vk_reference_shader_resource_view
(
const
struct
wined3d_context_vk
*
context_vk
,
struct
wined3d_shader_resource_view_vk
*
srv_vk
)
{
struct
wined3d_resource
*
resource
=
srv_vk
->
v
.
resource
;
if
(
resource
->
type
==
WINED3D_RTYPE_BUFFER
)
wined3d_context_vk_reference_bo
(
context_vk
,
&
wined3d_buffer_vk
(
buffer_from_resource
(
resource
))
->
bo
);
else
wined3d_context_vk_reference_texture
(
context_vk
,
wined3d_texture_vk
(
texture_from_resource
(
resource
)));
wined3d_context_vk_reference_resource
(
context_vk
,
srv_vk
->
v
.
resource
);
srv_vk
->
view_vk
.
command_buffer_id
=
context_vk
->
current_command_buffer
.
id
;
}
static
inline
void
wined3d_context_vk_reference_unordered_access_view
(
const
struct
wined3d_context_vk
*
context_vk
,
struct
wined3d_unordered_access_view_vk
*
uav_vk
)
{
struct
wined3d_resource
*
resource
=
uav_vk
->
v
.
resource
;
if
(
resource
->
type
==
WINED3D_RTYPE_BUFFER
)
wined3d_context_vk_reference_bo
(
context_vk
,
&
wined3d_buffer_vk
(
buffer_from_resource
(
resource
))
->
bo
);
else
wined3d_context_vk_reference_texture
(
context_vk
,
wined3d_texture_vk
(
texture_from_resource
(
resource
)));
wined3d_context_vk_reference_resource
(
context_vk
,
uav_vk
->
v
.
resource
);
uav_vk
->
view_vk
.
command_buffer_id
=
context_vk
->
current_command_buffer
.
id
;
}
...
...
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