using var wicFactory = new IWICImagingFactory();
using IWICBitmapDecoder decoder = wicFactory.CreateDecoderFromFileName(bitmapPath);
using IWICBitmapFrameDecode frame = decoder.GetFrame(0);
{
ID2D1Bitmap bitmap = new ID2D1Bitmap(frame.NativePointer);
}
But this is wrong.
One more small question:
How to disable vsync in the windowed mode
SwapChainFullscreenDescription fullscreenDescription = new SwapChainFullscreenDescription
{
Windowed = true,
RefreshRate = new Rational(0, 1)
};
I have done:
But this is wrong.
One more small question: How to disable vsync in the windowed mode
This approach also looks wrong.