Export (0) Print
Expand All

Gather(S,float,int) function

Samples a texture and returns all four components.

Syntax

TemplateType Gather(
  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

The offset 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

This function is supported for the following types of shaders:

VertexHullDomainGeometryPixelCompute
xxxxxx

 

See also

Shader Model 5

 

 

Community Additions

ADD
Show:
© 2014 Microsoft