edgar-mtz-e / slimdx

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

how do I load a precompiled shader using SLIMDX? #448

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hi, I don't know if this is a missing feature from D3D10 or if it's one 
that has or hasn't been implemented in SLIMDX, but I would like to 
precompile all my shaders (using fxc.exe) and load them in at run-time.

At the moment I'm using SlimDX.Direct3D10.Effect.FromString which compiles 
the shader at run-time, and from what I can tell the FromMemory, FromStream 
etc methods also appear to compile too. Is it possible to load a 
precompiled shader?

Thanks,

Richard

Original issue reported on code.google.com by moviekni...@gmail.com on 8 Mar 2009 at 5:29

GoogleCodeExporter commented 9 years ago
Sorry, please disregard, I found the /Gch compile option for fxc.exe and that 
appears 
to have done the trick.

Cheers

Richard

Original comment by moviekni...@gmail.com on 8 Mar 2009 at 6:06

GoogleCodeExporter commented 9 years ago
Closed.

Original comment by promit....@gmail.com on 8 Mar 2009 at 6:08