sdlGetDxgiOutputInfo function
Get the DXGI Adapter and Output indices for the specified display.
The DXGI Adapter and Output indices can be passed to EnumAdapters
and
EnumOutputs
respectively to get the objects required to create a DX10 or
DX11 device and swap chain.
\param displayID the instance of the display to query. \param adapterIndex a pointer to be filled in with the adapter index. \param outputIndex a pointer to be filled in with the output index. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_GetDXGIOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
Implementation
bool sdlGetDxgiOutputInfo(
int displayId, Pointer<Int32> adapterIndex, Pointer<Int32> outputIndex) {
final sdlGetDxgiOutputInfoLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Uint32 displayId, Pointer<Int32> adapterIndex,
Pointer<Int32> outputIndex),
int Function(int displayId, Pointer<Int32> adapterIndex,
Pointer<Int32> outputIndex)>('SDL_GetDXGIOutputInfo');
return sdlGetDxgiOutputInfoLookupFunction(
displayId, adapterIndex, outputIndex) ==
1;
}