mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 16:16:04 +08:00
More D3D12 goodies.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using Win32.Graphics.Dxgi.Common;
|
||||
|
||||
namespace Win32.Graphics.Direct3D12;
|
||||
|
||||
public partial struct RenderPassBeginningAccessClearParameters : IEquatable<RenderPassBeginningAccessClearParameters>
|
||||
{
|
||||
public static bool operator ==(in RenderPassBeginningAccessClearParameters left, in RenderPassBeginningAccessClearParameters right)
|
||||
{
|
||||
return left.ClearValue == right.ClearValue;
|
||||
}
|
||||
|
||||
public static bool operator !=(in RenderPassBeginningAccessClearParameters left, in RenderPassBeginningAccessClearParameters right)
|
||||
=> !(left == right);
|
||||
|
||||
public override bool Equals(object? obj) => (obj is RenderPassBeginningAccessClearParameters other) && Equals(other);
|
||||
|
||||
public bool Equals(RenderPassBeginningAccessClearParameters other) => this == other;
|
||||
|
||||
public override int GetHashCode() => ClearValue.GetHashCode();
|
||||
}
|
||||
Reference in New Issue
Block a user