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

◆ FindResourceW()

IntPtr Microsoft.Xna.Framework.Graphics.DeviceResourceManager.FindResourceW ( Converter< object, IntPtr > selectionFilter)
inline

Definition at line 117 of file DeviceResourceManager.cs.

118 {
119 bool lockTaken = false;
120 try
121 {
124 while (enumerator.MoveNext())
125 {
126 object target = enumerator.Current.ManagedObject.Target;
127 if (target != null)
128 {
129 IntPtr intPtr = selectionFilter(target);
132 if (intPtr3 != IntPtr.Zero)
133 {
134 return intPtr3;
135 }
136 }
137 }
138 return IntPtr.Zero;
139 }
140 finally
141 {
142 if (lockTaken)
143 {
145 }
146 }
147 }
static void Exit(object obj)
static void Enter(object obj)
static readonly IntPtr Zero
Definition IntPtr.cs:18

References System.Threading.Monitor.Enter(), System.Threading.Monitor.Exit(), System.Collections.Generic.Dictionary< TKey, TValue >.ValueCollection.GetEnumerator(), Microsoft.Xna.Framework.Graphics.DeviceResourceManager.pResourceData, Microsoft.Xna.Framework.Graphics.DeviceResourceManager.pSyncObject, System.Collections.Generic.Dictionary< TKey, TValue >.Values, and System.IntPtr.Zero.

Referenced by Microsoft.Xna.Framework.Graphics.RenderTargetHelper.CreateSurfaces().