---
name: "SDL_HINT_RENDER_DIRECT3D_THREADSAFE"
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_HINT_RENDER_DIRECT3D_THREADSAFE"
---

# SDL\_HINT\_RENDER\_DIRECT3D\_THREADSAFE(3)

A variable controlling whether the Direct3D device is initialized for thread-safe operations.

## NAME

SDL\_HINT\_RENDER\_DIRECT3D\_THREADSAFE - A variable controlling whether the Direct3D device is initialized for thread-safe operations.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

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

**#define SDL\_HINT\_RENDER\_DIRECT3D\_THREADSAFE** *SDL\_RENDER\_DIRECT3D\_THREADSAFE"*

## DESCRIPTION

The variable can be set to the following values:

• "0": Thread-safety is not enabled. (default)

• "1": Thread-safety is enabled.

This hint should be set before creating a renderer.

## AVAILABILITY

This hint is available since SDL 3.2.0.
