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

Descriptors and other transparent structures. More...

Topics

 WGPUCallbackInfo
 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  WGPUComputePassTimestampWrites
 
struct  WGPUConstantEntry
 
struct  WGPUExtent3D
 
struct  WGPUFuture
 
struct  WGPUInstanceCapabilities
 
struct  WGPULimits
 
struct  WGPUMultisampleState
 
struct  WGPUOrigin3D
 
struct  WGPUPipelineLayoutDescriptor
 
struct  WGPUPrimitiveState
 
struct  WGPUQuerySetDescriptor
 
struct  WGPUQueueDescriptor
 
struct  WGPURenderBundleDescriptor
 
struct  WGPURenderBundleEncoderDescriptor
 
struct  WGPURenderPassDepthStencilAttachment
 
struct  WGPURenderPassMaxDrawCount
 
struct  WGPURenderPassTimestampWrites
 
struct  WGPURequestAdapterOptions
 
struct  WGPUSamplerBindingLayout
 
struct  WGPUSamplerDescriptor
 
struct  WGPUShaderModuleDescriptor
 
struct  WGPUShaderSourceSPIRV
 
struct  WGPUShaderSourceWGSL
 
struct  WGPUStencilFaceState
 
struct  WGPUStorageTextureBindingLayout
 
struct  WGPUSupportedFeatures
 
struct  WGPUSupportedWGSLLanguageFeatures
 
struct  WGPUSurfaceCapabilities
 
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  WGPUComputeStage
 
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_COMPUTE_PASS_TIMESTAMP_WRITES_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_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_RENDER_PASS_TIMESTAMP_WRITES_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_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_STAGE_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 WGPUComputePassTimestampWrites WGPUComputePassTimestampWrites
 
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 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 WGPURenderPassTimestampWrites WGPURenderPassTimestampWrites
 
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 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 WGPUComputeStage WGPUComputeStage
 
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 \
})
@ WGPUBackendType_Undefined
Definition webgpu.h:304
#define WGPU_STRING_VIEW_INIT
Definition webgpu.h:144

Initializer for WGPUAdapterInfo.

Definition at line 1557 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 \
})

Initializer for WGPUBindGroupEntry.

Definition at line 1621 of file webgpu.h.

◆ WGPU_BLEND_COMPONENT_INIT

#define WGPU_BLEND_COMPONENT_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
/*.operation=*/WGPUBlendOperation_Add _wgpu_COMMA \
/*.srcFactor=*/WGPUBlendFactor_One _wgpu_COMMA \
/*.dstFactor=*/WGPUBlendFactor_Zero _wgpu_COMMA \
})

Initializer for WGPUBlendComponent.

Definition at line 1652 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_Uniform _wgpu_COMMA \
/*.hasDynamicOffset=*/0 _wgpu_COMMA \
/*.minBindingSize=*/0 _wgpu_COMMA \
})

Initializer for WGPUBufferBindingLayout.

Definition at line 1680 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 \
})

Initializer for WGPUBufferDescriptor.

Definition at line 1715 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 1748 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 1771 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 1792 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 \
})

Initializer for WGPUCompilationMessage.

Definition at line 1845 of file webgpu.h.

◆ WGPU_COMPUTE_PASS_TIMESTAMP_WRITES_INIT

#define WGPU_COMPUTE_PASS_TIMESTAMP_WRITES_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUComputePassTimestampWrites, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.querySet=*/NULL _wgpu_COMMA \
/*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
/*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
})

Initializer for WGPUComputePassTimestampWrites.

Definition at line 1879 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 1906 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 1933 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 1956 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 1985 of file webgpu.h.

◆ WGPU_LIMITS_INIT

#define WGPU_LIMITS_INIT

Initializer for WGPULimits.

Definition at line 2126 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 2183 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 2211 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 2238 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_TriangleList _wgpu_COMMA \
/*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
/*.frontFace=*/WGPUFrontFace_CCW _wgpu_COMMA \
/*.cullMode=*/WGPUCullMode_None _wgpu_COMMA \
/*.unclippedDepth=*/0 _wgpu_COMMA \
})
WGPUIndexFormat
Definition webgpu.h:581

Initializer for WGPUPrimitiveState.

Definition at line 2275 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 \
})

Initializer for WGPUQuerySetDescriptor.

Definition at line 2308 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 2331 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 2352 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:896

Initializer for WGPURenderBundleEncoderDescriptor.

Definition at line 2394 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:89
@ WGPULoadOp_Undefined
Definition webgpu.h:597
@ WGPUStoreOp_Undefined
Definition webgpu.h:819

Initializer for WGPURenderPassDepthStencilAttachment.

Definition at line 2451 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 \
})

Initializer for WGPURenderPassMaxDrawCount.

Definition at line 2478 of file webgpu.h.

◆ WGPU_RENDER_PASS_TIMESTAMP_WRITES_INIT

#define WGPU_RENDER_PASS_TIMESTAMP_WRITES_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPURenderPassTimestampWrites, { \
/*.nextInChain=*/NULL _wgpu_COMMA \
/*.querySet=*/NULL _wgpu_COMMA \
/*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
/*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
})

Initializer for WGPURenderPassTimestampWrites.

Definition at line 2510 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=*/_wgpu_ENUM_ZERO_INIT(WGPUFeatureLevel) _wgpu_COMMA \
/*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
/*.forceFallbackAdapter=*/0 _wgpu_COMMA \
/*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
/*.compatibleSurface=*/NULL _wgpu_COMMA \
})
WGPUFeatureLevel
Definition webgpu.h:524
@ WGPUPowerPreference_Undefined
Definition webgpu.h:649

Initializer for WGPURequestAdapterOptions.

Definition at line 2560 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_BindingNotUsed _wgpu_COMMA \
})
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:755

Initializer for WGPUSamplerBindingLayout.

Definition at line 2583 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_ClampToEdge _wgpu_COMMA \
/*.addressModeV=*/WGPUAddressMode_ClampToEdge _wgpu_COMMA \
/*.addressModeW=*/WGPUAddressMode_ClampToEdge _wgpu_COMMA \
/*.magFilter=*/WGPUFilterMode_Nearest _wgpu_COMMA \
/*.minFilter=*/WGPUFilterMode_Nearest _wgpu_COMMA \
/*.mipmapFilter=*/WGPUMipmapFilterMode_Nearest _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:419

Initializer for WGPUSamplerDescriptor.

Definition at line 2644 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 2675 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 \
})

Initializer for WGPUShaderSourceSPIRV.

Definition at line 2698 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 \
})

Initializer for WGPUShaderSourceWGSL.

Definition at line 2723 of file webgpu.h.

◆ WGPU_STENCIL_FACE_STATE_INIT

#define WGPU_STENCIL_FACE_STATE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
/*.compare=*/WGPUCompareFunction_Always _wgpu_COMMA \
/*.failOp=*/WGPUStencilOperation_Keep _wgpu_COMMA \
/*.depthFailOp=*/WGPUStencilOperation_Keep _wgpu_COMMA \
/*.passOp=*/WGPUStencilOperation_Keep _wgpu_COMMA \
})

Initializer for WGPUStencilFaceState.

Definition at line 2756 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_BindingNotUsed _wgpu_COMMA \
/*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
/*.viewDimension=*/WGPUTextureViewDimension_2D _wgpu_COMMA \
})
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:802

Initializer for WGPUStorageTextureBindingLayout.

Definition at line 2785 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 2806 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 2825 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 \
})

Initializer for WGPUSurfaceCapabilities.

Definition at line 2872 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_Fifo _wgpu_COMMA \
})
@ WGPUPresentMode_Fifo
Definition webgpu.h:670
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:453

Initializer for WGPUSurfaceConfiguration.

Definition at line 2945 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 2980 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 \
/*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
}) _wgpu_COMMA \
/*.window=*/NULL _wgpu_COMMA \
})

Initializer for WGPUSurfaceSourceAndroidNativeWindow.

Definition at line 3003 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 \
})

Initializer for WGPUSurfaceSourceMetalLayer.

Definition at line 3029 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 \
})

Initializer for WGPUSurfaceSourceWaylandSurface.

Definition at line 3061 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 \
})

Initializer for WGPUSurfaceSourceWindowsHWND.

Definition at line 3095 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 \
})

Initializer for WGPUSurfaceSourceXCBWindow.

Definition at line 3128 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 \
})

Initializer for WGPUSurfaceSourceXlibWindow.

Definition at line 3161 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:828

Initializer for WGPUSurfaceTexture.

Definition at line 3196 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 \
})

Initializer for WGPUTexelCopyBufferLayout.

Definition at line 3223 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_BindingNotUsed _wgpu_COMMA \
/*.viewDimension=*/WGPUTextureViewDimension_2D _wgpu_COMMA \
/*.multisampled=*/0 _wgpu_COMMA \
})
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1002

Initializer for WGPUTextureBindingLayout.

Definition at line 3251 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_All _wgpu_COMMA \
/*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
})
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1021

Initializer for WGPUTextureViewDescriptor.

Definition at line 3306 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 \
})

Initializer for WGPUVertexAttribute.

Definition at line 3341 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 3373 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_BUFFER_BINDING_LAYOUT_INIT _wgpu_COMMA \
/*.sampler=*/WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_COMMA \
/*.texture=*/WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_COMMA \
/*.storageTexture=*/WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_COMMA \
})
#define WGPU_TEXTURE_BINDING_LAYOUT_INIT
Definition webgpu.h:3251
#define WGPU_BUFFER_BINDING_LAYOUT_INIT
Definition webgpu.h:1680
#define WGPU_SAMPLER_BINDING_LAYOUT_INIT
Definition webgpu.h:2583
#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT
Definition webgpu.h:2785

Initializer for WGPUBindGroupLayoutEntry.

Definition at line 3415 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:1652

Initializer for WGPUBlendState.

Definition at line 3442 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 3462 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=*/WGPU_COMPUTE_PASS_TIMESTAMP_WRITES_INIT _wgpu_COMMA \
})
#define WGPU_COMPUTE_PASS_TIMESTAMP_WRITES_INIT
Definition webgpu.h:1879

Initializer for WGPUComputePassDescriptor.

Definition at line 3488 of file webgpu.h.

◆ WGPU_COMPUTE_STAGE_INIT

#define WGPU_COMPUTE_STAGE_INIT
Value:
_wgpu_MAKE_INIT_STRUCT(WGPUComputeStage, { \
/*.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 WGPUComputeStage.

Definition at line 3519 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:414
#define WGPU_STENCIL_FACE_STATE_INIT
Definition webgpu.h:2756

Initializer for WGPUDepthStencilState.

Definition at line 3577 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:2331
#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT
Definition webgpu.h:1404
#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT
Definition webgpu.h:1498

Initializer for WGPUDeviceDescriptor.

Definition at line 3628 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:1956

Initializer for WGPUFutureWaitInfo.

Definition at line 3662 of file webgpu.h.

◆ WGPU_INSTANCE_DESCRIPTOR_INIT

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

Initializer for WGPUInstanceDescriptor.

Definition at line 3683 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 \
})
WGPULoadOp
Definition webgpu.h:592
WGPUStoreOp
Definition webgpu.h:814
#define WGPU_COLOR_INIT
Definition webgpu.h:1748

Initializer for WGPURenderPassColorAttachment.

Definition at line 3722 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:3223

Initializer for WGPUTexelCopyBufferInfo.

Definition at line 3749 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_All _wgpu_COMMA \
})
#define WGPU_ORIGIN_3D_INIT
Definition webgpu.h:2211

Initializer for WGPUTexelCopyTextureInfo.

Definition at line 3779 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_2D _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 \
})
#define WGPU_EXTENT_3D_INIT
Definition webgpu.h:1933

Initializer for WGPUTextureDescriptor.

Definition at line 3831 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_VertexBufferNotUsed _wgpu_COMMA \
/*.arrayStride=*/0 _wgpu_COMMA \
/*.attributeCount=*/0 _wgpu_COMMA \
/*.attributes=*/NULL _wgpu_COMMA \
})
@ WGPUVertexStepMode_VertexBufferNotUsed
Definition webgpu.h:1082

Initializer for WGPUVertexBufferLayout.

Definition at line 3871 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 3900 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 \
})

Initializer for WGPUColorTargetState.

Definition at line 3933 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_STAGE_INIT _wgpu_COMMA \
})
#define WGPU_COMPUTE_STAGE_INIT
Definition webgpu.h:3519

Initializer for WGPUComputePipelineDescriptor.

Definition at line 3964 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=*/WGPU_RENDER_PASS_TIMESTAMP_WRITES_INIT _wgpu_COMMA \
})
#define WGPU_RENDER_PASS_TIMESTAMP_WRITES_INIT
Definition webgpu.h:2510

Initializer for WGPURenderPassDescriptor.

Definition at line 4004 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 4044 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 4084 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:2275
#define WGPU_VERTEX_STATE_INIT
Definition webgpu.h:4044
#define WGPU_MULTISAMPLE_STATE_INIT
Definition webgpu.h:2183

Initializer for WGPURenderPipelineDescriptor.

Definition at line 4134 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

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

Default values can be set using WGPU_COMPILATION_MESSAGE_INIT as initializer.

◆ WGPUComputePassTimestampWrites

typedef struct WGPUComputePassTimestampWrites WGPUComputePassTimestampWrites

Default values can be set using WGPU_COMPUTE_PASS_TIMESTAMP_WRITES_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.

◆ 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.

◆ WGPURenderPassTimestampWrites

typedef struct WGPURenderPassTimestampWrites WGPURenderPassTimestampWrites

Default values can be set using WGPU_RENDER_PASS_TIMESTAMP_WRITES_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.

◆ 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

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.

◆ WGPUComputeStage

typedef struct WGPUComputeStage WGPUComputeStage

Default values can be set using WGPU_COMPUTE_STAGE_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

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.