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

◆ UpdateParent()

unsafe void Microsoft.Xna.Framework.Graphics.EffectPassCollection.UpdateParent ( ID3DXBaseEffect * parent,
sbyte * technique )
inlinepackage

Definition at line 67 of file EffectPassCollection.cs.

68 {
69 pEffect = parent;
70 int num = 0;
71 if (0 < pPass.Count)
72 {
73 do
74 {
76 sbyte* handle = ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, sbyte*, uint, sbyte*>)(int)(*(uint*)(*(int*)ptr + 56)))((nint)ptr, technique, (uint)num);
78 EffectPass effectPass = pPass[num];
79 effectPass.pEffect = parent2;
80 effectPass._handle = handle;
81 effectPass.pAnnotations.UpdateParent(parent2, handle);
82 num++;
83 }
84 while (num < pPass.Count);
85 }
86 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.handle, Microsoft.Xna.Framework.Graphics.EffectPassCollection.pEffect, and Microsoft.Xna.Framework.Graphics.EffectPassCollection.pPass.

Referenced by Microsoft.Xna.Framework.Graphics.EffectTechnique.UpdateHandle().