Texture1DArray::mips. Operatorfunktion
Gibt eine schreibgeschützte Ressourcenvariable zurück.
Syntax
R mips.Operator[][](
in uint mipSlice,
in uint2 pos
);
Parameter
-
mipSlice [ In]
-
Typ: uint
Der MIP-Sliceindex.
-
pos [ In]
-
Typ: uint2
Die Indexposition. Die erste Komponente enthält die x-Koordinate. Die zweite Komponente gibt den gewünschten Arrayslice an.
Rückgabewert
Typ: R
Eine schreibgeschützte Ressourcenvariable.
Hinweise
Verwendungsbeispiel
Texture1DArray<float4> tex;
uint mip = 2;
uint2 pos_x_and_array = {1234, 3};
float4 f = tex.mips[mip][pos_x_and_array];
Diese Funktion wird für die folgenden Shadertypen unterstützt:
| Scheitelpunkt | Rumpf | Domain | Geometrie | Pixel | Compute |
|---|---|---|---|---|---|
| x | x | x | x | x | x |