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

◆ ReferenceStencil

unsafe int Microsoft.Xna.Framework.Graphics.GraphicsDevice.ReferenceStencil
getset

Definition at line 395 of file GraphicsDevice.cs.

396 {
397 get
398 {
400 }
401 set
402 {
403 IntPtr intPtr = (IntPtr)pComPtr;
404 Helpers.CheckDisposed(this, intPtr);
405 EffectPass effectPass = activePass;
406 if (effectPass != null && (effectPass._stateFlags & EffectStateFlags.DepthStencil) != 0)
407 {
408 effectPass.EndPass();
409 activePass = null;
410 }
411 IDirect3DDevice9* ptr = pComPtr;
412 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, _D3DRENDERSTATETYPE, uint, int>)(int)(*(uint*)(*(int*)ptr + 228)))((nint)ptr, (_D3DRENDERSTATETYPE)57, (uint)value);
415 }
416 }

Referenced by Microsoft.Xna.Framework.Graphics.SavedDeviceState.SavedDeviceState().