Bump D3D12MA to version 2.0.0-beta3.1459250354

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-14 17:48:44 +01:00
1 親 702b880b89
コミット e17f622032
57ファイル変更
+218 -179

検索条件に一致するファイルはありません

+5 -2
ファイルの表示
@@ -1,6 +1,9 @@
using System;
using ComputeSharp.Interop;
using TerraFX.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable CA1416
namespace ComputeSharp.SwapChain.Backend;
@@ -120,7 +123,7 @@ internal sealed class SwapChainApplication<T> : Win32Application
{
using ComPtr<IDXGIFactory2> dxgiFactory2 = default;
_ = Windows.CreateDXGIFactory2(Windows.DXGI_CREATE_FACTORY_DEBUG, Windows.__uuidof<IDXGIFactory2>(), (void**)dxgiFactory2.GetAddressOf());
_ = DirectX.CreateDXGIFactory2(DirectX.DXGI_CREATE_FACTORY_DEBUG, Windows.__uuidof<IDXGIFactory2>(), (void**)dxgiFactory2.GetAddressOf());
DXGI_SWAP_CHAIN_DESC1 dxgiSwapChainDesc1 = default;
dxgiSwapChainDesc1.AlphaMode = DXGI_ALPHA_MODE.DXGI_ALPHA_MODE_IGNORE;
+1 -1
ファイルの表示
@@ -1,5 +1,5 @@
using System;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
namespace ComputeSharp.SwapChain.Backend;
+14 -14
ファイルの表示
@@ -4,7 +4,7 @@ using System.Drawing;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
namespace ComputeSharp.SwapChain.Backend;
@@ -73,7 +73,7 @@ internal unsafe static class Win32ApplicationRunner
Rectangle windowRect = new(0, 0, 1280, 720);
// Set the target window size
_ = Windows.AdjustWindowRect((RECT*)&windowRect, Windows.WS_OVERLAPPEDWINDOW, Windows.FALSE);
_ = Windows.AdjustWindowRect((RECT*)&windowRect, WS.WS_OVERLAPPEDWINDOW, Windows.FALSE);
uint height = (uint)(windowRect.Bottom - windowRect.Top);
uint width = (uint)(windowRect.Right - windowRect.Left);
@@ -83,7 +83,7 @@ internal unsafe static class Win32ApplicationRunner
0,
windowClassEx.lpszClassName,
(ushort*)windowTitle,
Windows.WS_OVERLAPPEDWINDOW,
WS.WS_OVERLAPPEDWINDOW,
Windows.CW_USEDEFAULT,
Windows.CW_USEDEFAULT,
(int)width,
@@ -137,7 +137,7 @@ internal unsafe static class Win32ApplicationRunner
renderThread.Start((application, tokenSource.Token));
// Process any messages in the queue
while (msg.message != Windows.WM_QUIT)
while (msg.message != WM.WM_QUIT)
{
if (Windows.PeekMessageW(&msg, HWND.NULL, 0, 0, Windows.PM_REMOVE) != 0)
{
@@ -150,7 +150,7 @@ internal unsafe static class Win32ApplicationRunner
}
// Also listen to Escape and 'Q' to quit
if (msg.message == Windows.WM_KEYUP && (msg.wParam == (WPARAM)Windows.VK_ESCAPE || msg.wParam == 'Q'))
if (msg.message == WM.WM_KEYUP && (msg.wParam == (WPARAM)VK.VK_ESCAPE || msg.wParam == 'Q'))
{
_ = Windows.DestroyWindow(hwnd);
}
@@ -178,7 +178,7 @@ internal unsafe static class Win32ApplicationRunner
switch (uMsg)
{
// Change the paused state on window activation
case Windows.WM_ACTIVATE:
case WM.WM_ACTIVATE:
{
if (Windows.LOWORD(wParam) == Windows.WA_INACTIVE)
{
@@ -192,7 +192,7 @@ internal unsafe static class Win32ApplicationRunner
}
// Change the paused state when ESC is pressed
case Windows.WM_KEYDOWN:
case WM.WM_KEYDOWN:
{
if ((ConsoleKey)wParam == ConsoleKey.Escape)
{
@@ -213,7 +213,7 @@ internal unsafe static class Win32ApplicationRunner
}
// Window resize started
case Windows.WM_ENTERSIZEMOVE:
case WM.WM_ENTERSIZEMOVE:
{
isResizing = true;
@@ -221,7 +221,7 @@ internal unsafe static class Win32ApplicationRunner
}
// Window resize completed
case Windows.WM_EXITSIZEMOVE:
case WM.WM_EXITSIZEMOVE:
{
isResizing = false;
application.OnResize();
@@ -230,7 +230,7 @@ internal unsafe static class Win32ApplicationRunner
}
// Size update
case Windows.WM_SIZE:
case WM.WM_SIZE:
{
if (!isResizing && wParam != Windows.SIZE_MINIMIZED)
{
@@ -241,13 +241,13 @@ internal unsafe static class Win32ApplicationRunner
}
// Size and position of the window (needed to enable the borderless mode)
case Windows.WM_NCCALCSIZE:
case WM.WM_NCCALCSIZE:
{
return 0;
}
// Enable dragging the window
case Windows.WM_NCHITTEST:
case WM.WM_NCHITTEST:
{
POINT point;
RECT rect;
@@ -292,7 +292,7 @@ internal unsafe static class Win32ApplicationRunner
}
// Restore the drop shadow
case Windows.WM_DWMCOMPOSITIONCHANGED:
case WM.WM_DWMCOMPOSITIONCHANGED:
{
MARGINS margins = default;
margins.cxLeftWidth = -1;
@@ -306,7 +306,7 @@ internal unsafe static class Win32ApplicationRunner
}
// Shutdown
case Windows.WM_DESTROY:
case WM.WM_DESTROY:
{
Windows.PostQuitMessage(0);
return 0;