Bewerken

Delen via


D3D10_DDI_SAMPLER_DESC structure (d3d10umddi.h)

The D3D10_DDI_SAMPLER_DESC structure describes a sampler.

Syntax

typedef struct D3D10_DDI_SAMPLER_DESC {
  [in] D3D10_DDI_FILTER               Filter;
  [in] D3D10_DDI_TEXTURE_ADDRESS_MODE AddressU;
  [in] D3D10_DDI_TEXTURE_ADDRESS_MODE AddressV;
  [in] D3D10_DDI_TEXTURE_ADDRESS_MODE AddressW;
  [in] FLOAT                          MipLODBias;
  [in] UINT                           MaxAnisotropy;
  [in] D3D10_DDI_COMPARISON_FUNC      ComparisonFunc;
       FLOAT                          BorderColor[4];
  [in] FLOAT                          MinLOD;
  [in] FLOAT                          MaxLOD;
} D3D10_DDI_SAMPLER_DESC;

Members

[in] Filter

A D3D10_DDI_FILTER-typed value that indicates the filter property for a sampler.

[in] AddressU

A D3D10_DDI_TEXTURE_ADDRESS_MODE-typed value that indicates the texture-address mode for the u coordinate.

[in] AddressV

A D3D10_DDI_TEXTURE_ADDRESS_MODE-typed value that indicates the texture-address mode for the v coordinate.

[in] AddressW

A D3D10_DDI_TEXTURE_ADDRESS_MODE-typed value that indicates the texture-address mode for the w coordinate.

[in] MipLODBias

A single-precision float that affects the level that the driver selects for MIP-map level of detail (LOD).

[in] MaxAnisotropy

The maximum valid value for the anisotropy texture-stage state.

[in] ComparisonFunc

A D3D10_DDI_COMPARISON_FUNC-typed value that indicates the sampler-comparison function to perform.

[in] BorderColor[4]

A four-element array of single-precision float vectors for RGBA, where Red == 0. The border color is used when the D3D10_DDI_TEXTURE_ADDRESS_BORDER value is specified in the AddressU, AddressV, or AddressW member. The float should be converted to the appropriate resource format.

[in] MinLOD

A single-precision float vector for the minimum level of detail (LOD) for the sampler.

[in] MaxLOD

A single-precision float vector for the maximum level of detail (LOD) for the sampler.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3d10umddi.h (include D3d10umddi.h)

See also

CalcPrivateSamplerSize

CreateSampler

D3D10_DDI_COMPARISON_FUNC

D3D10_DDI_FILTER

D3D10_DDI_TEXTURE_ADDRESS_MODE