Original Post
This is probably a dumb question but I need to be sure not to make design mistake.
(pseudo code example,notice that it actually work on tnt2)
VB = WRITEONLY | POOL DEFAULT
VB->Lock(&Myvertice, DISCARD)
Myvertice.p.x*=10;
Myvertice.p.Z*=10;
if(Myvertice.p.Y>10.0f)
Myvertice.p.Y=10.0f;
VB->Unlock
-this code READ from vertex buffer or did I miss something ?
so its considering to be bad ?
-does this code also work on hardware T&L ?
-If it read I should more locking it at load time to get the value and maintain my hown array in sysmem that will be modified and memcopied at each lock during runtime ?
I do this cause I load a mesh that I modify each frame the value (moving terrain)
Many Thanks
Dan