amerkoleci / Vortice.Windows

.NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.
MIT License
1.01k stars 73 forks source link

Having trouble to build, DXGIDisableVBlankVirtualization() #407

Closed Charles113 closed 1 year ago

Charles113 commented 1 year ago

Hello, i was able to build the "Vortice.Win32" Solution.

Also I was able to build Vortice.Windows a few years ago.

Now i keep getting errors when trying to build "Vortice.Windows"

SharpGenTools.Sdk.targets(222,5): HRESULT DXGIDisableVBlankVirtualization() error SG0012: CppFunction [HRESULT DXGIDisableVBlankVirtualization()] is not tagged and attached to any Class/FunctionGroup "Vortice.DXGI.csproj" -- FAILED

Do you need more information?

Cheers

EDIT:

ok i made some progress, added:

<map function="DXGIDisableVBlankVirtualization" dll='"dxgi.dll"' group="Vortice.DXGI.DXGI" hresult="true" check="false" />

To the "Mappings.xml" file

Now "Vortice.DXGI" project is compiling, still getting more errors in Vortice.Direct3D11, Vortice.Direct3D12.

Chat GPT told me to add that line to Mappings.xml, so i have no idea what i did, but "Vortice.DXGI" is compiling now. (I don't know anything about SharpGenTools)

Charles113 commented 1 year ago

Closing this because i have other errors now. Might have used the wrong files at the start.