# Constants

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

*** ** * ** ***


```
public static class Constants
```

<br />

*** ** * ** ***

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/Constants#ARRAY_LAYER_COUNT_UNDEFINED()` A sentinel value indicating that the array layer count is not specified and should be inferred. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/Constants#COPY_STRIDE_UNDEFINED()` A sentinel value indicating that the copy stride for a texture or buffer operation is not specified. |
| `static final float` | `https://developer.android.com/reference/androidx/webgpu/Constants#DEPTH_CLEAR_VALUE_UNDEFINED()` A sentinel value indicating that no depth clear value is provided. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/Constants#DEPTH_SLICE_UNDEFINED()` A sentinel value indicating that a depth slice is not specified, often defaulting to 0. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/Constants#LIMIT_U32_UNDEFINED()` A sentinel value for 32-bit unsigned integer limits, indicating that no specific limit is requested. |
| `static final long` | `https://developer.android.com/reference/androidx/webgpu/Constants#LIMIT_U64_UNDEFINED()` A sentinel value for 64-bit unsigned integer limits, indicating that no specific limit is requested. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/Constants#MIP_LEVEL_COUNT_UNDEFINED()` A sentinel value indicating that the mip level count is not specified and should be inferred. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/Constants#QUERY_SET_INDEX_UNDEFINED()` A sentinel value indicating that a query set index is not specified. |
| `static final long` | `https://developer.android.com/reference/androidx/webgpu/Constants#STRLEN()` A sentinel value for @see StringView to indicate a {@code null}-terminated string. |
| `static final long` | `https://developer.android.com/reference/androidx/webgpu/Constants#WHOLE_MAP_SIZE()` A sentinel value used in mapping operations to indicate the range extends to the end of the buffer. |
| `static final long` | `https://developer.android.com/reference/androidx/webgpu/Constants#WHOLE_SIZE()` A sentinel value indicating a size that extends to the end of a resource. |

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/Constants` | `https://developer.android.com/reference/androidx/webgpu/Constants#INSTANCE()` |

## Constants

### ARRAY_LAYER_COUNT_UNDEFINED

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

```
public static final int ARRAY_LAYER_COUNT_UNDEFINED
```

A sentinel value indicating that the array layer count is not specified and should be inferred.

### COPY_STRIDE_UNDEFINED

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

```
public static final int COPY_STRIDE_UNDEFINED
```

A sentinel value indicating that the copy stride for a texture or buffer operation is not specified.

### DEPTH_CLEAR_VALUE_UNDEFINED

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

```
public static final float DEPTH_CLEAR_VALUE_UNDEFINED
```

A sentinel value indicating that no depth clear value is provided.

### DEPTH_SLICE_UNDEFINED

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

```
public static final int DEPTH_SLICE_UNDEFINED
```

A sentinel value indicating that a depth slice is not specified, often defaulting to 0.

### LIMIT_U32_UNDEFINED

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

```
public static final int LIMIT_U32_UNDEFINED
```

A sentinel value for 32-bit unsigned integer limits, indicating that no specific limit is requested.

### LIMIT_U64_UNDEFINED

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

```
public static final long LIMIT_U64_UNDEFINED
```

A sentinel value for 64-bit unsigned integer limits, indicating that no specific limit is requested.

### MIP_LEVEL_COUNT_UNDEFINED

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

```
public static final int MIP_LEVEL_COUNT_UNDEFINED
```

A sentinel value indicating that the mip level count is not specified and should be inferred.

### QUERY_SET_INDEX_UNDEFINED

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

```
public static final int QUERY_SET_INDEX_UNDEFINED
```

A sentinel value indicating that a query set index is not specified.

### STRLEN

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

```
public static final long STRLEN
```

A sentinel value for @see StringView to indicate a {@code null}-terminated string.

### WHOLE_MAP_SIZE

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

```
public static final long WHOLE_MAP_SIZE
```

A sentinel value used in mapping operations to indicate the range extends to the end of the buffer.

### WHOLE_SIZE

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

```
public static final long WHOLE_SIZE
```

A sentinel value indicating a size that extends to the end of a resource.

## Public fields

### INSTANCE

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

```
public static @NonNull Constants INSTANCE
```