CMertens / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

Getting the EffectPassDescription for a pass fails if the pass contains only a compute shader. #832

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is due to SlimDX attempting to create a DataStream for the signature, 
however no signature is available(0, NULL in native struct). DataStream does 
not handle zero length streams...

Original issue reported on code.google.com by dbl...@fastmail.fm on 12 Sep 2011 at 7:01

GoogleCodeExporter commented 9 years ago
The workaround I have right now is:

            VertexShader vs = null;
            if (vertexShader.Variable.IsValid)
                vs = vertexShader.Variable.GetVertexShader(vertexShader.Index);

            if (vs != null)
                this.signature = pass.Description.Signature;
            else
                this.signature = null;

However this does not allow me to query members of the pass description.

Original comment by dbl...@fastmail.fm on 12 Sep 2011 at 8:20

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2133.

Original comment by Mike.Popoloski on 13 Sep 2011 at 3:58