• Advertisement
Sign in to follow this  

Using SharpDX.Toolkit.Effect classes as shader replacement

This topic is 1258 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

SharpDX has highlevel effect API to work with shaders to replace HLSL in C++ DX version.

 

So, I want to ask someone to post or provide link for at least 3-4 Effect samples which aplies to D3D and D2D. Or just write it here if you can.

I want to see:

 - how to set/get values to/from shader?

 - how to write shader code and compile it?

 - how to create make different simple effects?

 

Could someone be so kind to help me with this? I am only start to learn SharpDX. I see sharpDX samples already, but there is almost nothing about effects API. Just on basic level to display something. I am interested in a little bit more complex examples with Direct3D.

Share this post


Link to post
Share on other sites
Advertisement

Thanks for real help to all *sarcasm*

 

What did you expect? Few people are going to sit down and write multiple samples just for you without even knowing what parts of the API you're struggling with.

 

The toolkit folder in the samples repository for SharpDX contains multiple samples that use custom effects. For example: CustomEffect, SpriteBatchCustomEffect and StreamOutParticles. What part of the API do you need more info on?

Share this post


Link to post
Share on other sites

 

Thanks for real help to all *sarcasm*

 

What did you expect? Few people are going to sit down and write multiple samples just for you without even knowing what parts of the API you're struggling with.

 

The toolkit folder in the samples repository for SharpDX contains multiple samples that use custom effects. For example: CustomEffect, SpriteBatchCustomEffect and StreamOutParticles. What part of the API do you need more info on?

 

 

All that effects are D2D. As I wrote, there is no D3D Effects even in samples. So, exactly about this part I wrote.

Why you react so painfully? You don`t like sarcasm? I already wrote that I found what I want (more or less). and BTW no need to wrote samples just for me - this would be helpful for lot of people, but if you think that current situation with samples is ok - you wrong.

DX 11 is 5 years old and even now there is not enought normal tutorials for learning it fully. Only 2-3 books and 20-25 samples, which describes only small part of DX possibilities (not fully).

 

So, rather than complain, would be better to help remedy the situation and if you don`t want to do this, just don`t write "clever" posts.

Share this post


Link to post
Share on other sites


All that effects are D2D. As I wrote, there is no D3D Effects even in samples.

 

All three of the samples I listed use D3D11 - because that's what the SharpDX Toolkit uses.

I did try to remedy the situation. I wrote the StreamOutParticles sample last year because I couldn't find a sample for how to use the Stream-Output Stage with the Effects framework.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement