TEX1DARRAY(3Cg)

NAME
tex1DARRAY - performs a texture lookup in a given sampler array may use pre computed derivatives and, in some cases, perform a shadow comparison.

SYNOPSIS
  float4 tex1DARRAY(sampler1DARRAY samp, float2 s)
  float4 tex1DARRAY(sampler1DARRAY samp, float2 s, int texelOff)
  float4 tex1DARRAY(sampler1DARRAY samp, float3 s)
  float4 tex1DARRAY(sampler1DARRAY samp, float3 s, int texelOff)

  float4 tex1DARRAY(sampler1DARRAY samp, float2 s, float dx, float dy)
  float4 tex1DARRAY(sampler1DARRAY samp, float2 s, float dx, float dy,
                    int texelOff)
  float4 tex1DARRAY(sampler1DARRAY samp, float3 s, float dx, float dy)
  float4 tex1DARRAY(sampler1DARRAY samp, float3 s, float dx, float dy,
                    int texelOff)

  int4 tex1DARRAY(isampler1DARRAY samp, float2 s)
  int4 tex1DARRAY(isampler1DARRAY samp, float2 s, int texelOff)

  int4 tex1DARRAY(isampler1DARRAY samp, float2 s, float dx, float dy)
  int4 tex1DARRAY(isampler1DARRAY samp, float2 s, float dx, float dy,
                  int texelOff)

  unsigned int4 tex1DARRAY(usampler1DARRAY samp, float2 s)
  unsigned int4 tex1DARRAY(usampler1DARRAY samp, float2 s, int texelOff)

  unsigned int4 tex1DARRAY(usampler1DARRAY samp, float2 s, float dx, float dy)
  unsigned int4 tex1DARRAY(usampler1DARRAY samp, float2 s, float dx, float dy,
                           int texelOff)

PARAMETERS

samp
    Sampler array to look up.

s   Coordinates to perform the lookup. The value used to select the layer is passed immediatelly after the regular coordinates, if an extra coordinate is present it is used to perform a shadow comparison.

dx  Pre computed derivative along the x axis.

dy  Pre computed derivative along the y axis.

texelOff
    Offset to be added to obtain the final texel.

DESCRIPTION
Performs a texture lookup in sampler samp using coordinates s, the texture to be sampled is selected from the layer specified in the coordinates. Also may use the derivatives dx and dy, the lookup may involve a shadow comparison and use texel offset texelOff to compute the final texel.

PROFILE SUPPORT
tex1DARRAY is only supported in gp4 and newer profiles.

SEE ALSO
tex1DARRAYbias, tex1DARRAYlod