博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
IDirect3DVertexBuffer9::Lock和IDirect3DIndexBuffer9::Lock
阅读量:7021 次
发布时间:2019-06-28

本文共 1828 字,大约阅读时间需要 6 分钟。

IDirect3DVertexBuffer9::Lock

Locks a range of vertex data and obtains a pointer to the vertex buffer memory.

HRESULT Lock( UINT OffsetToLock,自缓存的起始点到开锁定的位置的偏移量 UINT SizeToLock,所要锁定的字节数 VOID ** ppbData,指向锁定存储区的起始位置的指针 DWORD Flags改标记描述了锁定方式 );
注:当OffsetToLock和SizeToLock都为0时,锁定整个缓存

Parameters

OffsetToLock
[in] Offset into the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock.
SizeToLock
[in] Size of the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock.
ppbData
[out] VOID* pointer to a memory buffer containing the returned vertex data.
Flags
[in] Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:
  • D3DLOCK_DISCARD
  • D3DLOCK_NO_DIRTY_UPDATE
  • D3DLOCK_NOSYSLOCK
  • D3DLOCK_READONLY
  • D3DLOCK_NOOVERWRITE
For a description of the flags, see D3DLOCK.

 

 

IDirect3DIndexBuffer9::Lock

Locks a range of index data and obtains a pointer to the index buffer memory.

HRESULT Lock( UINT OffsetToLock, UINT SizeToLock, VOID ** ppbData, DWORD Flags );

Parameters

OffsetToLock
[in] Offset into the index data to lock, in bytes. Lock the entire index buffer by specifying 0 for both parameters, SizeToLock and OffsetToLock.
SizeToLock
[in] Size of the index data to lock, in bytes. Lock the entire index buffer by specifying 0 for both parameters, SizeToLock and OffsetToLock.
ppbData
[out] VOID* pointer to a memory buffer containing the returned index data.
Flags
[in] Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:
  • D3DLOCK_DISCARD
  • D3DLOCK_NO_DIRTY_UPDATE
  • D3DLOCK_NOSYSLOCK
  • D3DLOCK_READONLY
  • D3DLOCK_NOOVERWRITE
For a description of the flags, see D3DLOCK.

转载地址:http://ybbxl.baihongyu.com/

你可能感兴趣的文章
java编译器对string常量表达式的处理和优化
查看>>
Java+FlexPaper+swfTools仿文库文档在线阅读
查看>>
try {}里有一个return语句,那么紧跟在这个try后的finally {}里的code会不会被执行,什么时候被执行,在return前还是后?...
查看>>
我的友情链接
查看>>
CSS层叠机制
查看>>
亲测可用NTP服务器
查看>>
Vue+Element UI 使用整理
查看>>
DHCP snooping防范非法的服务器
查看>>
spmi_bus
查看>>
PHP实现多线程
查看>>
linux apache配置虚拟主机
查看>>
面试算法
查看>>
zabbix 3.0 on centos 7
查看>>
接下来几个月的一个计划
查看>>
使用图片方式自定义iOS导航栏navigationItem的backBarButtonItem
查看>>
WIN7 pdf 设置 背景 电脑保护色 浅绿色 保护眼睛
查看>>
redis性能问题排查
查看>>
使用docker-compose定制Javaweb环境
查看>>
Android模拟器快捷键大全
查看>>
我的友情链接
查看>>