Texture2DArray::mips. Operatorfunktion
Gibt eine schreibgeschützte Ressourcenvariable zurück.
Syntax
R mips.Operator[][](
in uint mipSlice,
in uint3 pos
);
Parameter
-
mipSlice [ In]
-
Typ: uint
Der Index des Mipslices.
-
pos [ In]
-
Typ: uint3
Die Indexposition. Die erste und die zweite Komponente enthalten die Koordinaten (x, y). Die dritte Komponente gibt den gewünschten Arrayslice an.
Rückgabewert
Typ: R
Eine schreibgeschützte Ressourcenvariable.
Hinweise
Verwendungsbeispiel
Texture2DArray<float4> tex;
uint mip = 2;
uint2 pos_xy_and_array = {123, 456, 3};
float4 f = tex.mips[mip][pos_xy_and_array];
Diese Funktion wird für die folgenden Shadertypen unterstützt:
| Scheitelpunkt | Rumpf | Domain | Geometrie | Pixel | Compute |
|---|---|---|---|---|---|
| x | x | x | x | x | x |