Skip to content

Latest commit

 

History

History
131 lines (74 loc) · 2.07 KB

t2d-gatheralpha-s-float-int2-int2-int2-int2-.md

File metadata and controls

131 lines (74 loc) · 2.07 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
Texture2D::GatherAlpha(S,float,int2,int2,int2,int2) function
Returns the alpha components of the four texel values that would be used in a bi-linear filtering operation. | Texture2D::GatherAlpha(S,float,int2,int2,int2,int2) function
925A5085-33CB-4DFC-B4E3-1ADA5892C13A
GatherAlpha function HLSL
apiref
GatherAlpha
NA
reference
05/31/2018

Texture2D::GatherAlpha(S,float,int2,int2,int2,int2) function

Returns the alpha components of the four texel values that would be used in a bi-linear filtering operation.

Syntax

TemplateType GatherAlpha(
  in SamplerState S,
  in float2       Location,
  in int2         Offset1,
  in int2         Offset2,
  in int2         Offset3,
  in int2         Offset4
);

Parameters

S [in]

Type: SamplerState

The zero-based sampler index.

Location [in]

Type: float

The sample coordinates (u,v).

Offset1 [in]

Type: int2

The first offset component applied to the texture coordinates before sampling.

Offset2 [in]

Type: int2

The second offset component applied to the texture coordinates before sampling.

Offset3 [in]

Type: int2

The third offset component applied to the texture coordinates before sampling.

Offset4 [in]

Type: int2

The fourth offset component applied to the texture coordinates before sampling.

Return value

Type: TemplateType

A four-component value whose type is the same as the template type.

Remarks

The texture samples can be used for bilinear interpolation.

This function is supported for the following types of shaders:

Vertex Hull Domain Geometry Pixel Compute
x x x x x x

See also

GatherAlpha methods