0
CODE
mSwapChainDesc = new dx.SwapChainDescription()
{
BufferCount = 1,
IsWindowed = true,
OutputHandle = Target.Handle,
SwapEffect = dx.SwapEffect.Discard,
Usage = dx.Usage.RenderTargetOutput | dx.Usage.ShaderInput,
Flags = dx.SwapChainFlags.None,
ModeDescription = new dx.ModeDescription(Target.ClientSize.Width, Target.ClientSize.Height, dx.Rational.Empty, dx.Format.B8G8R8A8_UNorm),
SampleDescription = new dx.SampleDescription(1, 0)
};
d3.Device.CreateWithSwapChain(d3d.DriverType.Hardware, d3.DeviceCreationFlags.BgraSupport, mSwapChainDesc, out mD3Device, out mSwapChain);
mSurface = dx.Surface.FromSwapChain(mSwapChain, 0);
Factory = new d2.Factory();
DWFactory = new dWrite.Factory();
mDevice = new d2.DeviceContext(mSurface);
mRenderCallback = new dWin.RenderLoop.RenderCallback(Render);
Tryied
mSwapChain.ResizeBuffers(
mSwapChain.Description.BufferCount,
renderSize.Value.Width,
renderSize.Value.Height,
mSwapChain.Description.ModeDescription.Format,
mSwapChain.Description.Flags);
エラー
01のサイズを変更したいレンダリングHRESULT:[0x887A0001]、モジュール:[SharpDX.DXGI]、ApiCode: [DXGI_ERROR_INVALID_CALL/InvalidCall]