mirror of
https://github.com/utmapp/dxmt.git
synced 2026-12-01 07:53:21 -10:00
main
D3D11 has D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT (32) input slots, and the encoder's vertex buffer table (kVertexBufferSlots), input layout slot masks and append offsets already cover all 32. The context's input-assembler binding state held only 16, so IASetVertexBuffers, IAGetVertexBuffers and ClearState did not handle slots 16-31. Size it to D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT. The native suite gains draw_last_vertex_slot: it draws a quad from slot 31 and compares it with the same draw from slot 0, reads the binding back through IAGetVertexBuffers, and checks ClearState unbinds it. draw_and_read takes the vertex buffer slot as a new trailing argument. Without the change the suite does not complete; with it, 181/181 pass. Reported-by: Xusheng Li at Vector 35 Inc Co-Authored-By: Claude Opus 5.5 <[email protected]>
DXMT
A Metal-based translation layer for Direct3D 11 and 10 which allows running 3D applications on macOS using Wine.
For the current status of the project, please refer to the project wiki.
The most recent development builds can be found here.
Build
See DEVELOPMENT.md
Native backend
A native (non-Wine) macOS build links every module into a single
libdxmt-native.dylib that exports the standard D3D11/DXGI/D3D10 entry
points plus a small embedder API (dxmt_native.h): Win32-style events
(dxmt_event_*) and cross-process shared textures over POSIX shm. An
embedder dlopen()s the one dylib; pkg-config --cflags --libs dxmt-native provides the include and link flags. Build it by configuring
without a cross file (see DEVELOPMENT.md).
Description
Metal-based implementation of D3D11 and D3D10 for macOS / Wine
10 MiB
0 Stars
1 Watchers
0 Forks
Languages
C++
81.6%
C
16%
Metal
1.3%
Meson
0.9%
HLSL
0.2%