Repository navigation
Expand public DirectX bindings and complete depth/stencil interop - #30
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DXSharp.Core exposed a limited set of generated DirectX declarations and only D32 depth targets, forcing external renderers such as the separate Noesis adapter to regenerate COM interfaces and create stencil resources themselves.
This adds DXSharp.Native with public source-generated D3D9/10/11/12, DXGI, DXC/FXC, DirectML, Direct2D, DirectWrite, WIC, composition, audio, and input declarations from pinned Win32Metadata 71.0.37-preview. Core uses the same declarations and adds four depth/stencil formats, stencil pipeline state and clears, multiple render targets, general committed-resource allocation, typed owning native-interface projections, and native command recording with retained GPU dependencies. Existing overloads remain available.
The API coverage gate checks 3,408 public types and 30,249 member names against the pinned metadata. It checks names, not complete overload signatures or ABI behavior. The new DepthStencil sample renders masks, reads back pixels, and exercises disposal before submission. Packaging now includes DXSharp.Native and uses the preview.2 version.
Validation completed locally: full solution cross-build (existing compatibility warnings), clean modern package builds, 2,298 native COM ownership/ABI fixture checks with zero live objects, public metadata coverage, eight release package/symbol files verified, and clean external Noesis package consumption with zero warnings/errors. The Noesis integration and proprietary dependencies remain outside this repository.
Draft pending Windows CI, WARP/hardware graphics checks, and NativeAOT qualification. DirectStorage is absent from the pinned metadata and remains an explicit gap; this change does not claim complete behavioral parity with Vortice or Silk.NET. See doc/API-Coverage.md for the coverage boundary and remaining work.