[PATCH 3/5] d3d10/effect: Create shaders with stream output when declaration string is present.

Matteo Bruni matteo.mystral at gmail.com
Thu Sep 2 15:24:31 CDT 2021


On Thu, Sep 2, 2021 at 8:54 PM Nikolay Sivov <nsivov at codeweavers.com> wrote:
>
>
>
> On 9/2/21 5:25 PM, Matteo Bruni wrote:
> > Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
> > ---
> > It just came to my mind that it's possible to have streamout without a
> > geometry shader in d3d10/11 (see
> > e.g. CreateGeometryShaderWithStreamOutput() docs). I don't know if
> > effects support that but worth a look I guess?
> >
> ConstructGSWithSO(NULL, "...") doesn't compile, I can tell as much.
> Given how badly documentation is lacking, it's best to wait for some
> real world examples I suppose.

Sure, that's fine to me.
FWIW I tried this (adding it to the effect from the d3d10 tests):

GeometryShader v_so = ConstructGSWithSO
(
    CompileShader( vs_4_0, VS()), "SV_POSITION.x"
);

FXC seems to accept it just fine and, according to FXC itself, it
actually generates a GeometryShader object with the VS() shader inside
(as a normal vertex shader, vs_4_0 and all) and the streamout
declaration.



More information about the wine-devel mailing list