Texture2D::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 Index des Mipslices.
-
pos [ In]
-
Typ: uint2
Die Indexposition. Enthält die Koordinaten (x, y).
Rückgabewert
Typ: R
Eine schreibgeschützte Ressourcenvariable.
Hinweise
Verwendungsbeispiel
Texture2D<float4> tex;
uint mip = 2;
uint2 pos_xy = {123, 456};
float4 f = tex.mips[mip][pos_xy];
Diese Funktion wird für die folgenden Shadertypen unterstützt:
| Scheitelpunkt | Rumpf | Domain | Geometrie | Pixel | Compute |
|---|---|---|---|---|---|
| x | x | x | x | x | x |