Resolve remaining build warnings

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 b9a133b74c
コミット 5c4479a0e1
26ファイル変更
+106 -103

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

+1 -1
ファイルの表示
@@ -35,7 +35,7 @@ internal ref struct ArrayPoolBufferWriter<T>
/// <summary>
/// The starting offset within <see cref="array"/>.
/// </summary>
private int index;
private readonly int index;
/// <summary>
/// Initializes a new instance of the <see cref="ArrayPoolBufferWriter{T}"/> class.
+3 -3
ファイルの表示
@@ -8,17 +8,17 @@ namespace ComputeSharp.D2D1.Shaders.Interop.Helpers;
/// <summary>
/// A 64-bit version of the <see cref="Point"/> type.
/// </summary>
internal struct Point64
internal readonly struct Point64
{
/// <summary>
/// The left coordinate of the current point.
/// </summary>
private long x;
private readonly long x;
/// <summary>
/// The top coordinate of the current point.
/// </summary>
private long y;
private readonly long y;
/// <summary>
/// Creates a new <see cref="Point64"/> instance with the specified parameters.
+7 -8
ファイルの表示
@@ -110,7 +110,7 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
/// <summary>
/// The awaitable object for <see cref="IDXGISwapChain3.Present"/> calls.
/// </summary>
private HANDLE frameLatencyWaitableObject;
private readonly HANDLE frameLatencyWaitableObject;
/// <summary>
/// The first buffer within <see cref="dxgiSwapChain3"/>.
@@ -241,20 +241,19 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
// IDXGISwapChain reference just created and set that as the swap chain panel to use.
fixed (ISwapChainPanelNative** swapChainPanelNative = this.swapChainPanelNative)
{
using (ComPtr<IUnknown> swapChainPanel = default)
{
using ComPtr<IUnknown> swapChainPanel = default;
#if WINDOWS_UWP
swapChainPanel.Attach((IUnknown*)Marshal.GetIUnknownForObject(owner));
swapChainPanel.CopyTo(swapChainPanelNative).Assert();
#else
swapChainPanel.Attach((IUnknown*)((IWinRTObject)owner).NativeObject.GetRef());
swapChainPanel.Attach((IUnknown*)((IWinRTObject)owner).NativeObject.GetRef());
swapChainPanel.CopyTo(
(Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(new Guid(0x63AAD0B8, 0x7C24, 0x40FF, 0x85, 0xA8, 0x64, 0x0D, 0x94, 0x4C, 0xC3, 0x25))),
(void**)swapChainPanelNative).Assert();
swapChainPanel.CopyTo(
(Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(new Guid(0x63AAD0B8, 0x7C24, 0x40FF, 0x85, 0xA8, 0x64, 0x0D, 0x94, 0x4C, 0xC3, 0x25))),
(void**)swapChainPanelNative).Assert();
#endif
}
}
// Get the underlying ID3D12Device in use