Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ this[int index]

SamplerState Microsoft.Xna.Framework.Graphics.SamplerStateCollection.this[int index]
getset

Definition at line 13 of file SamplerStateCollection.cs.

14 {
15 get
16 {
17 if (index >= 0)
18 {
19 SamplerState[] array = pSamplerList;
20 if (index < (nint)array.LongLength)
21 {
22 return array[index];
23 }
24 }
25 throw new ArgumentOutOfRangeException("index");
26 }
27 set
28 {
29 if (index >= 0)
30 {
31 SamplerState[] array = pSamplerList;
32 if (index < (nint)array.LongLength)
33 {
34 if (value == null)
35 {
36 throw new ArgumentNullException("value", FrameworkResources.NullNotAllowed);
37 }
38 if (value != array[index])
39 {
42 }
43 return;
44 }
45 }
46 throw new ArgumentOutOfRangeException("index");
47 }
48 }