ID3DXPatchMesh::GetDisplaceParam

Gets mesh geometry displacement parameters.

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 Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Remarks

Displacement maps can only be 2D textures. Mipmapping is ignored for nonadaptive tessellation.

Requirements

Header: Declared in D3dx9mesh.h.