vertex program and texture mem

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.

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.