UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:d3d9.IDirect3DCubeTexture9.LockRect |
IDirect3DCubeTexture9::LockRect (d3d9.h) |
The IDirect3DCubeTexture9::LockRect method (d3d9.h) locks a rectangle on a cube texture resource. |
|
direct3d9\idirect3dcubetexture9__lockrect.htm |
direct3d9 |
VS|directx_sdk|~\idirect3dcubetexture9__lockrect.htm |
08/10/2022 |
1f5618d3-63b7-c0fc-9b6e-44b99c39650c, IDirect3DCubeTexture9 interface [Direct3D 9],LockRect method, IDirect3DCubeTexture9.LockRect, IDirect3DCubeTexture9::LockRect, LockRect, LockRect method [Direct3D 9], LockRect method [Direct3D 9],IDirect3DCubeTexture9 interface, d3d9helper/IDirect3DCubeTexture9::LockRect, direct3d9.idirect3dcubetexture9__lockrect |
d3d9.h |
D3D9.h |
Windows |
D3D9.lib |
Windows |
19H1 |
|
|
|
|
|
|
Locks a rectangle on a cube texture resource.
Type: D3DCUBEMAP_FACES
Member of the D3DCUBEMAP_FACES enumerated type, identifying a cube map face.
Type: UINT
Specifies a level of a mipmapped cube texture.
Type: D3DLOCKED_RECT*
Pointer to a D3DLOCKED_RECT structure, describing the region to lock.
Type: const RECT*
Pointer to a rectangle to lock. Specified by a pointer to a RECT structure. Specifying NULL for this parameter expands the dirty region to cover the entire cube texture.
Type: DWORD
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
Type: HRESULT
If the method succeeds, the return value is D3D_OK. D3DERR_INVALIDCALL is returned if one or more of the arguments is invalid.
For performance reasons, dirty regions are only recorded for level zero of a texture. Dirty regions are automatically recorded when IDirect3DCubeTexture9::LockRect is called without D3DLOCK_NO_DIRTY_UPDATE or D3DLOCK_READONLY. See IDirect3DDevice9::UpdateTexture for more information.
Cube textures created with D3DPOOL_DEFAULT are not lockable. Cube textures created in video memory are lockable when created with USAGE_DYNAMIC.
The only lockable format for a depth-stencil texture is D3DFMT_D16_LOCKABLE.
IDirect3DCubeTexture9::AddDirtyRect