WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
Structures

Descriptors and other transparent structures. More...

Topics

 Callback Info Structs
 Callback info structures that are used in asynchronous functions.
 

Data Structures

struct  WGPUAdapterInfo
 
struct  WGPUBindGroupEntry
 
struct  WGPUBlendComponent
 
struct  WGPUBufferBindingLayout
 
struct  WGPUBufferDescriptor
 
struct  WGPUColor
 
struct  WGPUCommandBufferDescriptor
 
struct  WGPUCommandEncoderDescriptor
 
struct  WGPUCompilationMessage
 
struct  WGPUConstantEntry
 
struct  WGPUExtent3D
 
struct  WGPUFuture
 
struct  WGPUInstanceCapabilities
 
struct  WGPULimits
 
struct  WGPUMultisampleState
 
struct  WGPUOrigin3D
 
struct  WGPUPassTimestampWrites
 
struct  WGPUPipelineLayoutDescriptor
 
struct  WGPUPrimitiveState
 
struct  WGPUQuerySetDescriptor
 
struct  WGPUQueueDescriptor
 
struct  WGPURenderBundleDescriptor
 
struct  WGPURenderBundleEncoderDescriptor
 
struct  WGPURenderPassDepthStencilAttachment
 
struct  WGPURenderPassMaxDrawCount
 
struct  WGPURequestAdapterOptions
 
struct  WGPUSamplerBindingLayout
 
struct  WGPUSamplerDescriptor
 
struct  WGPUShaderModuleDescriptor
 
struct  WGPUShaderSourceSPIRV
 
struct  WGPUShaderSourceWGSL
 
struct  WGPUStencilFaceState
 
struct  WGPUStorageTextureBindingLayout
 
struct  WGPUSupportedFeatures
 
struct  WGPUSupportedWGSLLanguageFeatures
 
struct  WGPUSurfaceCapabilities
 
struct  WGPUSurfaceColorManagement
 
struct  WGPUSurfaceConfiguration
 
struct  WGPUSurfaceDescriptor
 
struct  WGPUSurfaceSourceAndroidNativeWindow
 
struct  WGPUSurfaceSourceMetalLayer
 
struct  WGPUSurfaceSourceWaylandSurface
 
struct  WGPUSurfaceSourceWindowsHWND
 
struct  WGPUSurfaceSourceXCBWindow
 
struct  WGPUSurfaceSourceXlibWindow
 
struct  WGPUSurfaceTexture
 
struct  WGPUTexelCopyBufferLayout
 
struct  WGPUTextureBindingLayout
 
struct  WGPUTextureViewDescriptor
 
struct  WGPUVertexAttribute
 
struct  WGPUBindGroupDescriptor
 
struct  WGPUBindGroupLayoutEntry
 
struct  WGPUBlendState
 
struct  WGPUCompilationInfo
 
struct  WGPUComputePassDescriptor
 
struct  WGPUComputeState
 
struct  WGPUDepthStencilState
 
struct  WGPUDeviceDescriptor
 
struct  WGPUFutureWaitInfo
 
struct  WGPUInstanceDescriptor
 
struct  WGPURenderPassColorAttachment
 
struct  WGPUTexelCopyBufferInfo
 
struct  WGPUTexelCopyTextureInfo
 
struct  WGPUTextureDescriptor
 
struct  WGPUVertexBufferLayout
 
struct  WGPUBindGroupLayoutDescriptor
 
struct  WGPUColorTargetState
 
struct  WGPUComputePipelineDescriptor
 
struct  WGPURenderPassDescriptor
 
struct  WGPUVertexState
 
struct  WGPUFragmentState
 
struct  WGPURenderPipelineDescriptor
 

Macros

#define WGPU_ADAPTER_INFO_INIT
 
#define WGPU_BIND_GROUP_ENTRY_INIT
 
#define WGPU_BLEND_COMPONENT_INIT
 
#define WGPU_BUFFER_BINDING_LAYOUT_INIT
 
#define WGPU_BUFFER_DESCRIPTOR_INIT
 
#define WGPU_COLOR_INIT
 
#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT
 
#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT
 
#define WGPU_COMPILATION_MESSAGE_INIT
 
#define WGPU_CONSTANT_ENTRY_INIT
 
#define WGPU_EXTENT_3D_INIT
 
#define WGPU_FUTURE_INIT
 
#define WGPU_INSTANCE_CAPABILITIES_INIT
 
#define WGPU_LIMITS_INIT
 
#define WGPU_MULTISAMPLE_STATE_INIT
 
#define WGPU_ORIGIN_3D_INIT
 
#define WGPU_PASS_TIMESTAMP_WRITES_INIT
 
#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT
 
#define WGPU_PRIMITIVE_STATE_INIT
 
#define WGPU_QUERY_SET_DESCRIPTOR_INIT
 
#define WGPU_QUEUE_DESCRIPTOR_INIT
 
#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT
 
#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT
 
#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT
 
#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT
 
#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT
 
#define WGPU_SAMPLER_BINDING_LAYOUT_INIT
 
#define WGPU_SAMPLER_DESCRIPTOR_INIT
 
#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT
 
#define WGPU_SHADER_SOURCE_SPIRV_INIT
 
#define WGPU_SHADER_SOURCE_WGSL_INIT
 
#define WGPU_STENCIL_FACE_STATE_INIT
 
#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT
 
#define WGPU_SUPPORTED_FEATURES_INIT
 
#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT
 
#define WGPU_SURFACE_CAPABILITIES_INIT
 
#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT
 
#define WGPU_SURFACE_CONFIGURATION_INIT
 
#define WGPU_SURFACE_DESCRIPTOR_INIT
 
#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT
 
#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT
 
#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT
 
#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT
 
#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT
 
#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT
 
#define WGPU_SURFACE_TEXTURE_INIT
 
#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT
 
#define WGPU_TEXTURE_BINDING_LAYOUT_INIT
 
#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT
 
#define WGPU_VERTEX_ATTRIBUTE_INIT
 
#define WGPU_BIND_GROUP_DESCRIPTOR_INIT
 
#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT
 
#define WGPU_BLEND_STATE_INIT
 
#define WGPU_COMPILATION_INFO_INIT
 
#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT
 
#define WGPU_COMPUTE_STATE_INIT
 
#define WGPU_DEPTH_STENCIL_STATE_INIT
 
#define WGPU_DEVICE_DESCRIPTOR_INIT
 
#define WGPU_FUTURE_WAIT_INFO_INIT
 
#define WGPU_INSTANCE_DESCRIPTOR_INIT
 
#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT
 
#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT
 
#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT
 
#define WGPU_TEXTURE_DESCRIPTOR_INIT
 
#define WGPU_VERTEX_BUFFER_LAYOUT_INIT
 
#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT
 
#define WGPU_COLOR_TARGET_STATE_INIT
 
#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT
 
#define WGPU_RENDER_PASS_DESCRIPTOR_INIT
 
#define WGPU_VERTEX_STATE_INIT
 
#define WGPU_FRAGMENT_STATE_INIT
 
#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT
 

Typedefs

typedef struct WGPUAdapterInfo WGPUAdapterInfo
 
typedef struct WGPUBindGroupEntry WGPUBindGroupEntry
 
typedef struct WGPUBlendComponent WGPUBlendComponent
 
typedef struct WGPUBufferBindingLayout WGPUBufferBindingLayout
 
typedef struct WGPUBufferDescriptor WGPUBufferDescriptor
 
typedef struct WGPUColor WGPUColor
 
typedef struct WGPUCommandBufferDescriptor WGPUCommandBufferDescriptor
 
typedef struct WGPUCommandEncoderDescriptor WGPUCommandEncoderDescriptor
 
typedef struct WGPUCompilationMessage WGPUCompilationMessage
 
typedef struct WGPUConstantEntry WGPUConstantEntry
 
typedef struct WGPUExtent3D WGPUExtent3D
 
typedef struct WGPUFuture WGPUFuture
 
typedef struct WGPUInstanceCapabilities WGPUInstanceCapabilities
 
typedef struct WGPULimits WGPULimits
 
typedef struct WGPUMultisampleState WGPUMultisampleState
 
typedef struct WGPUOrigin3D WGPUOrigin3D
 
typedef struct WGPUPassTimestampWrites WGPUPassTimestampWrites
 
typedef struct WGPUPipelineLayoutDescriptor WGPUPipelineLayoutDescriptor
 
typedef struct WGPUPrimitiveState WGPUPrimitiveState
 
typedef struct WGPUQuerySetDescriptor WGPUQuerySetDescriptor
 
typedef struct WGPUQueueDescriptor WGPUQueueDescriptor
 
typedef struct WGPURenderBundleDescriptor WGPURenderBundleDescriptor
 
typedef struct WGPURenderBundleEncoderDescriptor WGPURenderBundleEncoderDescriptor
 
typedef struct WGPURenderPassDepthStencilAttachment WGPURenderPassDepthStencilAttachment
 
typedef struct WGPURenderPassMaxDrawCount WGPURenderPassMaxDrawCount
 
typedef struct WGPURequestAdapterOptions WGPURequestAdapterOptions
 
typedef struct WGPUSamplerBindingLayout WGPUSamplerBindingLayout
 
typedef struct WGPUSamplerDescriptor WGPUSamplerDescriptor
 
typedef struct WGPUShaderModuleDescriptor WGPUShaderModuleDescriptor
 
typedef struct WGPUShaderSourceSPIRV WGPUShaderSourceSPIRV
 
typedef struct WGPUShaderSourceWGSL WGPUShaderSourceWGSL
 
typedef struct WGPUStencilFaceState WGPUStencilFaceState
 
typedef struct WGPUStorageTextureBindingLayout WGPUStorageTextureBindingLayout
 
typedef struct WGPUSupportedFeatures WGPUSupportedFeatures
 
typedef struct WGPUSupportedWGSLLanguageFeatures WGPUSupportedWGSLLanguageFeatures
 
typedef struct WGPUSurfaceCapabilities WGPUSurfaceCapabilities
 
typedef struct WGPUSurfaceColorManagement WGPUSurfaceColorManagement
 
typedef struct WGPUSurfaceConfiguration WGPUSurfaceConfiguration
 
typedef struct WGPUSurfaceDescriptor WGPUSurfaceDescriptor
 
typedef struct WGPUSurfaceSourceAndroidNativeWindow WGPUSurfaceSourceAndroidNativeWindow
 
typedef struct WGPUSurfaceSourceMetalLayer WGPUSurfaceSourceMetalLayer
 
typedef struct WGPUSurfaceSourceWaylandSurface WGPUSurfaceSourceWaylandSurface
 
typedef struct WGPUSurfaceSourceWindowsHWND WGPUSurfaceSourceWindowsHWND
 
typedef struct WGPUSurfaceSourceXCBWindow WGPUSurfaceSourceXCBWindow
 
typedef struct WGPUSurfaceSourceXlibWindow WGPUSurfaceSourceXlibWindow
 
typedef struct WGPUSurfaceTexture WGPUSurfaceTexture
 
typedef struct WGPUTexelCopyBufferLayout WGPUTexelCopyBufferLayout
 
typedef struct WGPUTextureBindingLayout WGPUTextureBindingLayout
 
typedef struct WGPUTextureViewDescriptor WGPUTextureViewDescriptor
 
typedef struct WGPUVertexAttribute WGPUVertexAttribute
 
typedef struct WGPUBindGroupDescriptor WGPUBindGroupDescriptor
 
typedef struct WGPUBindGroupLayoutEntry WGPUBindGroupLayoutEntry
 
typedef struct WGPUBlendState WGPUBlendState
 
typedef struct WGPUCompilationInfo WGPUCompilationInfo
 
typedef struct WGPUComputePassDescriptor WGPUComputePassDescriptor
 
typedef struct WGPUComputeState WGPUComputeState
 
typedef struct WGPUDepthStencilState WGPUDepthStencilState
 
typedef struct WGPUDeviceDescriptor WGPUDeviceDescriptor
 
typedef struct WGPUFutureWaitInfo WGPUFutureWaitInfo
 
typedef struct WGPUInstanceDescriptor WGPUInstanceDescriptor
 
typedef struct WGPURenderPassColorAttachment WGPURenderPassColorAttachment
 
typedef struct WGPUTexelCopyBufferInfo WGPUTexelCopyBufferInfo
 
typedef struct WGPUTexelCopyTextureInfo WGPUTexelCopyTextureInfo
 
typedef struct WGPUTextureDescriptor WGPUTextureDescriptor
 
typedef struct WGPUVertexBufferLayout WGPUVertexBufferLayout
 
typedef struct WGPUBindGroupLayoutDescriptor WGPUBindGroupLayoutDescriptor
 
typedef struct WGPUColorTargetState WGPUColorTargetState
 
typedef struct WGPUComputePipelineDescriptor WGPUComputePipelineDescriptor
 
typedef struct WGPURenderPassDescriptor WGPURenderPassDescriptor
 
typedef struct WGPUVertexState WGPUVertexState
 
typedef struct WGPUFragmentState WGPUFragmentState
 
typedef struct WGPURenderPipelineDescriptor WGPURenderPipelineDescriptor
 

Detailed Description

Descriptors and other transparent structures.

Macro Definition Documentation

◆ WGPU_ADAPTER_INFO_INIT

#define WGPU_ADAPTER_INFO_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
/*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
/*.vendorID=*/0 _wgpu_COMMA \
/*.deviceID=*/0 _wgpu_COMMA \
})
WGPUAdapterType
Definition webgpu.h:290
@ WGPUBackendType_Undefined
Definition webgpu.h:315
#define WGPU_STRING_VIEW_INIT
Definition webgpu.h:155

Initializer for WGPUAdapterInfo.

Definition at line 1722 of file webgpu.h.

◆ WGPU_BIND_GROUP_ENTRY_INIT

#define WGPU_BIND_GROUP_ENTRY_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.binding=*/0 _wgpu_COMMA \
/*.buffer=*/NULL _wgpu_COMMA \
/*.offset=*/0 _wgpu_COMMA \
/*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
/*.sampler=*/NULL _wgpu_COMMA \
/*.textureView=*/NULL _wgpu_COMMA \
})
#define WGPU_WHOLE_SIZE
Definition webgpu.h:107

Initializer for WGPUBindGroupEntry.

Definition at line 1786 of file webgpu.h.

◆ WGPU_BLEND_COMPONENT_INIT

#define WGPU_BLEND_COMPONENT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
/*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
/*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
/*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
})
@ WGPUBlendFactor_Undefined
Definition webgpu.h:332
@ WGPUBlendOperation_Undefined
Definition webgpu.h:358

Initializer for WGPUBlendComponent.

Definition at line 1826 of file webgpu.h.

◆ WGPU_BUFFER_BINDING_LAYOUT_INIT

#define WGPU_BUFFER_BINDING_LAYOUT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
/*.hasDynamicOffset=*/0 _wgpu_COMMA \
/*.minBindingSize=*/0 _wgpu_COMMA \
})
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:379

Initializer for WGPUBufferBindingLayout.

Definition at line 1857 of file webgpu.h.

◆ WGPU_BUFFER_DESCRIPTOR_INIT

#define WGPU_BUFFER_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
/*.size=*/0 _wgpu_COMMA \
/*.mappedAtCreation=*/0 _wgpu_COMMA \
})
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1165

Initializer for WGPUBufferDescriptor.

Definition at line 1892 of file webgpu.h.

◆ WGPU_COLOR_INIT

#define WGPU_COLOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
/*.r=*/0. _wgpu_COMMA \
/*.g=*/0. _wgpu_COMMA \
/*.b=*/0. _wgpu_COMMA \
/*.a=*/0. _wgpu_COMMA \
})

Initializer for WGPUColor.

Definition at line 1929 of file webgpu.h.

◆ WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT

#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
})

Initializer for WGPUCommandBufferDescriptor.

Definition at line 1952 of file webgpu.h.

◆ WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT

#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
})

Initializer for WGPUCommandEncoderDescriptor.

Definition at line 1973 of file webgpu.h.

◆ WGPU_COMPILATION_MESSAGE_INIT

#define WGPU_COMPILATION_MESSAGE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
/*.lineNum=*/0 _wgpu_COMMA \
/*.linePos=*/0 _wgpu_COMMA \
/*.offset=*/0 _wgpu_COMMA \
/*.length=*/0 _wgpu_COMMA \
})
WGPUCompilationMessageType
Definition webgpu.h:448

Initializer for WGPUCompilationMessage.

Definition at line 2029 of file webgpu.h.

◆ WGPU_CONSTANT_ENTRY_INIT

#define WGPU_CONSTANT_ENTRY_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.value=*/0. _wgpu_COMMA \
})

Initializer for WGPUConstantEntry.

Definition at line 2063 of file webgpu.h.

◆ WGPU_EXTENT_3D_INIT

#define WGPU_EXTENT_3D_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
/*.width=*/0 _wgpu_COMMA \
/*.height=*/1 _wgpu_COMMA \
/*.depthOrArrayLayers=*/1 _wgpu_COMMA \
})

Initializer for WGPUExtent3D.

Definition at line 2090 of file webgpu.h.

◆ WGPU_FUTURE_INIT

#define WGPU_FUTURE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
/*.id=*/0 _wgpu_COMMA \
})

Initializer for WGPUFuture.

Definition at line 2113 of file webgpu.h.

◆ WGPU_INSTANCE_CAPABILITIES_INIT

#define WGPU_INSTANCE_CAPABILITIES_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUInstanceCapabilities, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.timedWaitAnyEnable=*/0 _wgpu_COMMA \
/*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
})

Initializer for WGPUInstanceCapabilities.

Definition at line 2141 of file webgpu.h.

◆ WGPU_LIMITS_INIT

#define WGPU_LIMITS_INIT

Initializer for WGPULimits.

Definition at line 2281 of file webgpu.h.

◆ WGPU_MULTISAMPLE_STATE_INIT

#define WGPU_MULTISAMPLE_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.count=*/1 _wgpu_COMMA \
/*.mask=*/0xFFFFFFFF _wgpu_COMMA \
/*.alphaToCoverageEnabled=*/0 _wgpu_COMMA \
})

Initializer for WGPUMultisampleState.

Definition at line 2338 of file webgpu.h.

◆ WGPU_ORIGIN_3D_INIT

#define WGPU_ORIGIN_3D_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
/*.x=*/0 _wgpu_COMMA \
/*.y=*/0 _wgpu_COMMA \
/*.z=*/0 _wgpu_COMMA \
})

Initializer for WGPUOrigin3D.

Definition at line 2366 of file webgpu.h.

◆ WGPU_PASS_TIMESTAMP_WRITES_INIT

#define WGPU_PASS_TIMESTAMP_WRITES_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.querySet=*/NULL _wgpu_COMMA \
/*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
/*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
})
#define WGPU_QUERY_SET_INDEX_UNDEFINED
Definition webgpu.h:105

Initializer for WGPUPassTimestampWrites.

Definition at line 2396 of file webgpu.h.

◆ WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT

#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
/*.bindGroupLayouts=*/NULL _wgpu_COMMA \
})

Initializer for WGPUPipelineLayoutDescriptor.

Definition at line 2427 of file webgpu.h.

◆ WGPU_PRIMITIVE_STATE_INIT

#define WGPU_PRIMITIVE_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
/*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
/*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
/*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
/*.unclippedDepth=*/0 _wgpu_COMMA \
})
WGPUIndexFormat
Definition webgpu.h:596
@ WGPUCullMode_Undefined
Definition webgpu.h:500
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:719
@ WGPUFrontFace_Undefined
Definition webgpu.h:590

Initializer for WGPUPrimitiveState.

Definition at line 2473 of file webgpu.h.

◆ WGPU_QUERY_SET_DESCRIPTOR_INIT

#define WGPU_QUERY_SET_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
/*.count=*/0 _wgpu_COMMA \
})
WGPUQueryType
Definition webgpu.h:728

Initializer for WGPUQuerySetDescriptor.

Definition at line 2506 of file webgpu.h.

◆ WGPU_QUEUE_DESCRIPTOR_INIT

#define WGPU_QUEUE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
})

Initializer for WGPUQueueDescriptor.

Definition at line 2529 of file webgpu.h.

◆ WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT

#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
})

Initializer for WGPURenderBundleDescriptor.

Definition at line 2550 of file webgpu.h.

◆ WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT

#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.colorFormatCount=*/0 _wgpu_COMMA \
/*.colorFormats=*/NULL _wgpu_COMMA \
/*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.sampleCount=*/1 _wgpu_COMMA \
/*.depthReadOnly=*/0 _wgpu_COMMA \
/*.stencilReadOnly=*/0 _wgpu_COMMA \
})
@ WGPUTextureFormat_Undefined
Definition webgpu.h:912

Initializer for WGPURenderBundleEncoderDescriptor.

Definition at line 2595 of file webgpu.h.

◆ WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT

#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.view=*/NULL _wgpu_COMMA \
/*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
/*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
/*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
/*.depthReadOnly=*/0 _wgpu_COMMA \
/*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
/*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
/*.stencilClearValue=*/0 _wgpu_COMMA \
/*.stencilReadOnly=*/0 _wgpu_COMMA \
})
#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED
Definition webgpu.h:100
@ WGPULoadOp_Undefined
Definition webgpu.h:612
@ WGPUStoreOp_Undefined
Definition webgpu.h:840

Initializer for WGPURenderPassDepthStencilAttachment.

Definition at line 2659 of file webgpu.h.

◆ WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT

#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
}) _wgpu_COMMA \
/*.maxDrawCount=*/50000000 _wgpu_COMMA \
})
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:758

Initializer for WGPURenderPassMaxDrawCount.

Definition at line 2686 of file webgpu.h.

◆ WGPU_REQUEST_ADAPTER_OPTIONS_INIT

#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
/*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
/*.forceFallbackAdapter=*/0 _wgpu_COMMA \
/*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
/*.compatibleSurface=*/NULL _wgpu_COMMA \
})
@ WGPUPowerPreference_Undefined
Definition webgpu.h:664
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:539

Initializer for WGPURequestAdapterOptions.

Definition at line 2740 of file webgpu.h.

◆ WGPU_SAMPLER_BINDING_LAYOUT_INIT

#define WGPU_SAMPLER_BINDING_LAYOUT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
})
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:781

Initializer for WGPUSamplerBindingLayout.

Definition at line 2766 of file webgpu.h.

◆ WGPU_SAMPLER_DESCRIPTOR_INIT

#define WGPU_SAMPLER_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
/*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
/*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
/*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
/*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
/*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
/*.lodMinClamp=*/0.f _wgpu_COMMA \
/*.lodMaxClamp=*/32.f _wgpu_COMMA \
/*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
/*.maxAnisotropy=*/1 _wgpu_COMMA \
})
@ WGPUCompareFunction_Undefined
Definition webgpu.h:430
@ WGPUAddressMode_Undefined
Definition webgpu.h:303
@ WGPUFilterMode_Undefined
Definition webgpu.h:579
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:631

Initializer for WGPUSamplerDescriptor.

Definition at line 2853 of file webgpu.h.

◆ WGPU_SHADER_MODULE_DESCRIPTOR_INIT

#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
})

Initializer for WGPUShaderModuleDescriptor.

Definition at line 2884 of file webgpu.h.

◆ WGPU_SHADER_SOURCE_SPIRV_INIT

#define WGPU_SHADER_SOURCE_SPIRV_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
}) _wgpu_COMMA \
/*.codeSize=*/0 _wgpu_COMMA \
/*.code=*/NULL _wgpu_COMMA \
})
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:756

Initializer for WGPUShaderSourceSPIRV.

Definition at line 2907 of file webgpu.h.

◆ WGPU_SHADER_SOURCE_WGSL_INIT

#define WGPU_SHADER_SOURCE_WGSL_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
}) _wgpu_COMMA \
/*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
})
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:757

Initializer for WGPUShaderSourceWGSL.

Definition at line 2932 of file webgpu.h.

◆ WGPU_STENCIL_FACE_STATE_INIT

#define WGPU_STENCIL_FACE_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
/*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
/*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
/*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
/*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
})
@ WGPUStencilOperation_Undefined
Definition webgpu.h:804

Initializer for WGPUStencilFaceState.

Definition at line 2977 of file webgpu.h.

◆ WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT

#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
/*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
})
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1037
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:828

Initializer for WGPUStorageTextureBindingLayout.

Definition at line 3012 of file webgpu.h.

◆ WGPU_SUPPORTED_FEATURES_INIT

#define WGPU_SUPPORTED_FEATURES_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
/*.featureCount=*/0 _wgpu_COMMA \
/*.features=*/NULL _wgpu_COMMA \
})

Initializer for WGPUSupportedFeatures.

Definition at line 3036 of file webgpu.h.

◆ WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT

#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
/*.featureCount=*/0 _wgpu_COMMA \
/*.features=*/NULL _wgpu_COMMA \
})

Initializer for WGPUSupportedWGSLLanguageFeatures.

Definition at line 3058 of file webgpu.h.

◆ WGPU_SURFACE_CAPABILITIES_INIT

#define WGPU_SURFACE_CAPABILITIES_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
/*.formatCount=*/0 _wgpu_COMMA \
/*.formats=*/NULL _wgpu_COMMA \
/*.presentModeCount=*/0 _wgpu_COMMA \
/*.presentModes=*/NULL _wgpu_COMMA \
/*.alphaModeCount=*/0 _wgpu_COMMA \
/*.alphaModes=*/NULL _wgpu_COMMA \
})
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1281

Initializer for WGPUSurfaceCapabilities.

Definition at line 3114 of file webgpu.h.

◆ WGPU_SURFACE_COLOR_MANAGEMENT_INIT

#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
}) _wgpu_COMMA \
/*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
/*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
})
WGPUToneMappingMode
Definition webgpu.h:1047
WGPUPredefinedColorSpace
Definition webgpu.h:670
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:765

Initializer for WGPUSurfaceColorManagement.

Definition at line 3145 of file webgpu.h.

◆ WGPU_SURFACE_CONFIGURATION_INIT

#define WGPU_SURFACE_CONFIGURATION_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.device=*/NULL _wgpu_COMMA \
/*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
/*.width=*/0 _wgpu_COMMA \
/*.height=*/0 _wgpu_COMMA \
/*.viewFormatCount=*/0 _wgpu_COMMA \
/*.viewFormats=*/NULL _wgpu_COMMA \
/*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
/*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
})
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1301
@ WGPUPresentMode_Undefined
Definition webgpu.h:684
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:463

Initializer for WGPUSurfaceConfiguration.

Definition at line 3226 of file webgpu.h.

◆ WGPU_SURFACE_DESCRIPTOR_INIT

#define WGPU_SURFACE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
})

Initializer for WGPUSurfaceDescriptor.

Definition at line 3261 of file webgpu.h.

◆ WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT

#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
}) _wgpu_COMMA \
/*.window=*/NULL _wgpu_COMMA \
})
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:763

Initializer for WGPUSurfaceSourceAndroidNativeWindow.

Definition at line 3284 of file webgpu.h.

◆ WGPU_SURFACE_SOURCE_METAL_LAYER_INIT

#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
}) _wgpu_COMMA \
/*.layer=*/NULL _wgpu_COMMA \
})
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:759

Initializer for WGPUSurfaceSourceMetalLayer.

Definition at line 3310 of file webgpu.h.

◆ WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT

#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
}) _wgpu_COMMA \
/*.display=*/NULL _wgpu_COMMA \
/*.surface=*/NULL _wgpu_COMMA \
})
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:762

Initializer for WGPUSurfaceSourceWaylandSurface.

Definition at line 3342 of file webgpu.h.

◆ WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT

#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
}) _wgpu_COMMA \
/*.hinstance=*/NULL _wgpu_COMMA \
/*.hwnd=*/NULL _wgpu_COMMA \
})
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:760

Initializer for WGPUSurfaceSourceWindowsHWND.

Definition at line 3376 of file webgpu.h.

◆ WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT

#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
}) _wgpu_COMMA \
/*.connection=*/NULL _wgpu_COMMA \
/*.window=*/0 _wgpu_COMMA \
})
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:764

Initializer for WGPUSurfaceSourceXCBWindow.

Definition at line 3409 of file webgpu.h.

◆ WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT

#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
/*.next=*/NULL _wgpu_COMMA \
/*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
}) _wgpu_COMMA \
/*.display=*/NULL _wgpu_COMMA \
/*.window=*/0 _wgpu_COMMA \
})
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:761

Initializer for WGPUSurfaceSourceXlibWindow.

Definition at line 3442 of file webgpu.h.

◆ WGPU_SURFACE_TEXTURE_INIT

#define WGPU_SURFACE_TEXTURE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.texture=*/NULL _wgpu_COMMA \
/*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
})
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:849

Initializer for WGPUSurfaceTexture.

Definition at line 3477 of file webgpu.h.

◆ WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT

#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
/*.offset=*/0 _wgpu_COMMA \
/*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
/*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
})
#define WGPU_COPY_STRIDE_UNDEFINED
Definition webgpu.h:95

Initializer for WGPUTexelCopyBufferLayout.

Definition at line 3504 of file webgpu.h.

◆ WGPU_TEXTURE_BINDING_LAYOUT_INIT

#define WGPU_TEXTURE_BINDING_LAYOUT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
/*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
/*.multisampled=*/0 _wgpu_COMMA \
})
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1023

Initializer for WGPUTextureBindingLayout.

Definition at line 3538 of file webgpu.h.

◆ WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT

#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
/*.baseMipLevel=*/0 _wgpu_COMMA \
/*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
/*.baseArrayLayer=*/0 _wgpu_COMMA \
/*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
/*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
/*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
})
#define WGPU_MIP_LEVEL_COUNT_UNDEFINED
Definition webgpu.h:104
#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED
Definition webgpu.h:94
@ WGPUTextureAspect_Undefined
Definition webgpu.h:888

Initializer for WGPUTextureViewDescriptor.

Definition at line 3596 of file webgpu.h.

◆ WGPU_VERTEX_ATTRIBUTE_INIT

#define WGPU_VERTEX_ATTRIBUTE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
/*.offset=*/0 _wgpu_COMMA \
/*.shaderLocation=*/0 _wgpu_COMMA \
})
WGPUVertexFormat
Definition webgpu.h:1053

Initializer for WGPUVertexAttribute.

Definition at line 3631 of file webgpu.h.

◆ WGPU_BIND_GROUP_DESCRIPTOR_INIT

#define WGPU_BIND_GROUP_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.layout=*/NULL _wgpu_COMMA \
/*.entryCount=*/0 _wgpu_COMMA \
/*.entries=*/NULL _wgpu_COMMA \
})

Initializer for WGPUBindGroupDescriptor.

Definition at line 3666 of file webgpu.h.

◆ WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT

#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.binding=*/0 _wgpu_COMMA \
/*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
/*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
/*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
/*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
/*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
})
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1260

Initializer for WGPUBindGroupLayoutEntry.

Definition at line 3708 of file webgpu.h.

◆ WGPU_BLEND_STATE_INIT

#define WGPU_BLEND_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
/*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
/*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
})
#define WGPU_BLEND_COMPONENT_INIT
Definition webgpu.h:1826

Initializer for WGPUBlendState.

Definition at line 3735 of file webgpu.h.

◆ WGPU_COMPILATION_INFO_INIT

#define WGPU_COMPILATION_INFO_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.messageCount=*/0 _wgpu_COMMA \
/*.messages=*/NULL _wgpu_COMMA \
})

Initializer for WGPUCompilationInfo.

Definition at line 3761 of file webgpu.h.

◆ WGPU_COMPUTE_PASS_DESCRIPTOR_INIT

#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.timestampWrites=*/NULL _wgpu_COMMA \
})

Initializer for WGPUComputePassDescriptor.

Definition at line 3787 of file webgpu.h.

◆ WGPU_COMPUTE_STATE_INIT

#define WGPU_COMPUTE_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.module=*/NULL _wgpu_COMMA \
/*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.constantCount=*/0 _wgpu_COMMA \
/*.constants=*/NULL _wgpu_COMMA \
})

Initializer for WGPUComputeState.

Definition at line 3821 of file webgpu.h.

◆ WGPU_DEPTH_STENCIL_STATE_INIT

#define WGPU_DEPTH_STENCIL_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
/*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
/*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
/*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
/*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
/*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
/*.depthBias=*/0 _wgpu_COMMA \
/*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
/*.depthBiasClamp=*/0.f _wgpu_COMMA \
})
WGPUCompareFunction
Definition webgpu.h:425
@ WGPUOptionalBool_Undefined
Definition webgpu.h:640
#define WGPU_STENCIL_FACE_STATE_INIT
Definition webgpu.h:2977

Initializer for WGPUDepthStencilState.

Definition at line 3887 of file webgpu.h.

◆ WGPU_DEVICE_DESCRIPTOR_INIT

#define WGPU_DEVICE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.requiredFeatureCount=*/0 _wgpu_COMMA \
/*.requiredFeatures=*/NULL _wgpu_COMMA \
/*.requiredLimits=*/NULL _wgpu_COMMA \
/*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
/*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
/*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
})
#define WGPU_QUEUE_DESCRIPTOR_INIT
Definition webgpu.h:2529
#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT
Definition webgpu.h:1549
#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT
Definition webgpu.h:1663

Initializer for WGPUDeviceDescriptor.

Definition at line 3946 of file webgpu.h.

◆ WGPU_FUTURE_WAIT_INFO_INIT

#define WGPU_FUTURE_WAIT_INFO_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
/*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
/*.completed=*/0 _wgpu_COMMA \
})
#define WGPU_FUTURE_INIT
Definition webgpu.h:2113

Initializer for WGPUFutureWaitInfo.

Definition at line 3980 of file webgpu.h.

◆ WGPU_INSTANCE_DESCRIPTOR_INIT

#define WGPU_INSTANCE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.capabilities=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \
})
#define WGPU_INSTANCE_CAPABILITIES_INIT
Definition webgpu.h:2141

Initializer for WGPUInstanceDescriptor.

Definition at line 4001 of file webgpu.h.

◆ WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT

#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.view=*/NULL _wgpu_COMMA \
/*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
/*.resolveTarget=*/NULL _wgpu_COMMA \
/*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
/*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
/*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
})
#define WGPU_DEPTH_SLICE_UNDEFINED
Definition webgpu.h:101
WGPULoadOp
Definition webgpu.h:607
WGPUStoreOp
Definition webgpu.h:835
#define WGPU_COLOR_INIT
Definition webgpu.h:1929

Initializer for WGPURenderPassColorAttachment.

Definition at line 4043 of file webgpu.h.

◆ WGPU_TEXEL_COPY_BUFFER_INFO_INIT

#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
/*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
/*.buffer=*/NULL _wgpu_COMMA \
})
#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT
Definition webgpu.h:3504

Initializer for WGPUTexelCopyBufferInfo.

Definition at line 4070 of file webgpu.h.

◆ WGPU_TEXEL_COPY_TEXTURE_INFO_INIT

#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
/*.texture=*/NULL _wgpu_COMMA \
/*.mipLevel=*/0 _wgpu_COMMA \
/*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
/*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
})
#define WGPU_ORIGIN_3D_INIT
Definition webgpu.h:2366

Initializer for WGPUTexelCopyTextureInfo.

Definition at line 4103 of file webgpu.h.

◆ WGPU_TEXTURE_DESCRIPTOR_INIT

#define WGPU_TEXTURE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
/*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
/*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
/*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.mipLevelCount=*/1 _wgpu_COMMA \
/*.sampleCount=*/1 _wgpu_COMMA \
/*.viewFormatCount=*/0 _wgpu_COMMA \
/*.viewFormats=*/NULL _wgpu_COMMA \
})
@ WGPUTextureDimension_Undefined
Definition webgpu.h:900
#define WGPU_EXTENT_3D_INIT
Definition webgpu.h:2090

Initializer for WGPUTextureDescriptor.

Definition at line 4161 of file webgpu.h.

◆ WGPU_VERTEX_BUFFER_LAYOUT_INIT

#define WGPU_VERTEX_BUFFER_LAYOUT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
/*.arrayStride=*/0 _wgpu_COMMA \
/*.attributeCount=*/0 _wgpu_COMMA \
/*.attributes=*/NULL _wgpu_COMMA \
})
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1103

Initializer for WGPUVertexBufferLayout.

Definition at line 4213 of file webgpu.h.

◆ WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT

#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.entryCount=*/0 _wgpu_COMMA \
/*.entries=*/NULL _wgpu_COMMA \
})

Initializer for WGPUBindGroupLayoutDescriptor.

Definition at line 4245 of file webgpu.h.

◆ WGPU_COLOR_TARGET_STATE_INIT

#define WGPU_COLOR_TARGET_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.blend=*/NULL _wgpu_COMMA \
/*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
})
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1234

Initializer for WGPUColorTargetState.

Definition at line 4278 of file webgpu.h.

◆ WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT

#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.layout=*/NULL _wgpu_COMMA \
/*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
})
#define WGPU_COMPUTE_STATE_INIT
Definition webgpu.h:3821

Initializer for WGPUComputePipelineDescriptor.

Definition at line 4309 of file webgpu.h.

◆ WGPU_RENDER_PASS_DESCRIPTOR_INIT

#define WGPU_RENDER_PASS_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.colorAttachmentCount=*/0 _wgpu_COMMA \
/*.colorAttachments=*/NULL _wgpu_COMMA \
/*.depthStencilAttachment=*/NULL _wgpu_COMMA \
/*.occlusionQuerySet=*/NULL _wgpu_COMMA \
/*.timestampWrites=*/NULL _wgpu_COMMA \
})

Initializer for WGPURenderPassDescriptor.

Definition at line 4352 of file webgpu.h.

◆ WGPU_VERTEX_STATE_INIT

#define WGPU_VERTEX_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.module=*/NULL _wgpu_COMMA \
/*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.constantCount=*/0 _wgpu_COMMA \
/*.constants=*/NULL _wgpu_COMMA \
/*.bufferCount=*/0 _wgpu_COMMA \
/*.buffers=*/NULL _wgpu_COMMA \
})

Initializer for WGPUVertexState.

Definition at line 4398 of file webgpu.h.

◆ WGPU_FRAGMENT_STATE_INIT

#define WGPU_FRAGMENT_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.module=*/NULL _wgpu_COMMA \
/*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.constantCount=*/0 _wgpu_COMMA \
/*.constants=*/NULL _wgpu_COMMA \
/*.targetCount=*/0 _wgpu_COMMA \
/*.targets=*/NULL _wgpu_COMMA \
})

Initializer for WGPUFragmentState.

Definition at line 4444 of file webgpu.h.

◆ WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT

#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
/*.layout=*/NULL _wgpu_COMMA \
/*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
/*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
/*.depthStencil=*/NULL _wgpu_COMMA \
/*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
/*.fragment=*/NULL _wgpu_COMMA \
})
#define WGPU_PRIMITIVE_STATE_INIT
Definition webgpu.h:2473
#define WGPU_VERTEX_STATE_INIT
Definition webgpu.h:4398
#define WGPU_MULTISAMPLE_STATE_INIT
Definition webgpu.h:2338

Initializer for WGPURenderPipelineDescriptor.

Definition at line 4494 of file webgpu.h.

Typedef Documentation

◆ WGPUAdapterInfo

typedef struct WGPUAdapterInfo WGPUAdapterInfo

Default values can be set using WGPU_ADAPTER_INFO_INIT as initializer.

◆ WGPUBindGroupEntry

typedef struct WGPUBindGroupEntry WGPUBindGroupEntry

Default values can be set using WGPU_BIND_GROUP_ENTRY_INIT as initializer.

◆ WGPUBlendComponent

typedef struct WGPUBlendComponent WGPUBlendComponent

Default values can be set using WGPU_BLEND_COMPONENT_INIT as initializer.

◆ WGPUBufferBindingLayout

typedef struct WGPUBufferBindingLayout WGPUBufferBindingLayout

Default values can be set using WGPU_BUFFER_BINDING_LAYOUT_INIT as initializer.

◆ WGPUBufferDescriptor

typedef struct WGPUBufferDescriptor WGPUBufferDescriptor

Default values can be set using WGPU_BUFFER_DESCRIPTOR_INIT as initializer.

◆ WGPUColor

typedef struct WGPUColor WGPUColor

An RGBA color. Represents a f32, i32, or u32 color using Double-as-Supertype.

If any channel is non-finite, produces a Non-Finite Float Value Errors.

Default values can be set using WGPU_COLOR_INIT as initializer.

◆ WGPUCommandBufferDescriptor

typedef struct WGPUCommandBufferDescriptor WGPUCommandBufferDescriptor

Default values can be set using WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT as initializer.

◆ WGPUCommandEncoderDescriptor

typedef struct WGPUCommandEncoderDescriptor WGPUCommandEncoderDescriptor

Default values can be set using WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT as initializer.

◆ WGPUCompilationMessage

typedef struct WGPUCompilationMessage WGPUCompilationMessage

This is an Implementation-Allocated Struct Chain root. Arbitrary chains must be handled gracefully by the application!

Default values can be set using WGPU_COMPILATION_MESSAGE_INIT as initializer.

◆ WGPUConstantEntry

typedef struct WGPUConstantEntry WGPUConstantEntry

Default values can be set using WGPU_CONSTANT_ENTRY_INIT as initializer.

◆ WGPUExtent3D

typedef struct WGPUExtent3D WGPUExtent3D

Default values can be set using WGPU_EXTENT_3D_INIT as initializer.

◆ WGPUFuture

typedef struct WGPUFuture WGPUFuture

Opaque handle to an asynchronous operation. See Asynchronous Operations for more information.

Default values can be set using WGPU_FUTURE_INIT as initializer.

◆ WGPUInstanceCapabilities

typedef struct WGPUInstanceCapabilities WGPUInstanceCapabilities

Features enabled on the WGPUInstance

Default values can be set using WGPU_INSTANCE_CAPABILITIES_INIT as initializer.

◆ WGPULimits

typedef struct WGPULimits WGPULimits

Default values can be set using WGPU_LIMITS_INIT as initializer.

◆ WGPUMultisampleState

typedef struct WGPUMultisampleState WGPUMultisampleState

Default values can be set using WGPU_MULTISAMPLE_STATE_INIT as initializer.

◆ WGPUOrigin3D

typedef struct WGPUOrigin3D WGPUOrigin3D

Default values can be set using WGPU_ORIGIN_3D_INIT as initializer.

◆ WGPUPassTimestampWrites

typedef struct WGPUPassTimestampWrites WGPUPassTimestampWrites

Default values can be set using WGPU_PASS_TIMESTAMP_WRITES_INIT as initializer.

◆ WGPUPipelineLayoutDescriptor

typedef struct WGPUPipelineLayoutDescriptor WGPUPipelineLayoutDescriptor

Default values can be set using WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT as initializer.

◆ WGPUPrimitiveState

typedef struct WGPUPrimitiveState WGPUPrimitiveState

Default values can be set using WGPU_PRIMITIVE_STATE_INIT as initializer.

◆ WGPUQuerySetDescriptor

typedef struct WGPUQuerySetDescriptor WGPUQuerySetDescriptor

Default values can be set using WGPU_QUERY_SET_DESCRIPTOR_INIT as initializer.

◆ WGPUQueueDescriptor

typedef struct WGPUQueueDescriptor WGPUQueueDescriptor

Default values can be set using WGPU_QUEUE_DESCRIPTOR_INIT as initializer.

◆ WGPURenderBundleDescriptor

typedef struct WGPURenderBundleDescriptor WGPURenderBundleDescriptor

Default values can be set using WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT as initializer.

◆ WGPURenderBundleEncoderDescriptor

typedef struct WGPURenderBundleEncoderDescriptor WGPURenderBundleEncoderDescriptor

Default values can be set using WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT as initializer.

◆ WGPURenderPassDepthStencilAttachment

typedef struct WGPURenderPassDepthStencilAttachment WGPURenderPassDepthStencilAttachment

Default values can be set using WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT as initializer.

◆ WGPURenderPassMaxDrawCount

typedef struct WGPURenderPassMaxDrawCount WGPURenderPassMaxDrawCount

Default values can be set using WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT as initializer.

◆ WGPURequestAdapterOptions

typedef struct WGPURequestAdapterOptions WGPURequestAdapterOptions

Default values can be set using WGPU_REQUEST_ADAPTER_OPTIONS_INIT as initializer.

◆ WGPUSamplerBindingLayout

typedef struct WGPUSamplerBindingLayout WGPUSamplerBindingLayout

Default values can be set using WGPU_SAMPLER_BINDING_LAYOUT_INIT as initializer.

◆ WGPUSamplerDescriptor

typedef struct WGPUSamplerDescriptor WGPUSamplerDescriptor

Default values can be set using WGPU_SAMPLER_DESCRIPTOR_INIT as initializer.

◆ WGPUShaderModuleDescriptor

typedef struct WGPUShaderModuleDescriptor WGPUShaderModuleDescriptor

Default values can be set using WGPU_SHADER_MODULE_DESCRIPTOR_INIT as initializer.

◆ WGPUShaderSourceSPIRV

typedef struct WGPUShaderSourceSPIRV WGPUShaderSourceSPIRV

Default values can be set using WGPU_SHADER_SOURCE_SPIRV_INIT as initializer.

◆ WGPUShaderSourceWGSL

typedef struct WGPUShaderSourceWGSL WGPUShaderSourceWGSL

Default values can be set using WGPU_SHADER_SOURCE_WGSL_INIT as initializer.

◆ WGPUStencilFaceState

typedef struct WGPUStencilFaceState WGPUStencilFaceState

Default values can be set using WGPU_STENCIL_FACE_STATE_INIT as initializer.

◆ WGPUStorageTextureBindingLayout

typedef struct WGPUStorageTextureBindingLayout WGPUStorageTextureBindingLayout

Default values can be set using WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT as initializer.

◆ WGPUSupportedFeatures

typedef struct WGPUSupportedFeatures WGPUSupportedFeatures

Default values can be set using WGPU_SUPPORTED_FEATURES_INIT as initializer.

◆ WGPUSupportedWGSLLanguageFeatures

typedef struct WGPUSupportedWGSLLanguageFeatures WGPUSupportedWGSLLanguageFeatures

Default values can be set using WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT as initializer.

◆ WGPUSurfaceCapabilities

typedef struct WGPUSurfaceCapabilities WGPUSurfaceCapabilities

Filled by wgpuSurfaceGetCapabilities with what's supported for wgpuSurfaceConfigure for a pair of WGPUSurface and WGPUAdapter.

Default values can be set using WGPU_SURFACE_CAPABILITIES_INIT as initializer.

◆ WGPUSurfaceColorManagement

typedef struct WGPUSurfaceColorManagement WGPUSurfaceColorManagement

Extension of WGPUSurfaceConfiguration for color spaces and HDR.

Default values can be set using WGPU_SURFACE_COLOR_MANAGEMENT_INIT as initializer.

◆ WGPUSurfaceConfiguration

typedef struct WGPUSurfaceConfiguration WGPUSurfaceConfiguration

Options to wgpuSurfaceConfigure for defining how a WGPUSurface will be rendered to and presented to the user. See Surface Configuration for more details.

Default values can be set using WGPU_SURFACE_CONFIGURATION_INIT as initializer.

◆ WGPUSurfaceDescriptor

typedef struct WGPUSurfaceDescriptor WGPUSurfaceDescriptor

The root descriptor for the creation of an WGPUSurface with wgpuInstanceCreateSurface. It isn't sufficient by itself and must have one of the WGPUSurfaceSource* in its chain. See Surface Creation for more details.

Default values can be set using WGPU_SURFACE_DESCRIPTOR_INIT as initializer.

◆ WGPUSurfaceSourceAndroidNativeWindow

typedef struct WGPUSurfaceSourceAndroidNativeWindow WGPUSurfaceSourceAndroidNativeWindow

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an Android ANativeWindow.

Default values can be set using WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT as initializer.

◆ WGPUSurfaceSourceMetalLayer

typedef struct WGPUSurfaceSourceMetalLayer WGPUSurfaceSourceMetalLayer

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a CAMetalLayer.

Default values can be set using WGPU_SURFACE_SOURCE_METAL_LAYER_INIT as initializer.

◆ WGPUSurfaceSourceWaylandSurface

typedef struct WGPUSurfaceSourceWaylandSurface WGPUSurfaceSourceWaylandSurface

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a Wayland wl_surface.

Default values can be set using WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT as initializer.

◆ WGPUSurfaceSourceWindowsHWND

typedef struct WGPUSurfaceSourceWindowsHWND WGPUSurfaceSourceWindowsHWND

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping a Windows HWND.

Default values can be set using WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT as initializer.

◆ WGPUSurfaceSourceXCBWindow

typedef struct WGPUSurfaceSourceXCBWindow WGPUSurfaceSourceXCBWindow

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an XCB xcb_window_t.

Default values can be set using WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT as initializer.

◆ WGPUSurfaceSourceXlibWindow

typedef struct WGPUSurfaceSourceXlibWindow WGPUSurfaceSourceXlibWindow

Chained in WGPUSurfaceDescriptor to make an WGPUSurface wrapping an Xlib Window.

Default values can be set using WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT as initializer.

◆ WGPUSurfaceTexture

typedef struct WGPUSurfaceTexture WGPUSurfaceTexture

Queried each frame from a WGPUSurface to get a WGPUTexture to render to along with some metadata. See Presenting to Surface for more details.

Default values can be set using WGPU_SURFACE_TEXTURE_INIT as initializer.

◆ WGPUTexelCopyBufferLayout

typedef struct WGPUTexelCopyBufferLayout WGPUTexelCopyBufferLayout

Default values can be set using WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT as initializer.

◆ WGPUTextureBindingLayout

typedef struct WGPUTextureBindingLayout WGPUTextureBindingLayout

Default values can be set using WGPU_TEXTURE_BINDING_LAYOUT_INIT as initializer.

◆ WGPUTextureViewDescriptor

typedef struct WGPUTextureViewDescriptor WGPUTextureViewDescriptor

Default values can be set using WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT as initializer.

◆ WGPUVertexAttribute

typedef struct WGPUVertexAttribute WGPUVertexAttribute

Default values can be set using WGPU_VERTEX_ATTRIBUTE_INIT as initializer.

◆ WGPUBindGroupDescriptor

typedef struct WGPUBindGroupDescriptor WGPUBindGroupDescriptor

Default values can be set using WGPU_BIND_GROUP_DESCRIPTOR_INIT as initializer.

◆ WGPUBindGroupLayoutEntry

typedef struct WGPUBindGroupLayoutEntry WGPUBindGroupLayoutEntry

Default values can be set using WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT as initializer.

◆ WGPUBlendState

typedef struct WGPUBlendState WGPUBlendState

Default values can be set using WGPU_BLEND_STATE_INIT as initializer.

◆ WGPUCompilationInfo

typedef struct WGPUCompilationInfo WGPUCompilationInfo

This is an Implementation-Allocated Struct Chain root. Arbitrary chains must be handled gracefully by the application!

Default values can be set using WGPU_COMPILATION_INFO_INIT as initializer.

◆ WGPUComputePassDescriptor

typedef struct WGPUComputePassDescriptor WGPUComputePassDescriptor

Default values can be set using WGPU_COMPUTE_PASS_DESCRIPTOR_INIT as initializer.

◆ WGPUComputeState

typedef struct WGPUComputeState WGPUComputeState

Default values can be set using WGPU_COMPUTE_STATE_INIT as initializer.

◆ WGPUDepthStencilState

typedef struct WGPUDepthStencilState WGPUDepthStencilState

Default values can be set using WGPU_DEPTH_STENCIL_STATE_INIT as initializer.

◆ WGPUDeviceDescriptor

typedef struct WGPUDeviceDescriptor WGPUDeviceDescriptor

Default values can be set using WGPU_DEVICE_DESCRIPTOR_INIT as initializer.

◆ WGPUFutureWaitInfo

typedef struct WGPUFutureWaitInfo WGPUFutureWaitInfo

Struct holding a future to wait on, and a completed boolean flag.

Default values can be set using WGPU_FUTURE_WAIT_INFO_INIT as initializer.

◆ WGPUInstanceDescriptor

typedef struct WGPUInstanceDescriptor WGPUInstanceDescriptor

Default values can be set using WGPU_INSTANCE_DESCRIPTOR_INIT as initializer.

◆ WGPURenderPassColorAttachment

typedef struct WGPURenderPassColorAttachment WGPURenderPassColorAttachment

Default values can be set using WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT as initializer.

◆ WGPUTexelCopyBufferInfo

typedef struct WGPUTexelCopyBufferInfo WGPUTexelCopyBufferInfo

Default values can be set using WGPU_TEXEL_COPY_BUFFER_INFO_INIT as initializer.

◆ WGPUTexelCopyTextureInfo

typedef struct WGPUTexelCopyTextureInfo WGPUTexelCopyTextureInfo

Default values can be set using WGPU_TEXEL_COPY_TEXTURE_INFO_INIT as initializer.

◆ WGPUTextureDescriptor

typedef struct WGPUTextureDescriptor WGPUTextureDescriptor

Default values can be set using WGPU_TEXTURE_DESCRIPTOR_INIT as initializer.

◆ WGPUVertexBufferLayout

typedef struct WGPUVertexBufferLayout WGPUVertexBufferLayout

If attributes is empty and stepMode is WGPUVertexStepMode_Undefined, indicates a "hole" in the parent WGPUVertexState buffers array, with behavior equivalent to null in the JS API.

If attributes is empty but stepMode is not WGPUVertexStepMode_Undefined, indicates a vertex buffer with no attributes, with behavior equivalent to { attributes: [] } in the JS API. (TODO: If the JS API changes not to distinguish these cases, then this distinction doesn't matter and we can remove this documentation.)

If stepMode is WGPUVertexStepMode_Undefined but attributes is not empty, stepMode defaults to WGPUVertexStepMode_Vertex.

Default values can be set using WGPU_VERTEX_BUFFER_LAYOUT_INIT as initializer.

◆ WGPUBindGroupLayoutDescriptor

typedef struct WGPUBindGroupLayoutDescriptor WGPUBindGroupLayoutDescriptor

Default values can be set using WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT as initializer.

◆ WGPUColorTargetState

typedef struct WGPUColorTargetState WGPUColorTargetState

Default values can be set using WGPU_COLOR_TARGET_STATE_INIT as initializer.

◆ WGPUComputePipelineDescriptor

typedef struct WGPUComputePipelineDescriptor WGPUComputePipelineDescriptor

Default values can be set using WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT as initializer.

◆ WGPURenderPassDescriptor

typedef struct WGPURenderPassDescriptor WGPURenderPassDescriptor

Default values can be set using WGPU_RENDER_PASS_DESCRIPTOR_INIT as initializer.

◆ WGPUVertexState

typedef struct WGPUVertexState WGPUVertexState

Default values can be set using WGPU_VERTEX_STATE_INIT as initializer.

◆ WGPUFragmentState

typedef struct WGPUFragmentState WGPUFragmentState

Default values can be set using WGPU_FRAGMENT_STATE_INIT as initializer.

◆ WGPURenderPipelineDescriptor

typedef struct WGPURenderPipelineDescriptor WGPURenderPipelineDescriptor

Default values can be set using WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT as initializer.