ID3DXPatchMesh::GetDisplaceParam method
Gets mesh geometry displacement parameters.
Syntax
HRESULT GetDisplaceParam(
[in] LPDIRECT3DBASETEXTURE9 *Texture,
[in] D3DTEXTUREFILTERTYPE *MinFilter,
[in] D3DTEXTUREFILTERTYPE *MagFilter,
[in] D3DTEXTUREFILTERTYPE *MipFilter,
[in] D3DTEXTUREADDRESS *Wrap,
[in] DWORD *dwLODBias
);
Parameters
-
Texture [in]
-
Type: LPDIRECT3DBASETEXTURE9*
Texture containing the displacement data.
-
MinFilter [in]
-
Type: D3DTEXTUREFILTERTYPE*
Minification level. For more information, see D3DTEXTUREFILTERTYPE.
-
MagFilter [in]
-
Type: D3DTEXTUREFILTERTYPE*
Magnification level. For more information, see D3DTEXTUREFILTERTYPE.
-
MipFilter [in]
-
Type: D3DTEXTUREFILTERTYPE*
Mip filter level. For more information, see D3DTEXTUREFILTERTYPE.
-
Wrap [in]
-
Type: D3DTEXTUREADDRESS*
Texture address wrap mode. For more information, see D3DTEXTUREADDRESS.
-
dwLODBias [in]
-
Type: DWORD*
Level of detail bias value.
Return value
Type: HRESULT
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
Requirement | Value |
---|---|
Header |
|
Library |
|
See also