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

◆ GetDestinationSurface()

unsafe IDirect3DSurface9 * Microsoft.Xna.Framework.Graphics.RenderTargetHelper.GetDestinationSurface ( CubeMapFace faceType,
int mipLevel )
inlinepackage

Definition at line 194 of file RenderTargetHelper.cs.

195 {
196 IDirect3DSurface9* result = null;
197 if (isCubemap)
198 {
199 IDirect3DCubeTexture9* pComPtr = ((TextureCube)pTexture).pComPtr;
200 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, _D3DCUBEMAP_FACES, uint, IDirect3DSurface9**, int>)(int)(*(uint*)(*(int*)pComPtr + 72)))((nint)pComPtr, (_D3DCUBEMAP_FACES)faceType, (uint)mipLevel, &result);
201 }
202 else
203 {
204 IDirect3DTexture9* pComPtr2 = ((Texture2D)pTexture).pComPtr;
205 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint, IDirect3DSurface9**, int>)(int)(*(uint*)(*(int*)pComPtr2 + 72)))((nint)pComPtr2, (uint)mipLevel, &result);
206 }
207 return result;
208 }

References Microsoft.Xna.Framework.Graphics.RenderTargetHelper.isCubemap, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.pTexture, Microsoft.Xna.Framework.Graphics.Texture2D, and Microsoft.Xna.Framework.Graphics.TextureCube.

Referenced by Microsoft.Xna.Framework.Graphics.GraphicsDevice.ResolveRenderTarget(), and Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetRenderTargets().