Jump to content

  • Log In with Google      Sign In   
  • Create Account

Can the GPU modify a ID3D10EffectVectorVariable?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1   Members   -  Reputation: 489

Like
0Likes
Like

Posted 14 December 2012 - 09:28 PM

What i want to do is read all the texels of a 2Dtexture to find a texel that has 1 special value, there is always only one texel or none with this special value, then i want to save its (x,y) texture coordinates to use the texel in other frames.
so my problem is a fast way to save that location.
Rendering to a texture with just 1 texel the (x,y) coordinates, is a solution but i want to know if there are better ways.

#2   Members   -  Reputation: 361

Like
0Likes
Like

Posted 14 December 2012 - 09:58 PM

You could implement it with the Compute Shader (GPU) - that's the fastest way.

from time to time i find time


#3   Members   -  Reputation: 489

Like
0Likes
Like

Posted 14 December 2012 - 10:06 PM

That makes me sad, i can't use compute shader.

#4   Crossbones+   -  Reputation: 575

Like
0Likes
Like

Posted 15 December 2012 - 12:26 AM

You could start with parallel reduction, there is a nice tutorial in glsl here:
http://www.mathematik.tu-dortmund.de/~goeddeke/gpgpu/tutorial2.html




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS