---
name: "SDL_Metal_GetLayer"
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_Metal_GetLayer"
---

# SDL\_Metal\_GetLayer(3)

Get a pointer to the backing CAMetalLayer for the given view.

## NAME

SDL\_Metal\_GetLayer - Get a pointer to the backing CAMetalLayer for the given view.

## HEADER FILE

Defined in SDL3/SDL\_metal.h

## SYNOPSIS

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

**void \* SDL\_Metal\_GetLayer(SDL\_MetalView view);**

## FUNCTION PARAMETERS

- *view*

  the  **SDL\_MetalView**\
    object.

## RETURN VALUE

Returns a pointer.

## AVAILABILITY

This function is available since SDL 3.2.0.
