PDA

View Full Version : vertex program and texture mem



stecher
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.

Nutty
03-31-2001, 01:52 PM
Hi,
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)

Nutty

cass
03-31-2001, 03:05 PM
Right - the answer is no. You can't access texture memory from a vertex program.