175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
25 lines
1.6 KiB
C
25 lines
1.6 KiB
C
/* Native Windows graphics carrier for the maintained no-helper Bridge.
|
|
* The two observed device-creation exports retain the Windows D3D11 ABI;
|
|
* Bridge resolves the real implementation from System32 before forwarding. */
|
|
#include <stdint.h>
|
|
typedef uint32_t u32;
|
|
__declspec(dllimport) int32_t __stdcall gw_startup_D3D11CreateDevice(
|
|
void *,u32,void *,u32,const u32 *,u32,u32,void **,u32 *,void **);
|
|
__declspec(dllimport) int32_t __stdcall gw_startup_D3D11CreateDeviceAndSwapChain(
|
|
void *,u32,void *,u32,const u32 *,u32,u32,const void *,void **,void **,u32 *,void **);
|
|
|
|
int32_t __stdcall D3D11CreateDevice(void *adapter,u32 driver,void *software,u32 flags,
|
|
const u32 *levels,u32 level_count,u32 sdk,
|
|
void **device,u32 *selected,void **context){
|
|
return gw_startup_D3D11CreateDevice(adapter,driver,software,flags,levels,
|
|
level_count,sdk,device,selected,context);
|
|
}
|
|
int32_t __stdcall D3D11CreateDeviceAndSwapChain(void *adapter,u32 driver,void *software,u32 flags,
|
|
const u32 *levels,u32 level_count,u32 sdk,
|
|
const void *desc,void **swap,void **device,
|
|
u32 *selected,void **context){
|
|
return gw_startup_D3D11CreateDeviceAndSwapChain(adapter,driver,software,flags,
|
|
levels,level_count,sdk,desc,swap,
|
|
device,selected,context);
|
|
}
|