Skip to content

Commit 67619a3

Browse files
committed
Add SDL_gpu (and other missing headers such as SDL_vulkan)
1 parent 4fadfd8 commit 67619a3

File tree

116 files changed

+16767
-1743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+16767
-1743
lines changed

.silktouch/0afb5dc84012c2fa.stout

-154 KB
Binary file not shown.

.silktouch/c8c046b328b09d23.stout

0 Bytes
Binary file not shown.

.silktouch/f244179f618073d9.stout

211 KB
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GPUBufferHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GPUBufferHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is GPUBufferHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(GPUBufferHandle left, GPUBufferHandle right) =>
22+
left.Equals(right);
23+
24+
public static bool operator !=(GPUBufferHandle left, GPUBufferHandle right) =>
25+
!left.Equals(right);
26+
27+
public bool Equals(NullPtr _) => Handle is null;
28+
29+
public static bool operator ==(GPUBufferHandle left, NullPtr right) => left.Equals(right);
30+
31+
public static bool operator !=(GPUBufferHandle left, NullPtr right) => !left.Equals(right);
32+
33+
public static implicit operator GPUBufferHandle(NullPtr _) => default;
34+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GPUCommandBufferHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GPUCommandBufferHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) =>
18+
obj is GPUCommandBufferHandle other && Equals(other);
19+
20+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
21+
22+
public static bool operator ==(GPUCommandBufferHandle left, GPUCommandBufferHandle right) =>
23+
left.Equals(right);
24+
25+
public static bool operator !=(GPUCommandBufferHandle left, GPUCommandBufferHandle right) =>
26+
!left.Equals(right);
27+
28+
public bool Equals(NullPtr _) => Handle is null;
29+
30+
public static bool operator ==(GPUCommandBufferHandle left, NullPtr right) =>
31+
left.Equals(right);
32+
33+
public static bool operator !=(GPUCommandBufferHandle left, NullPtr right) =>
34+
!left.Equals(right);
35+
36+
public static implicit operator GPUCommandBufferHandle(NullPtr _) => default;
37+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GPUComputePassHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GPUComputePassHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is GPUComputePassHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(GPUComputePassHandle left, GPUComputePassHandle right) =>
22+
left.Equals(right);
23+
24+
public static bool operator !=(GPUComputePassHandle left, GPUComputePassHandle right) =>
25+
!left.Equals(right);
26+
27+
public bool Equals(NullPtr _) => Handle is null;
28+
29+
public static bool operator ==(GPUComputePassHandle left, NullPtr right) => left.Equals(right);
30+
31+
public static bool operator !=(GPUComputePassHandle left, NullPtr right) => !left.Equals(right);
32+
33+
public static implicit operator GPUComputePassHandle(NullPtr _) => default;
34+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GPUComputePipelineHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GPUComputePipelineHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) =>
18+
obj is GPUComputePipelineHandle other && Equals(other);
19+
20+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
21+
22+
public static bool operator ==(GPUComputePipelineHandle left, GPUComputePipelineHandle right) =>
23+
left.Equals(right);
24+
25+
public static bool operator !=(GPUComputePipelineHandle left, GPUComputePipelineHandle right) =>
26+
!left.Equals(right);
27+
28+
public bool Equals(NullPtr _) => Handle is null;
29+
30+
public static bool operator ==(GPUComputePipelineHandle left, NullPtr right) =>
31+
left.Equals(right);
32+
33+
public static bool operator !=(GPUComputePipelineHandle left, NullPtr right) =>
34+
!left.Equals(right);
35+
36+
public static implicit operator GPUComputePipelineHandle(NullPtr _) => default;
37+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GPUCopyPassHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GPUCopyPassHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is GPUCopyPassHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(GPUCopyPassHandle left, GPUCopyPassHandle right) =>
22+
left.Equals(right);
23+
24+
public static bool operator !=(GPUCopyPassHandle left, GPUCopyPassHandle right) =>
25+
!left.Equals(right);
26+
27+
public bool Equals(NullPtr _) => Handle is null;
28+
29+
public static bool operator ==(GPUCopyPassHandle left, NullPtr right) => left.Equals(right);
30+
31+
public static bool operator !=(GPUCopyPassHandle left, NullPtr right) => !left.Equals(right);
32+
33+
public static implicit operator GPUCopyPassHandle(NullPtr _) => default;
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GPUDeviceHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GPUDeviceHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is GPUDeviceHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(GPUDeviceHandle left, GPUDeviceHandle right) =>
22+
left.Equals(right);
23+
24+
public static bool operator !=(GPUDeviceHandle left, GPUDeviceHandle right) =>
25+
!left.Equals(right);
26+
27+
public bool Equals(NullPtr _) => Handle is null;
28+
29+
public static bool operator ==(GPUDeviceHandle left, NullPtr right) => left.Equals(right);
30+
31+
public static bool operator !=(GPUDeviceHandle left, NullPtr right) => !left.Equals(right);
32+
33+
public static implicit operator GPUDeviceHandle(NullPtr _) => default;
34+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GPUFenceHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GPUFenceHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is GPUFenceHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(GPUFenceHandle left, GPUFenceHandle right) => left.Equals(right);
22+
23+
public static bool operator !=(GPUFenceHandle left, GPUFenceHandle right) =>
24+
!left.Equals(right);
25+
26+
public bool Equals(NullPtr _) => Handle is null;
27+
28+
public static bool operator ==(GPUFenceHandle left, NullPtr right) => left.Equals(right);
29+
30+
public static bool operator !=(GPUFenceHandle left, NullPtr right) => !left.Equals(right);
31+
32+
public static implicit operator GPUFenceHandle(NullPtr _) => default;
33+
}

0 commit comments

Comments
 (0)