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

◆ CreateHelperClasses()

unsafe void Microsoft.Xna.Framework.Graphics.GraphicsDevice.CreateHelperClasses ( )
inlineprivate

Definition at line 740 of file GraphicsDevice.cs.

741 {
743 pSamplerState = new SamplerStateCollection(this, 0, _profileCapabilities.MaxSamplers);
744 pVertexSamplerState = new SamplerStateCollection(this, 257, _profileCapabilities.MaxVertexSamplers);
745 pTextureCollection = new TextureCollection(this, 0, _profileCapabilities.MaxSamplers);
746 pVertexTextureCollection = new TextureCollection(this, 257, _profileCapabilities.MaxVertexSamplers);
748 vertexDeclarationManager = new DeclarationManager(this);
749 pResourceManager = new DeviceResourceManager(this);
750 ProfileCapabilities profileCapabilities = _profileCapabilities;
751 currentRenderTargets = new RenderTargetHelper[profileCapabilities.MaxRenderTargets];
752 currentRenderTargetBindings = new RenderTargetBinding[profileCapabilities.MaxRenderTargets];
753 willItBlend = true;
754 fixed (IDirect3DSurface9** ptr = &pImplicitDepthSurface)
755 {
756 int num = *(int*)pComPtr + 160;
757 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, IDirect3DSurface9**, int>)(int)(*(uint*)num))((nint)pComPtr, ptr);
758 }
759 }

References Microsoft.Xna.Framework.Graphics.GraphicsDevice._profileCapabilities, Microsoft.Xna.Framework.Graphics.GraphicsDevice.currentRenderTargetBindings, Microsoft.Xna.Framework.Graphics.GraphicsDevice.currentRenderTargets, Microsoft.Xna.Framework.Graphics.GraphicsDevice.currentVertexBuffers, Microsoft.Xna.Framework.Graphics.ProfileCapabilities.MaxRenderTargets, Microsoft.Xna.Framework.Graphics.ProfileCapabilities.MaxSamplers, Microsoft.Xna.Framework.Graphics.ProfileCapabilities.MaxVertexSamplers, Microsoft.Xna.Framework.Graphics.ProfileCapabilities.MaxVertexStreams, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pComPtr, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pImplicitDepthSurface, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pResourceManager, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pSamplerState, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pTextureCollection, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pVertexSamplerState, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pVertexTextureCollection, Microsoft.Xna.Framework.Graphics.GraphicsDevice.vertexDeclarationManager, and Microsoft.Xna.Framework.Graphics.GraphicsDevice.willItBlend.

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