Skip to main content
GameDev.net gamedev.net
🔒 Locked

Can the GPU modify a ID3D10EffectVectorVariable?

Started by lomateron Dec 15, 2012 at 3:28 AM 2 replies 950+ views
Original Post
lomateron
lomateron
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.
~Helgon
~Helgon
You could implement it with the Compute Shader (GPU) - that's the fastest way.
from time to time i find time
lomateron
lomateron
That makes me sad, i can't use compute shader.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.