Parameters

Specifies the sampler to which the texture from which texels will be retrieved is bound.

P

Specifies the texture coordinates at which texture will be sampled.

bias

Specifies an optional bias to be applied during level-of-detail computation.

compare

Specifies the value to which the fetched texel will be compared when sampling from gsamplerCubeArrayShadow.

Description

texture samples texels from the texture bound to sampler at texture
coordinate P. An optional bias, specified in bias is included in
the level-of-detail computation that is used to choose mipmap(s) from which to sample.

For shadow forms, when compare is present, it is used as
Dsub
and the array layer is specified in P.w. When compare is
not present, the last component of P is used as
Dsub and the
array layer is specified in the second to last component of P. (The second component of P
is unused for 1D shadow lookups.)

For non-shadow variants, the array layer comes from the last component of P.