d3d11/tests: Add a couple of testcases for sRGB SRVs.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7f47234c9b
commit
77276430a1
|
@ -3287,6 +3287,7 @@ static void test_create_shader_resource_view(void)
|
|||
|
||||
#define FMT_UNKNOWN DXGI_FORMAT_UNKNOWN
|
||||
#define RGBA8_UNORM DXGI_FORMAT_R8G8B8A8_UNORM
|
||||
#define RGBA8_SRGB DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
|
||||
#define RGBA8_UINT DXGI_FORMAT_R8G8B8A8_UINT
|
||||
#define RGBA8_TL DXGI_FORMAT_R8G8B8A8_TYPELESS
|
||||
#define DIM_UNKNOWN D3D11_SRV_DIMENSION_UNKNOWN
|
||||
|
@ -3412,6 +3413,8 @@ static void test_create_shader_resource_view(void)
|
|||
{{TEX_2D, 1, 9, RGBA8_UNORM}, {RGBA8_UNORM, CUBE_ARRAY, 0, 1, 0, 2}},
|
||||
{{TEX_2D, 1, 1, RGBA8_UNORM}, {RGBA8_UINT, TEX_2D, 0, 1}},
|
||||
{{TEX_2D, 1, 1, RGBA8_UINT}, {RGBA8_UNORM, TEX_2D, 0, 1}},
|
||||
{{TEX_2D, 1, 1, RGBA8_UNORM}, {RGBA8_SRGB, TEX_2D, 0, 1}},
|
||||
{{TEX_2D, 1, 1, RGBA8_SRGB}, {RGBA8_UNORM, TEX_2D, 0, 1}},
|
||||
{{TEX_3D, 1, 1, RGBA8_UNORM}, {RGBA8_UNORM, TEX_1D, 0, 1}},
|
||||
{{TEX_3D, 1, 1, RGBA8_UNORM}, {RGBA8_UNORM, TEX_1D_ARRAY, 0, 1, 0, 1}},
|
||||
{{TEX_3D, 1, 1, RGBA8_UNORM}, {RGBA8_UNORM, TEX_2D, 0, 1}},
|
||||
|
@ -3431,6 +3434,9 @@ static void test_create_shader_resource_view(void)
|
|||
};
|
||||
#undef FMT_UNKNOWN
|
||||
#undef RGBA8_UNORM
|
||||
#undef RGBA8_SRGB
|
||||
#undef RGBA8_UINT
|
||||
#undef RGBA8_TL
|
||||
#undef DIM_UNKNOWN
|
||||
#undef TEX_1D
|
||||
#undef TEX_1D_ARRAY
|
||||
|
@ -8001,6 +8007,7 @@ static void test_render_target_views(void)
|
|||
#define FMT_UNKNOWN DXGI_FORMAT_UNKNOWN
|
||||
#define RGBA8_UNORM DXGI_FORMAT_R8G8B8A8_UNORM
|
||||
#define RGBA8_SRGB DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
|
||||
#define RGBA8_UINT DXGI_FORMAT_R8G8B8A8_UINT
|
||||
#define RGBA8_TL DXGI_FORMAT_R8G8B8A8_TYPELESS
|
||||
#define DIM_UNKNOWN D3D11_RTV_DIMENSION_UNKNOWN
|
||||
#define TEX_1D D3D11_RTV_DIMENSION_TEXTURE1D
|
||||
|
@ -8062,6 +8069,7 @@ static void test_render_target_views(void)
|
|||
#undef FMT_UNKNOWN
|
||||
#undef RGBA8_UNORM
|
||||
#undef RGBA8_SRGB
|
||||
#undef RGBA8_UINT
|
||||
#undef RGBA8_TL
|
||||
#undef DIM_UNKNOWN
|
||||
#undef TEX_1D
|
||||
|
|
Loading…
Reference in New Issue