Can it be done using something like this?
Code: Select all
void* ptr = buf->lock(...);
memset(ptr,0,textureWidth * textureHeight * sizeof(NotSure));
buf->unlock();

Code: Select all
void* ptr = buf->lock(...);
memset(ptr,0,textureWidth * textureHeight * sizeof(NotSure));
buf->unlock();