Skip to content

Expand public DirectX bindings and complete depth/stencil interop - #30

Merged
atcarter714 merged 2 commits into
mainfrom
feat/directx-api-parity
Nov 18, 2026
Merged

atcarter714 merged 2 commits into
mainfrom
feat/directx-api-parity

Conversation

@atcarter714

Copy link
Copy Markdown
Owner

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.

@atcarter714
atcarter714 merged commit 627dda4 into main Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant