[PATCH v2 3/6] wined3d: Allow wined3d_stream_info_from_declaration() to include inputs with no buffer set.

Henri Verbeet hverbeet at gmail.com
Fri Apr 16 09:01:40 CDT 2021


On Fri, 16 Apr 2021 at 10:45, Jan Sikorski <jsikorski at codeweavers.com> wrote:
>  /* Context activation is done by the caller. */
>  void wined3d_stream_info_from_declaration(struct wined3d_stream_info *stream_info,
> -        const struct wined3d_state *state, const struct wined3d_d3d_info *d3d_info)
> +        const struct wined3d_state *state, const struct wined3d_d3d_info *d3d_info, bool require_buffer)
>  {
>      /* We need to deal with frequency data! */
>      struct wined3d_vertex_declaration *declaration = state->vertex_declaration;
> @@ -182,7 +182,7 @@ void wined3d_stream_info_from_declaration(struct wined3d_stream_info *stream_inf
>          TRACE("%p Element %p (%u of %u).\n", declaration->elements,
>                  element, i + 1, declaration->element_count);
>
> -        if (!stream->buffer)
> +        if (!stream->buffer && require_buffer)
>              continue;

Would it make sense to drop the "require_buffer" argument and just
always behave as if it's false?



More information about the wine-devel mailing list