Commit ba295036 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Introduce WINED3DFMT_FLAG_UNORDERED_ACCESS.

parent 141ff5f4
......@@ -2989,6 +2989,8 @@ static void query_internal_format(struct wined3d_adapter *adapter,
WINED3DFMT_FLAG_VTF, "vertex texture usage");
query_format_flag(gl_info, format, format->internal, GL_FILTER,
WINED3DFMT_FLAG_FILTERING, "filtering");
query_format_flag(gl_info, format, format->internal, GL_SHADER_IMAGE_STORE,
WINED3DFMT_FLAG_UNORDERED_ACCESS, "unordered access");
if (srgb_format || format->srgb_internal != format->internal)
{
......@@ -4183,6 +4185,10 @@ static void init_vulkan_format_info(struct wined3d_format_vk *format,
{
flags |= WINED3DFMT_FLAG_FILTERING;
}
if (texture_flags & VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT)
{
flags |= WINED3DFMT_FLAG_UNORDERED_ACCESS;
}
format->f.flags[WINED3D_GL_RES_TYPE_TEX_1D] |= flags;
format->f.flags[WINED3D_GL_RES_TYPE_TEX_2D] |= flags;
......
......@@ -5560,6 +5560,7 @@ extern enum wined3d_format_id pixelformat_for_depth(DWORD depth) DECLSPEC_HIDDEN
/* WineD3D pixel format flags */
#define WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING 0x00000001
#define WINED3DFMT_FLAG_FILTERING 0x00000002
#define WINED3DFMT_FLAG_UNORDERED_ACCESS 0x00000004
#define WINED3DFMT_FLAG_DEPTH_STENCIL 0x00000008
#define WINED3DFMT_FLAG_RENDERTARGET 0x00000010
#define WINED3DFMT_FLAG_EXTENSION 0x00000020
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment