forked from dotnet/Silk.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCuModuleNVXHandle.gen.cs
More file actions
34 lines (23 loc) · 1.29 KB
/
CuModuleNVXHandle.gen.cs
File metadata and controls
34 lines (23 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from the Vulkan headers and corresponding dependencies.
// Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Silk.NET.Vulkan;
public readonly unsafe partial struct CuModuleNVXHandle
{
public readonly void* Handle;
public bool Equals(CuModuleNVXHandle other) => Handle == other.Handle;
public override bool Equals(object? obj) => obj is CuModuleNVXHandle other && Equals(other);
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
public static bool operator ==(CuModuleNVXHandle left, CuModuleNVXHandle right) =>
left.Equals(right);
public static bool operator !=(CuModuleNVXHandle left, CuModuleNVXHandle right) =>
!left.Equals(right);
public bool Equals(NullPtr _) => Handle is null;
public static bool operator ==(CuModuleNVXHandle left, NullPtr right) => left.Equals(right);
public static bool operator !=(CuModuleNVXHandle left, NullPtr right) => !left.Equals(right);
public static implicit operator CuModuleNVXHandle(NullPtr _) => default;
}