?/TD> |
Microsoft DirectX 9.0 |
Gets mesh geometry displacement parameters.
Syntax
HRESULT GetDisplaceParam(
LPDIRECT3DBASETEXTURE9* Texture, D3DTEXTUREFILTERTYPE* MinFilter, D3DTEXTUREFILTERTYPE* MagFilter, D3DTEXTUREFILTERTYPE* MipFilter, D3DTEXTUREADDRESS* Wrap, DWORD* dwLODBias );
Parameters
- Texture
- [in] Texture containing the displacement data.
- MinFilter
- [in] Minification level. For more information, see D3DTEXTUREFILTERTYPE.
- MagFilter
- [in] Magnification level. For more information, see D3DTEXTUREFILTERTYPE.
- MipFilter
- [in] Mip filter level. For more information, see D3DTEXTUREFILTERTYPE.
- Wrap
- [in] Texture address wrap mode. For more information, see D3DTEXTUREADDRESS.
- dwLODBias
- [in] Level of detail bias value.
Return Value
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft?Direct3D?could not allocate sufficient memory to complete the call.
Remarks
Displacement maps can only be 2-D textures. Mipmapping is ignored for nonadaptive tessellation.