WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
Constants

Constants. More...

Macros

#define WGPU_TRUE   (UINT32_C(1))
 
#define WGPU_FALSE   (UINT32_C(0))
 
#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED   (UINT32_MAX)
 
#define WGPU_COPY_STRIDE_UNDEFINED   (UINT32_MAX)
 
#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED   (NAN)
 
#define WGPU_DEPTH_SLICE_UNDEFINED   (UINT32_MAX)
 
#define WGPU_LIMIT_U32_UNDEFINED   (UINT32_MAX)
 
#define WGPU_LIMIT_U64_UNDEFINED   (UINT64_MAX)
 
#define WGPU_MIP_LEVEL_COUNT_UNDEFINED   (UINT32_MAX)
 
#define WGPU_QUERY_SET_INDEX_UNDEFINED   (UINT32_MAX)
 
#define WGPU_STRLEN   (SIZE_MAX)
 
#define WGPU_WHOLE_MAP_SIZE   (SIZE_MAX)
 
#define WGPU_WHOLE_SIZE   (UINT64_MAX)
 

Detailed Description

Constants.

Macro Definition Documentation

◆ WGPU_TRUE

#define WGPU_TRUE   (UINT32_C(1))

'True' value of WGPUBool.

Remarks
It's not usually necessary to use this, as true (from stdbool.h or C++) casts to the same value.

Definition at line 100 of file webgpu.h.

◆ WGPU_FALSE

#define WGPU_FALSE   (UINT32_C(0))

'False' value of WGPUBool.

Remarks
It's not usually necessary to use this, as false (from stdbool.h or C++) casts to the same value.

Definition at line 107 of file webgpu.h.

◆ WGPU_ARRAY_LAYER_COUNT_UNDEFINED

#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED   (UINT32_MAX)

Indicates no array layer count is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 112 of file webgpu.h.

◆ WGPU_COPY_STRIDE_UNDEFINED

#define WGPU_COPY_STRIDE_UNDEFINED   (UINT32_MAX)

Indicates no copy stride is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 117 of file webgpu.h.

◆ WGPU_DEPTH_CLEAR_VALUE_UNDEFINED

#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED   (NAN)

Indicates no depth clear value is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 122 of file webgpu.h.

◆ WGPU_DEPTH_SLICE_UNDEFINED

#define WGPU_DEPTH_SLICE_UNDEFINED   (UINT32_MAX)

Indicates no depth slice is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 127 of file webgpu.h.

◆ WGPU_LIMIT_U32_UNDEFINED

#define WGPU_LIMIT_U32_UNDEFINED   (UINT32_MAX)

For uint32_t limits, indicates no limit value is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 132 of file webgpu.h.

◆ WGPU_LIMIT_U64_UNDEFINED

#define WGPU_LIMIT_U64_UNDEFINED   (UINT64_MAX)

For uint64_t limits, indicates no limit value is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 137 of file webgpu.h.

◆ WGPU_MIP_LEVEL_COUNT_UNDEFINED

#define WGPU_MIP_LEVEL_COUNT_UNDEFINED   (UINT32_MAX)

Indicates no mip level count is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 142 of file webgpu.h.

◆ WGPU_QUERY_SET_INDEX_UNDEFINED

#define WGPU_QUERY_SET_INDEX_UNDEFINED   (UINT32_MAX)

Indicates no query set index is specified. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 147 of file webgpu.h.

◆ WGPU_STRLEN

#define WGPU_STRLEN   (SIZE_MAX)

Sentinel value used in WGPUStringView to indicate that the pointer is to a null-terminated string, rather than an explicitly-sized string.

Definition at line 152 of file webgpu.h.

◆ WGPU_WHOLE_MAP_SIZE

#define WGPU_WHOLE_MAP_SIZE   (SIZE_MAX)

Indicates a size extending to the end of the buffer. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 157 of file webgpu.h.

◆ WGPU_WHOLE_SIZE

#define WGPU_WHOLE_SIZE   (UINT64_MAX)

Indicates a size extending to the end of the buffer. For more info, see Sentinel Values and the places that use this sentinel value.

Definition at line 162 of file webgpu.h.