how to get shaders run in slimdx.d3d9?

55 views
Skip to first unread message

Matt Sun

unread,
Sep 27, 2011, 10:27:25 PM9/27/11
to slimdx-devel
Hi!

I'm just starting using SlimDX & I'm puzzled with the problem.
The fact is that I have FX files, I just want to get my shaders
running. (BTW,I must use SlimDX.D3D9 in my project)
What I know is that I should add this into my project:

Effect iniEffect = Effect.FromFile(LocalDevice, @"effect
\SimpleBloom.fx", ShaderFlags.None);

but after that, how can I run the shaders?

xnaguide.com

unread,
Sep 28, 2011, 11:14:36 AM9/28/11
to slimdx-devel
Hi Met Sun
I am new on SlimDx but you seem better than me :) I am
trying to run the 3 tutorials given on slimdx.org but they don't work
on 2010 IDE showing an error "Mixed mode assembly is built against
version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0
runtime without additional configuration information.". Can you tell
me how can I get rid of this. Can you just give me a small code that
can show a triangle or anything on screen so that I can get basic Idea
how things work out here.

regards

Mike Popoloski

unread,
Sep 28, 2011, 1:11:10 PM9/28/11
to slimdx...@googlegroups.com
@Matt Sun: Rendering using effects is covered in an uncountably large number of places elsewhere on the internet, and isn't something we can help you with over a mailing list. It's basic information that you could find via Google, our examples, the DirectX SDK tutorials, etc.
 
@xnaguide: As the error message says, you're trying to use the .NET 2.0 version of the library in your .NET 4 project. Use the .NET 4 version of the library to fix the problem.

 

--
You received this message because you are subscribed to the Google Groups "slimdx-devel" group.
To post to this group, send email to slimdx...@googlegroups.com.
To unsubscribe from this group, send email to slimdx-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/slimdx-devel?hl=en.


Reply all
Reply to author
Forward
0 new messages