Archived

This topic is now archived and is closed to further replies.

LOU SA

Lock 2 textures at the same time

Recommended Posts

Is it possible, that i can´t lock 2 textures at the same time? How can i compare two textures (especially the alpha channel)? Is it possible to draw the two alpha channels from the to textures into a new one, with something like AND?

Share this post


Link to post
Share on other sites
IIRC, there is nothing against locking several seperate textures at the same time, for situations as you describe where you want to check data from them and/or copy it to a new texture.
Just remember to unlock them all when you''re done.

-Mezz

Share this post


Link to post
Share on other sites
Yes you can lock multiple resources at the same time, all locking does is that it ensures that no other process will interfere with the locked resource for obvious reasons.
By the way if you are locking resources that are residing on the gfx hardware and you read from them, you will incur a big hit over the agp bus.

Share this post


Link to post
Share on other sites