Skip to content

Latest commit

 

History

History
83 lines (50 loc) · 1.37 KB

sm5-object-texture2darray-operatorindex.md

File metadata and controls

83 lines (50 loc) · 1.37 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
Texture2DArray::Operator function
Returns a read-only resource variable. | Texture2DArray::Operator function
eb6ff496-c46f-405f-a172-ab747415a2f9
Operator function HLSL
apiref
Operator
NA
reference
05/31/2018

Texture2DArray::Operator function

Returns a read-only resource variable.

Syntax

R Operator[](
  in uint3 pos
);

Parameters

pos [in]

Type: uint3

The index position. The first and second components contain the (x, y) coordinates. The third component indicates the desired array slice.

Return value

Type: R

A read-only resource variable.

Remarks

This method always accesses the first mip level. To specify other mip levels, use the mip.operator[][] method instead.

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

Texture2DArray

Shader Model 5