28 Feb
2019
28 Feb
'19
12:22 p.m.
On Wed, 27 Feb 2019 at 21:01, Matteo Bruni <mbruni(a)codeweavers.com> wrote:
+ decl = wined3d_vertex_declaration_get_parent(wined3d_decl); + if (!decl->elements) + { + map = 1; + } Can that happen in d3d9?
+ else + { + map = 0; + if (FAILED(convert_to_wined3d_declaration(decl->elements, &elements, &count))) + return; + for (i = 0; i < count; ++i) + map |= 1u << elements[i].input_slot; + heap_free(elements); + } You don't need to convert the elements for that, the d3d9 elements have a "Stream" field too. If you wanted to be efficient about it, you could create the declaration's stream map on declaration creation.