---
name: "SDL_GetDXGIOutputInfo"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetDXGIOutputInfo"
---

# SDL\_GetDXGIOutputInfo(3)

Get the DXGI Adapter and Output indices for the specified display.

## NAME

SDL\_GetDXGIOutputInfo - Get the DXGI Adapter and Output indices for the specified display.

## HEADER FILE

Defined in SDL3/SDL\_system.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_GetDXGIOutputInfo(SDL\_DisplayID displayID, int \*adapterIndex, int \*outputIndex);**

## DESCRIPTION

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.

## FUNCTION PARAMETERS

- *displayID*

  the instance of the display to query.

- *adapterIndex*

  a pointer to be filled in with the adapter index.

- *outputIndex*

  a pointer to be filled in with the output index.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.
