Skip to content

Latest commit

 

History

History
137 lines (80 loc) · 2.74 KB

t2darray-gathergreen-s-float-int2-int2-int2-int2-uint-.md

File metadata and controls

137 lines (80 loc) · 2.74 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
Texture2DArray::GatherGreen(S,float,int2,int2,int2,int2,uint) function
Returns the green components of the four texel values that would be used in a bi-linear filtering operation, along with tile-mapping status. | Texture2DArray::GatherGreen(S,float,int2,int2,int2,int2,uint) function
994320C6-3BE5-40F9-9B9F-1913134DA71A
GatherGreen function HLSL
apiref
GatherGreen
NA
reference
05/31/2018

Texture2DArray::GatherGreen(S,float,int2,int2,int2,int2,uint) function

Returns the green components of the four texel values that would be used in a bi-linear filtering operation, along with tile-mapping status.

Syntax

TemplateType GatherGreen(
  in  SamplerState S,
  in  float3       Location,
  in  int2         Offset1,
  in  int2         Offset2,
  in  int2         Offset3,
  in  int2         Offset4,
  out uint         Status
);

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.

Status [out]

Type: uint

The status of the operation. You can't access the status directly; instead, pass the status to the CheckAccessFullyMapped intrinsic function. CheckAccessFullyMapped returns TRUE if all values from the corresponding Sample, Gather, or Load operation accessed mapped tiles in a tiled resource. If any values were taken from an unmapped tile, CheckAccessFullyMapped returns FALSE.

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

GatherGreen methods