Skip to content

Latest commit

 

History

History
142 lines (102 loc) · 4.67 KB

nf-d3d10-id3d10device-generatemips.md

File metadata and controls

142 lines (102 loc) · 4.67 KB
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:d3d10.ID3D10Device.GenerateMips
ID3D10Device::GenerateMips (d3d10.h)
Generates mipmaps for the given shader resource. (ID3D10Device.GenerateMips)
46ad9ad3-37a7-33c9-7829-0dbf6d4b348a
GenerateMips
GenerateMips method [Direct3D 10]
GenerateMips method [Direct3D 10]
ID3D10Device interface
ID3D10Device interface [Direct3D 10]
GenerateMips method
ID3D10Device.GenerateMips
ID3D10Device::GenerateMips
d3d10/ID3D10Device::GenerateMips
direct3d10.id3d10device_generatemips
direct3d10\id3d10device_generatemips.htm
direct3d10
VS|directx_sdk|~\id3d10device_generatemips.htm
12/05/2018
46ad9ad3-37a7-33c9-7829-0dbf6d4b348a, GenerateMips, GenerateMips method [Direct3D 10], GenerateMips method [Direct3D 10],ID3D10Device interface, ID3D10Device interface [Direct3D 10],GenerateMips method, ID3D10Device.GenerateMips, ID3D10Device::GenerateMips, d3d10/ID3D10Device::GenerateMips, direct3d10.id3d10device_generatemips
d3d10.h
Windows
D3D10.lib
Windows
19H1
ID3D10Device::GenerateMips
d3d10/ID3D10Device::GenerateMips
c++
APIRef
kbSyntax
COM
D3D10.lib
D3D10.dll
ID3D10Device.GenerateMips

ID3D10Device::GenerateMips

-description

Generates mipmaps for the given shader resource.

-parameters

-param pShaderResourceView [in]

Type: ID3D10ShaderResourceView*

A pointer to an ID3D10ShaderResourceView. The mipmaps will be generated for this shader resource.

-remarks

GenerateMips may be called on any ID3D10ShaderResourceView in order to generate the lower mipmap levels. GenerateMips uses the largest mipmap level of the view to recursively generate the lower levels of the mip, stopping with the smallest level specified by the view. If the base resource was not created with D3D10_BIND_RENDER_TARGET and D3D10_RESOURCE_MISC_GENERATE_MIPS, this call has no effect.

Video adapters that support feature level 9.1 and higher support generating mipmaps if you use any of these formats:


DXGI_FORMAT_R8G8B8A8_UNORM
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
DXGI_FORMAT_B5G6R5_UNORM
DXGI_FORMAT_B8G8R8A8_UNORM
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB
DXGI_FORMAT_B8G8R8X8_UNORM
DXGI_FORMAT_B8G8R8X8_UNORM_SRGB

Video adapters that support feature level 9.2 and higher support generating mipmaps if you use any of these formats in addition to any of the formats for feature level 9.1:


DXGI_FORMAT_R16G16B16A16_FLOAT
DXGI_FORMAT_R16G16B16A16_UNORM
DXGI_FORMAT_R16G16_FLOAT
DXGI_FORMAT_R16G16_UNORM
DXGI_FORMAT_R32_FLOAT

Video adapters that support feature level 9.3 and higher support generating mipmaps if you use any of these formats in addition to any of the formats for feature levels 9.1 and 9.2:


DXGI_FORMAT_R32G32B32A32_FLOAT
DXGI_FORMAT_B4G4R4A4 (optional)

Video adapters that support feature level 10 and higher support generating mipmaps if you use any of these formats in addition to any of the formats for feature levels 9.1, 9.2, and 9.3:


DXGI_FORMAT_R32G32B32_FLOAT (optional)
DXGI_FORMAT_R16G16B16A16_SNORM
DXGI_FORMAT_R32G32_FLOAT
DXGI_FORMAT_R10G10B10A2_UNORM
DXGI_FORMAT_R11G11B10_FLOAT
DXGI_FORMAT_R8G8B8A8_SNORM
DXGI_FORMAT_R16G16_SNORM
DXGI_FORMAT_R8G8_UNORM
DXGI_FORMAT_R8G8_SNORM
DXGI_FORMAT_R16_FLOAT
DXGI_FORMAT_R16_UNORM
DXGI_FORMAT_R16_SNORM
DXGI_FORMAT_R8_UNORM
DXGI_FORMAT_R8_SNORM
DXGI_FORMAT_A8_UNORM
DXGI_FORMAT_B5G5R5A1_UNORM (optional)

For all other unsupported formats, this method will silently fail.

-see-also

DXGI_FORMAT

ID3D10Device Interface