title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Texture1DArray::Sample(S,float,int,float) function |
Samples a texture with an optional value to clamp sample level-of-detail (LOD) values to. | Texture1DArray::Sample(S,float,int,float) function |
3A965EEE-FCA3-4DD8-87D2-56679DFF5D3A |
|
|
|
|
reference |
05/31/2018 |
Samples a texture with an optional value to clamp sample level-of-detail (LOD) values to.
DXGI_FORMAT Sample(
in SamplerState S,
in float Location,
in int Offset,
in float Clamp
);
-
S [in]
-
Type: SamplerState
A Sampler state. This is an object declared in an effect file that contains state assignments.
-
Location [in]
-
Type: float
The texture coordinates. The argument type is dependent on the texture-object type.
Texture-Object Type Parameter Type Texture1D float Texture1DArray, Texture2D float2 Texture2DArray, Texture3D, TextureCube float3 TextureCubeArray float4 -
Offset [in]
-
Type: int
An optional texture coordinate offset, which can be used for any texture-object type; the offset is applied to the location before sampling. Use an offset only at an integer miplevel; otherwise, you may get results that do not translate well to hardware. The argument type is dependent on the texture-object type. For more info, see Applying Integer Offsets.
Texture-Object Type Parameter Type Texture1D, Texture1DArray int Texture2D, Texture2DArray int2 Texture3D int3 TextureCube, TextureCubeArray not supported -
Clamp [in]
-
Type: float
An optional value to clamp sample LOD values to. For example, if you pass 2.0f for the clamp value, you ensure that no individual sample accesses a mip level less than 2.0f.
Type: DXGI_FORMAT
The texture format, which is one of the typed values listed in DXGI_FORMAT.