I am new to directx, and I am trying to un开发者_开发技巧derstand why do we need to lock surface before we can manipulate it? Can anyone help me explain?
You have to Lock
surfaces and buffers in order to tell the GPU, that you are manipulating these resources. These are necessary to syncronize the GPU and the program running on the CPU.
精彩评论