zengqh / slimdx

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

Missing D3DX 10 Functionality #394

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am not sure, but can it be that there is currently no way in SlimDX to 
create a shader from bare HLSL code without the effect framework ? 

( See D3DX Functions D3DXCompileFromFile ) 

I think it should be possible to compile shader code to a ShaderBytecode 
instance, and the create a shader object from it.

Otherwise i volunteer to add that feature.

Original issue reported on code.google.com by Gluber1...@gmail.com on 6 Jan 2009 at 3:36

GoogleCodeExporter commented 9 years ago
If you have implemented it, we will happily take a look at a patch. Otherwise I 
will
try and get to this on or by this weekend.

Original comment by josh.petrie on 6 Jan 2009 at 5:44

GoogleCodeExporter commented 9 years ago
I have not implemented it yet, since i am familiarizing myself with the SlimDX 
Code 
Style and its conventions, so it comes down to who has more time, and who will 
have 
it implemented faster :-_)

Original comment by Gluber1...@gmail.com on 6 Jan 2009 at 6:23

GoogleCodeExporter commented 9 years ago
I've (finally) started working on this, but in doing so I'm finding myself 
needing 
more information about how you actually want to use this functionality. There 
is 
currently nothing in SlimDX.Direct3D10 that will allow you to pass a 
ShaderbyteCode 
or one of the PixelShader/VertexShader/GeometryShader objects as in input 
(excepting 
InputLayout). 

What kind of overall usage scenario are going for here? I don't think just 
implementing a wrapper around D3DX10CompileFromFile is going to be enough to be 
useful. It will just provide you with a DataStream containing the compiled 
shader 
bytes with nothing else useful to do.

Original comment by josh.petrie on 1 Feb 2009 at 11:33

GoogleCodeExporter commented 9 years ago
Pinging since I assume the OP is the other user with the issue starred. Any 
input on
this? Otherwise I will probably close this unresolved before the next release.

Original comment by josh.petrie on 26 Feb 2009 at 5:22

GoogleCodeExporter commented 9 years ago
March release is looming, and I don't believe there's anything worth doing here.

Original comment by josh.petrie on 9 Mar 2009 at 4:16