Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DirectX bindings #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Nov 29, 2020
Merged

DirectX bindings #310

merged 22 commits into from
Nov 29, 2020

Conversation

Perksey
Copy link
Member

@Perksey Perksey commented Sep 9, 2020

Summary of the PR

Adds bindings to various DirectX/Windows APIs.

Related issues, Discord discussions, or proposals

#48

Further Comments

Because the JVM was being a big meanie.

  • Direct2D 1
  • DXC and D3DCompiler
  • Direct3D 9
  • Direct3D 11
  • Direct3D 12
  • DXGI
  • XAudio
  • XInput

  • guids
  • XXXX on 12

  • Metal
  • MetalKit
  • UIKit
  • NS

@Perksey Perksey added area-Win32 feature New feature. labels Sep 9, 2020
@Perksey Perksey added this to the 2.0 milestone Sep 9, 2020
@Perksey Perksey changed the base branch from master to 2.0 September 9, 2020 19:18
@Perksey
Copy link
Member Author

Perksey commented Nov 20, 2020

  • remove pinning in interface methods, replace with unsafe.aspointer
  • parse _In_ and friends

@Perksey Perksey changed the title [WIP] DirectX bindings [WIP] DirectX and Metal bindings Nov 27, 2020
@Perksey Perksey changed the title [WIP] DirectX and Metal bindings [WIP] DirectX bindings Nov 29, 2020
@Perksey Perksey changed the title [WIP] DirectX bindings DirectX bindings Nov 29, 2020
@Perksey Perksey requested a review from HurricanKai November 29, 2020 17:04
Copy link
Member

@HurricanKai HurricanKai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo Core should generate as little stuff specific to one thing as possible, and no generated code at all. Not sure why all these D3D types are in Core now.

Also , I can't be bothered to review the 1400 generated files.

Comment on lines +8 to +29
public struct TagRect
{
public long Left, Top, Right, Bottom;
}

public struct TagPoint
{
public long X, Y;
}

public struct TagSize
{
public long Width, Height;
}

public struct TagPaletteEntry
{
public byte PeRed;
public byte PeGreen;
public byte PeBlue;
public byte PeFlags;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to replace with Rectangle<long>, Vector2<long>, Vector2<long> and Vector4<byte>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

@Perksey Perksey requested a review from HurricanKai November 29, 2020 17:29
@Perksey Perksey merged commit f624840 into 2.0 Nov 29, 2020
@Perksey Perksey deleted the feature/directx branch November 29, 2020 19:13
Perksey added a commit that referenced this pull request Mar 25, 2022
* Add args and be more tolerant of failures

* Initial bindings with no COM, initial COM support in BuildTools

* Complete Direct3D 11 and DXGI bindings

* Start D3D12 work, move D3DCommon into Silk.NET.Core

* Add d3d11shader.h, BuildTools bug fixes

* Finish D3D12 bindings, add ComPtr & ComObject

* Direct3D 9 Bindings

* DXC and D3DCompiler bindings

* Push (disabled) config for Direct2D

* NUKE fixes

* Continued

* Binder improvements

* More COM-related improvements

* Revert SDL generator overwrite

* Add XInput and XAudio

* Finishing touches

* Update src/Microsoft/Silk.NET.DXGI/DXGILibraryNameContainer.cs

Co-authored-by: Kai Jellinghaus <[email protected]>

* GUIDs

* Remove ZeroStart now it's no longer used

Co-authored-by: Kai Jellinghaus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants