View Full Version : vertex program and texture mem
03-30-2001, 01:47 PM
Does a vertex program have access to texture memory? I want to use a texture as a displacement map and seems like it would be efficient to load a texture into texture mem then access it from a vertex program. The vertex program would use the texture to calculate the geometry displacement.
03-31-2001, 01:52 PM
I pretty sure the answer is no. (unless you stored the texture data in the constant registrers, but you wouldn't get a very big texture in that, and it would be very ineficcient swapping different textures in and out of it)
You only have access to (apart from pre-loaded constants) vertex attributes. (or vertex data streams, if you wish to send data in that format)
Right - the answer is no. You can't access texture memory from a vertex program.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.