开发者

DirectX: about DirectX LockRect()

开发者 https://www.devze.com 2023-03-05 17:25 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消