Skip to content

Latest commit

 

History

History
101 lines (61 loc) · 1.58 KB

sm5-object-texture2d-gatheralpha.md

File metadata and controls

101 lines (61 loc) · 1.58 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
Texture2D::GatherAlpha(S,float,int) function
Returns the alpha components of the four texel values that would be used in a bi-linear filtering operation. | Texture2D::GatherAlpha(S,float,int) function
4c980e06-d768-479e-bee3-1b2541c23038
GatherAlpha function HLSL
apiref
GatherAlpha
NA
reference
05/31/2018

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

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

Syntax

TemplateType GatherAlpha(
  in sampler s,
  in float2 location,
  in int2 offset
);

Parameters

s [in]

Type: sampler

The zero-based sampler index.

location [in]

Type: float2

The sample coordinates (u,v).

offset [in]

Type: int2

An offset that is applied to the texture coordinate 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

Shader Model 5