# SType

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/SType.kt+class:androidx.webgpu.SType) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
class SType
```

<br />

*** ** * ** ***

Identifies the type of a structure in an extensible structure chain.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#CompatibilityModeLimits() = 15` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/webgpu/ExperimentalWebGpuApi https://developer.android.com/reference/kotlin/androidx/webgpu/SType#DawnTogglesDescriptor() = 327690` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#ExternalTextureBindingEntry() = 14` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#ExternalTextureBindingLayout() = 13` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#RenderPassMaxDrawCount() = 3` An extension for specifying max draw count in a render pass. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#RequestAdapterWebXROptions() = 11` An extension for WebXR interop adapter options. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#ShaderSourceSPIRV() = 1` A SPIR-V shader source. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#ShaderSourceWGSL() = 2` A WGSL shader source. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#SurfaceColorManagement() = 10` An extension for surface color management. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#SurfaceSourceAndroidNativeWindow() = 8` A surface created from an Android ANativeWindow. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#SurfaceSourceMetalLayer() = 4` A surface created from a CAMetalLayer. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#SurfaceSourceWaylandSurface() = 7` A surface created from a Wayland wl_surface. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#SurfaceSourceWindowsHWND() = 5` A surface created from a Windows HWND. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#SurfaceSourceXCBWindow() = 9` A surface created from an XCB window. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#SurfaceSourceXlibWindow() = 6` A surface created from an Xlib Window. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#TextureBindingViewDimension() = 16` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#TextureComponentSwizzleDescriptor() = 12` |

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/SType#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### CompatibilityModeLimits

```
const val CompatibilityModeLimits = 15: Int
```

### DawnTogglesDescriptor

```
@ExperimentalWebGpuApi
const val DawnTogglesDescriptor = 327690: Int
```

### ExternalTextureBindingEntry

```
const val ExternalTextureBindingEntry = 14: Int
```

### ExternalTextureBindingLayout

```
const val ExternalTextureBindingLayout = 13: Int
```

### RenderPassMaxDrawCount

```
const val RenderPassMaxDrawCount = 3: Int
```

An extension for specifying max draw count in a render pass.

### RequestAdapterWebXROptions

```
const val RequestAdapterWebXROptions = 11: Int
```

An extension for WebXR interop adapter options.

### ShaderSourceSPIRV

```
const val ShaderSourceSPIRV = 1: Int
```

A SPIR-V shader source.

### ShaderSourceWGSL

```
const val ShaderSourceWGSL = 2: Int
```

A WGSL shader source.

### SurfaceColorManagement

```
const val SurfaceColorManagement = 10: Int
```

An extension for surface color management.

### SurfaceSourceAndroidNativeWindow

```
const val SurfaceSourceAndroidNativeWindow = 8: Int
```

A surface created from an Android ANativeWindow.

### SurfaceSourceMetalLayer

```
const val SurfaceSourceMetalLayer = 4: Int
```

A surface created from a CAMetalLayer.

### SurfaceSourceWaylandSurface

```
const val SurfaceSourceWaylandSurface = 7: Int
```

A surface created from a Wayland wl_surface.

### SurfaceSourceWindowsHWND

```
const val SurfaceSourceWindowsHWND = 5: Int
```

A surface created from a Windows HWND.

### SurfaceSourceXCBWindow

```
const val SurfaceSourceXCBWindow = 9: Int
```

A surface created from an XCB window.

### SurfaceSourceXlibWindow

```
const val SurfaceSourceXlibWindow = 6: Int
```

A surface created from an Xlib Window.

### TextureBindingViewDimension

```
const val TextureBindingViewDimension = 16: Int
```

### TextureComponentSwizzleDescriptor

```
const val TextureComponentSwizzleDescriptor = 12: Int
```

## Public companion functions

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
fun toString(value: Int): String
```