protected override void Load(ResourceDesc resourceDescription)
        {
            Texture2DResourceDesc desc = (Texture2DResourceDesc)resourceDescription;

            var texture2D = CommonDX.TextureLoader.CreateTexture2DFromBitmap(desc.Device, CommonDX.TextureLoader.LoadBitmap(new SharpDX.WIC.ImagingFactory2(), desc.FileName));

            Width  = texture2D.Description.Width;
            Height = texture2D.Description.Height;


            D3D11.ShaderResourceView srvt = null;

            if (desc.CreateSRVT)
            {
                srvt = new D3D11.ShaderResourceView(desc.Device, texture2D);
            }

            Texture = new Rendering.Texture(texture2D, srvt);
        }
 public Texture2DResource(Texture2DResourceDesc resourceDescription)
     : base(resourceDescription)
 {
 }