Original Post
I want to lock a vertex buffer,and I found in DXSDK document the description was: [To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock.] I don't know why.I thought the parameter [SizeToLock] should be sizeof(vb),and if [SizeToLock] was 0,the size locked would be 0. Could anyone help me,please?