Skip to content

Latest commit

 

History

History
101 lines (61 loc) · 1.6 KB

sm5-object-texture2darray-gathergreen.md

File metadata and controls

101 lines (61 loc) · 1.6 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
Texture2DArray::GatherGreen(S,float,int) function
Returns the green components of the four texel values that would be used in a bi-linear filtering operation. | Texture2DArray::GatherGreen(S,float,int) function
bfe9ab9f-64f7-4a50-aa46-2ec6effebce2
GatherGreen function HLSL
apiref
GatherGreen
NA
reference
05/31/2018

Texture2DArray::GatherGreen(S,float,int) function

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

Syntax

TemplateType GatherGreen(
  in sampler s,
  in float3 location,
  in int2 offset
);

Parameters

s [in]

Type: sampler

The zero-based sampler index.

location [in]

Type: float3

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

GatherGreen methods

Shader Model 5