Jump to content
  • Advertisement

Archived

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

LOU SA

Lock 2 textures at the same time

This topic is 5200 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

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!