wined3d: Move struct wined3d_unordered_access_view_vk to wined3d_vk.h.
This commit is contained in:
parent
f74e119217
commit
63df7fc677
2 changed files with 31 additions and 31 deletions
|
@ -4913,37 +4913,6 @@ HRESULT wined3d_unordered_access_view_gl_init(struct wined3d_unordered_access_vi
|
|||
void wined3d_unordered_access_view_gl_update(struct wined3d_unordered_access_view_gl *uav_gl,
|
||||
struct wined3d_context_gl *context_gl) DECLSPEC_HIDDEN;
|
||||
|
||||
#include "wined3d_vk.h"
|
||||
|
||||
struct wined3d_unordered_access_view_vk
|
||||
{
|
||||
struct wined3d_unordered_access_view v;
|
||||
struct wined3d_view_vk view_vk;
|
||||
|
||||
VkBufferView vk_counter_view;
|
||||
struct wined3d_bo_vk counter_bo;
|
||||
};
|
||||
|
||||
static inline struct wined3d_unordered_access_view_vk *wined3d_unordered_access_view_vk(
|
||||
struct wined3d_unordered_access_view *view)
|
||||
{
|
||||
return CONTAINING_RECORD(view, struct wined3d_unordered_access_view_vk, v);
|
||||
}
|
||||
|
||||
static inline void wined3d_unordered_access_view_vk_barrier(struct wined3d_unordered_access_view_vk *uav_vk,
|
||||
struct wined3d_context_vk *context_vk, uint32_t bind_mask)
|
||||
{
|
||||
wined3d_resource_vk_barrier(uav_vk->v.resource, context_vk, bind_mask);
|
||||
}
|
||||
|
||||
void wined3d_unordered_access_view_vk_clear(struct wined3d_unordered_access_view_vk *view_vk,
|
||||
const struct wined3d_uvec4 *clear_value, struct wined3d_context_vk *context_vk, bool fp) DECLSPEC_HIDDEN;
|
||||
HRESULT wined3d_unordered_access_view_vk_init(struct wined3d_unordered_access_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;
|
||||
void wined3d_unordered_access_view_vk_update(struct wined3d_unordered_access_view_vk *view_vk,
|
||||
struct wined3d_context_vk *context_vk) DECLSPEC_HIDDEN;
|
||||
|
||||
struct wined3d_swapchain_state
|
||||
{
|
||||
struct wined3d *wined3d;
|
||||
|
@ -5026,6 +4995,8 @@ HRESULT wined3d_swapchain_gl_init(struct wined3d_swapchain_gl *swapchain_gl,
|
|||
struct wined3d_swapchain_state_parent *state_parent, void *parent,
|
||||
const struct wined3d_parent_ops *parent_ops) DECLSPEC_HIDDEN;
|
||||
|
||||
#include "wined3d_vk.h"
|
||||
|
||||
struct wined3d_swapchain_vk
|
||||
{
|
||||
struct wined3d_swapchain s;
|
||||
|
|
|
@ -964,4 +964,33 @@ void wined3d_shader_resource_view_vk_update_buffer(struct wined3d_shader_resourc
|
|||
void wined3d_shader_resource_view_vk_update_layout(struct wined3d_shader_resource_view_vk *srv_vk,
|
||||
VkImageLayout layout) DECLSPEC_HIDDEN;
|
||||
|
||||
struct wined3d_unordered_access_view_vk
|
||||
{
|
||||
struct wined3d_unordered_access_view v;
|
||||
struct wined3d_view_vk view_vk;
|
||||
|
||||
VkBufferView vk_counter_view;
|
||||
struct wined3d_bo_vk counter_bo;
|
||||
};
|
||||
|
||||
static inline struct wined3d_unordered_access_view_vk *wined3d_unordered_access_view_vk(
|
||||
struct wined3d_unordered_access_view *view)
|
||||
{
|
||||
return CONTAINING_RECORD(view, struct wined3d_unordered_access_view_vk, v);
|
||||
}
|
||||
|
||||
static inline void wined3d_unordered_access_view_vk_barrier(struct wined3d_unordered_access_view_vk *uav_vk,
|
||||
struct wined3d_context_vk *context_vk, uint32_t bind_mask)
|
||||
{
|
||||
wined3d_resource_vk_barrier(uav_vk->v.resource, context_vk, bind_mask);
|
||||
}
|
||||
|
||||
void wined3d_unordered_access_view_vk_clear(struct wined3d_unordered_access_view_vk *view_vk,
|
||||
const struct wined3d_uvec4 *clear_value, struct wined3d_context_vk *context_vk, bool fp) DECLSPEC_HIDDEN;
|
||||
HRESULT wined3d_unordered_access_view_vk_init(struct wined3d_unordered_access_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;
|
||||
void wined3d_unordered_access_view_vk_update(struct wined3d_unordered_access_view_vk *view_vk,
|
||||
struct wined3d_context_vk *context_vk) DECLSPEC_HIDDEN;
|
||||
|
||||
#endif /* __WINE_WINED3D_VK */
|
||||
|
|
Loading…
Add table
Reference in a new issue