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

◆ RenderTargetHelper()

unsafe Microsoft.Xna.Framework.Graphics.RenderTargetHelper.RenderTargetHelper ( IDynamicGraphicsResource texture,
int width,
int height,
SurfaceFormat format,
DepthFormat depthFormat,
int multiSampleCount,
RenderTargetUsage usage,
ProfileCapabilities profileCapabilities )
inlinepackage

Definition at line 33 of file RenderTargetHelper.cs.

34 {
35 pTexture = texture;
37 pDepthSurface = null;
38 this.width = width;
39 this.height = height;
40 this.format = format;
41 this.depthFormat = depthFormat;
42 this.multiSampleCount = multiSampleCount;
43 this.usage = usage;
44 base._002Ector();
45 isCubemap = texture is TextureCube;
46 pixelSize = Texture.GetExpectedByteSizeFromFormat(_003CModule_003E.ConvertXnaFormatToWindows(format));
47 int num = ((!profileCapabilities.InvalidBlendFormats.Contains(format)) ? 1 : 0);
48 willItBlend = (byte)num != 0;
49 }

References System.Collections.Generic.List< T >.Contains(), Microsoft.Xna.Framework.Graphics.RenderTargetHelper.depthFormat, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.format, Microsoft.Xna.Framework.Graphics.Texture.GetExpectedByteSizeFromFormat(), Microsoft.Xna.Framework.Graphics.RenderTargetHelper.height, Microsoft.Xna.Framework.Graphics.ProfileCapabilities.InvalidBlendFormats, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.isCubemap, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.multiSampleCount, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.pDepthSurface, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.pixelSize, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.pRenderTargetSurface, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.pTexture, Microsoft.Xna.Framework.Graphics.TextureCube, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.usage, Microsoft.Xna.Framework.Graphics.RenderTargetHelper.width, and Microsoft.Xna.Framework.Graphics.RenderTargetHelper.willItBlend.