public static ITexture Construct(ITextureDescription desc) { return((Software.ITexture) typeof(Software.Textures).GetMethod("Construct", new Type[] { desc.GetType() }) .Invoke(null, new object[] { desc })); }
public static ITexture Construct(ITextureDescription desc) { return (Software.ITexture)typeof(Software.Textures).GetMethod("Construct", new Type[] { desc.GetType() }) .Invoke(null, new object[] { desc }); }
private ITextureOutput Allocate(ITextureDescription input) { return(new TextureOutput(CalcSize(input.Size), CalcFormat(input.Format))); }