Commit 56aeb459 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

d3dcompiler: Fill texture fields in D3D11_SHADER_VARIABLE_DESC with default values.

parent e92adb98
......@@ -857,6 +857,12 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_variable_GetDesc(
desc->uFlags = This->flags;
desc->DefaultValue = This->default_value;
/* TODO test and set proper values for texture. */
desc->StartTexture = 0xffffffff;
desc->TextureSize = 0;
desc->StartSampler = 0xffffffff;
desc->SamplerSize = 0;
return S_OK;
}
......
......@@ -1783,13 +1783,10 @@ static void test_reflection_constant_buffer(void)
ok(vdesc.uFlags == pvdesc->uFlags, "Got unexpected uFlags %#x, i %u.\n", vdesc.uFlags, i);
ok(vdesc.DefaultValue == pvdesc->DefaultValue, "Got unexpected DefaultValue %p, i %u.\n",
vdesc.DefaultValue, i);
todo_wine_if(D3D_COMPILER_VERSION)
{
ok(vdesc.StartTexture == 0xffffffff, "Got unexpected StartTexture %#x, i %u.\n", vdesc.StartTexture, i);
ok(!vdesc.TextureSize, "Got unexpected TextureSize %u, i %u.\n", vdesc.TextureSize, i);
ok(vdesc.StartSampler == 0xffffffff, "Got unexpected StartSampler %u, i %u.\n", vdesc.StartSampler, i);
ok(!vdesc.SamplerSize, "Got unexpected SamplerSize %u, i %u.\n", vdesc.SamplerSize, i);
}
ok(vdesc.StartTexture == 0xffffffff, "Got unexpected StartTexture %#x, i %u.\n", vdesc.StartTexture, i);
ok(!vdesc.TextureSize, "Got unexpected TextureSize %u, i %u.\n", vdesc.TextureSize, i);
ok(vdesc.StartSampler == 0xffffffff, "Got unexpected StartSampler %u, i %u.\n", vdesc.StartSampler, i);
ok(!vdesc.SamplerSize, "Got unexpected SamplerSize %u, i %u.\n", vdesc.SamplerSize, i);
if (ref12)
{
......@@ -1798,7 +1795,7 @@ static void test_reflection_constant_buffer(void)
hr = v12->lpVtbl->GetDesc(v12, &vdesc12);
ok(hr == S_OK, "Got unexpected hr %#x, i %u.\n", hr, i);
ok(!strcmp(vdesc12.Name, pvdesc->Name), "Got unexpected name \"%s\", i %u", vdesc12.Name, i);
todo_wine ok(!memcmp(&vdesc12.StartOffset, &vdesc.StartOffset,
ok(!memcmp(&vdesc12.StartOffset, &vdesc.StartOffset,
sizeof(vdesc) - offsetof(D3D11_SHADER_VARIABLE_DESC, StartOffset)),
"D3D11 and D3D12 descs do not match.\n");
}
......
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