d3dcompiler/tests: Add a couple of extra tests for struct declaration syntax.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f26a58a61b
commit
549fa04cbd
|
@ -968,7 +968,7 @@ static void test_constant_table(void)
|
||||||
{
|
{
|
||||||
static const char *source =
|
static const char *source =
|
||||||
"typedef float3x3 matrix_t;\n"
|
"typedef float3x3 matrix_t;\n"
|
||||||
"struct matrix_record { float3x3 a; };\n"
|
"struct matrix_record { float3x3 a; } dummy;\n"
|
||||||
"uniform float4 a;\n"
|
"uniform float4 a;\n"
|
||||||
"uniform float b;\n"
|
"uniform float b;\n"
|
||||||
"uniform float unused;\n"
|
"uniform float unused;\n"
|
||||||
|
@ -1193,6 +1193,12 @@ static void test_fail(void)
|
||||||
" o = float4(1, 1, 1, 1);\n"
|
" o = float4(1, 1, 1, 1);\n"
|
||||||
" return float4(0, 0, 0, 0);\n"
|
" return float4(0, 0, 0, 0);\n"
|
||||||
"}",
|
"}",
|
||||||
|
|
||||||
|
"struct {float4 a;};\n"
|
||||||
|
"float4 test() : SV_TARGET\n"
|
||||||
|
"{\n"
|
||||||
|
" return float4(0, 0, 0, 0);\n"
|
||||||
|
"}",
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *targets[] = {"ps_2_0", "ps_3_0", "ps_4_0"};
|
static const char *targets[] = {"ps_2_0", "ps_3_0", "ps_4_0"};
|
||||||
|
|
Loading…
Reference in New Issue