pub const WGPU_ARRAY_LAYER_COUNT_UNDEFINED: u32 = 4294967295;
pub const WGPU_COPY_STRIDE_UNDEFINED: u32 = 4294967295;
pub const WGPU_DEPTH_SLICE_UNDEFINED: u32 = 4294967295;
pub const WGPU_INVALID_BINDING: u32 = 4294967295;
pub const WGPU_LIMIT_U32_UNDEFINED: u32 = 4294967295;
pub const WGPU_MIP_LEVEL_COUNT_UNDEFINED: u32 = 4294967295;
pub const WGPU_QUERY_SET_INDEX_UNDEFINED: u32 = 4294967295;
pub const WGPU_STRLEN: i32 = -1;
pub const WGPU_WHOLE_MAP_SIZE: i32 = -1;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUStringView {
pub data: *const ::std::os::raw::c_char,
pub length: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUStringView"][::std::mem::size_of::<WGPUStringView>() - 16usize];
["Alignment of WGPUStringView"][::std::mem::align_of::<WGPUStringView>() - 8usize];
["Offset of field: WGPUStringView::data"]
[::std::mem::offset_of!(WGPUStringView, data) - 0usize];
["Offset of field: WGPUStringView::length"]
[::std::mem::offset_of!(WGPUStringView, length) - 8usize];
};
pub type WGPUFlags = u64;
pub type WGPUBool = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterImpl {
_unused: [u8; 0],
}
pub type WGPUAdapter = *mut WGPUAdapterImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBindGroupImpl {
_unused: [u8; 0],
}
pub type WGPUBindGroup = *mut WGPUBindGroupImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBindGroupLayoutImpl {
_unused: [u8; 0],
}
pub type WGPUBindGroupLayout = *mut WGPUBindGroupLayoutImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBufferImpl {
_unused: [u8; 0],
}
pub type WGPUBuffer = *mut WGPUBufferImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCommandBufferImpl {
_unused: [u8; 0],
}
pub type WGPUCommandBuffer = *mut WGPUCommandBufferImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCommandEncoderImpl {
_unused: [u8; 0],
}
pub type WGPUCommandEncoder = *mut WGPUCommandEncoderImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUComputePassEncoderImpl {
_unused: [u8; 0],
}
pub type WGPUComputePassEncoder = *mut WGPUComputePassEncoderImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUComputePipelineImpl {
_unused: [u8; 0],
}
pub type WGPUComputePipeline = *mut WGPUComputePipelineImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDeviceImpl {
_unused: [u8; 0],
}
pub type WGPUDevice = *mut WGPUDeviceImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUExternalTextureImpl {
_unused: [u8; 0],
}
pub type WGPUExternalTexture = *mut WGPUExternalTextureImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUInstanceImpl {
_unused: [u8; 0],
}
pub type WGPUInstance = *mut WGPUInstanceImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPipelineLayoutImpl {
_unused: [u8; 0],
}
pub type WGPUPipelineLayout = *mut WGPUPipelineLayoutImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUQuerySetImpl {
_unused: [u8; 0],
}
pub type WGPUQuerySet = *mut WGPUQuerySetImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUQueueImpl {
_unused: [u8; 0],
}
pub type WGPUQueue = *mut WGPUQueueImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderBundleImpl {
_unused: [u8; 0],
}
pub type WGPURenderBundle = *mut WGPURenderBundleImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderBundleEncoderImpl {
_unused: [u8; 0],
}
pub type WGPURenderBundleEncoder = *mut WGPURenderBundleEncoderImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassEncoderImpl {
_unused: [u8; 0],
}
pub type WGPURenderPassEncoder = *mut WGPURenderPassEncoderImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPipelineImpl {
_unused: [u8; 0],
}
pub type WGPURenderPipeline = *mut WGPURenderPipelineImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUResourceTableImpl {
_unused: [u8; 0],
}
pub type WGPUResourceTable = *mut WGPUResourceTableImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSamplerImpl {
_unused: [u8; 0],
}
pub type WGPUSampler = *mut WGPUSamplerImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUShaderModuleImpl {
_unused: [u8; 0],
}
pub type WGPUShaderModule = *mut WGPUShaderModuleImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedBufferMemoryImpl {
_unused: [u8; 0],
}
pub type WGPUSharedBufferMemory = *mut WGPUSharedBufferMemoryImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceImpl {
_unused: [u8; 0],
}
pub type WGPUSharedFence = *mut WGPUSharedFenceImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryImpl {
_unused: [u8; 0],
}
pub type WGPUSharedTextureMemory = *mut WGPUSharedTextureMemoryImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceImpl {
_unused: [u8; 0],
}
pub type WGPUSurface = *mut WGPUSurfaceImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTexelBufferViewImpl {
_unused: [u8; 0],
}
pub type WGPUTexelBufferView = *mut WGPUTexelBufferViewImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureImpl {
_unused: [u8; 0],
}
pub type WGPUTexture = *mut WGPUTextureImpl;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureViewImpl {
_unused: [u8; 0],
}
pub type WGPUTextureView = *mut WGPUTextureViewImpl;
pub const WGPUAdapterType_WGPUAdapterType_DiscreteGPU: WGPUAdapterType = 1;
pub const WGPUAdapterType_WGPUAdapterType_IntegratedGPU: WGPUAdapterType = 2;
pub const WGPUAdapterType_WGPUAdapterType_CPU: WGPUAdapterType = 3;
pub const WGPUAdapterType_WGPUAdapterType_Unknown: WGPUAdapterType = 4;
pub const WGPUAdapterType_WGPUAdapterType_Force32: WGPUAdapterType = 2147483647;
pub type WGPUAdapterType = ::std::os::raw::c_uint;
pub const WGPUAddressMode_WGPUAddressMode_Undefined: WGPUAddressMode = 0;
pub const WGPUAddressMode_WGPUAddressMode_ClampToEdge: WGPUAddressMode = 1;
pub const WGPUAddressMode_WGPUAddressMode_Repeat: WGPUAddressMode = 2;
pub const WGPUAddressMode_WGPUAddressMode_MirrorRepeat: WGPUAddressMode = 3;
pub const WGPUAddressMode_WGPUAddressMode_Force32: WGPUAddressMode = 2147483647;
pub type WGPUAddressMode = ::std::os::raw::c_uint;
pub const WGPUAlphaMode_WGPUAlphaMode_Opaque: WGPUAlphaMode = 1;
pub const WGPUAlphaMode_WGPUAlphaMode_Premultiplied: WGPUAlphaMode = 2;
pub const WGPUAlphaMode_WGPUAlphaMode_Unpremultiplied: WGPUAlphaMode = 3;
pub const WGPUAlphaMode_WGPUAlphaMode_Force32: WGPUAlphaMode = 2147483647;
pub type WGPUAlphaMode = ::std::os::raw::c_uint;
pub const WGPUBackendType_WGPUBackendType_Undefined: WGPUBackendType = 0;
pub const WGPUBackendType_WGPUBackendType_Null: WGPUBackendType = 1;
pub const WGPUBackendType_WGPUBackendType_WebGPU: WGPUBackendType = 2;
pub const WGPUBackendType_WGPUBackendType_D3D11: WGPUBackendType = 3;
pub const WGPUBackendType_WGPUBackendType_D3D12: WGPUBackendType = 4;
pub const WGPUBackendType_WGPUBackendType_Metal: WGPUBackendType = 5;
pub const WGPUBackendType_WGPUBackendType_Vulkan: WGPUBackendType = 6;
pub const WGPUBackendType_WGPUBackendType_OpenGL: WGPUBackendType = 7;
pub const WGPUBackendType_WGPUBackendType_OpenGLES: WGPUBackendType = 8;
pub const WGPUBackendType_WGPUBackendType_Force32: WGPUBackendType = 2147483647;
pub type WGPUBackendType = ::std::os::raw::c_uint;
pub const WGPUBlendFactor_WGPUBlendFactor_Undefined: WGPUBlendFactor = 0;
pub const WGPUBlendFactor_WGPUBlendFactor_Zero: WGPUBlendFactor = 1;
pub const WGPUBlendFactor_WGPUBlendFactor_One: WGPUBlendFactor = 2;
pub const WGPUBlendFactor_WGPUBlendFactor_Src: WGPUBlendFactor = 3;
pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc: WGPUBlendFactor = 4;
pub const WGPUBlendFactor_WGPUBlendFactor_SrcAlpha: WGPUBlendFactor = 5;
pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrcAlpha: WGPUBlendFactor = 6;
pub const WGPUBlendFactor_WGPUBlendFactor_Dst: WGPUBlendFactor = 7;
pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusDst: WGPUBlendFactor = 8;
pub const WGPUBlendFactor_WGPUBlendFactor_DstAlpha: WGPUBlendFactor = 9;
pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusDstAlpha: WGPUBlendFactor = 10;
pub const WGPUBlendFactor_WGPUBlendFactor_SrcAlphaSaturated: WGPUBlendFactor = 11;
pub const WGPUBlendFactor_WGPUBlendFactor_Constant: WGPUBlendFactor = 12;
pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusConstant: WGPUBlendFactor = 13;
pub const WGPUBlendFactor_WGPUBlendFactor_Src1: WGPUBlendFactor = 14;
pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc1: WGPUBlendFactor = 15;
pub const WGPUBlendFactor_WGPUBlendFactor_Src1Alpha: WGPUBlendFactor = 16;
pub const WGPUBlendFactor_WGPUBlendFactor_OneMinusSrc1Alpha: WGPUBlendFactor = 17;
pub const WGPUBlendFactor_WGPUBlendFactor_Force32: WGPUBlendFactor = 2147483647;
pub type WGPUBlendFactor = ::std::os::raw::c_uint;
pub const WGPUBlendOperation_WGPUBlendOperation_Undefined: WGPUBlendOperation = 0;
pub const WGPUBlendOperation_WGPUBlendOperation_Add: WGPUBlendOperation = 1;
pub const WGPUBlendOperation_WGPUBlendOperation_Subtract: WGPUBlendOperation = 2;
pub const WGPUBlendOperation_WGPUBlendOperation_ReverseSubtract: WGPUBlendOperation = 3;
pub const WGPUBlendOperation_WGPUBlendOperation_Min: WGPUBlendOperation = 4;
pub const WGPUBlendOperation_WGPUBlendOperation_Max: WGPUBlendOperation = 5;
pub const WGPUBlendOperation_WGPUBlendOperation_Force32: WGPUBlendOperation = 2147483647;
pub type WGPUBlendOperation = ::std::os::raw::c_uint;
pub const WGPUBufferBindingType_WGPUBufferBindingType_BindingNotUsed: WGPUBufferBindingType = 0;
pub const WGPUBufferBindingType_WGPUBufferBindingType_Undefined: WGPUBufferBindingType = 1;
pub const WGPUBufferBindingType_WGPUBufferBindingType_Uniform: WGPUBufferBindingType = 2;
pub const WGPUBufferBindingType_WGPUBufferBindingType_Storage: WGPUBufferBindingType = 3;
pub const WGPUBufferBindingType_WGPUBufferBindingType_ReadOnlyStorage: WGPUBufferBindingType = 4;
pub const WGPUBufferBindingType_WGPUBufferBindingType_Force32: WGPUBufferBindingType = 2147483647;
pub type WGPUBufferBindingType = ::std::os::raw::c_uint;
pub const WGPUBufferMapState_WGPUBufferMapState_Unmapped: WGPUBufferMapState = 1;
pub const WGPUBufferMapState_WGPUBufferMapState_Pending: WGPUBufferMapState = 2;
pub const WGPUBufferMapState_WGPUBufferMapState_Mapped: WGPUBufferMapState = 3;
pub const WGPUBufferMapState_WGPUBufferMapState_Force32: WGPUBufferMapState = 2147483647;
pub type WGPUBufferMapState = ::std::os::raw::c_uint;
pub const WGPUCallbackMode_WGPUCallbackMode_WaitAnyOnly: WGPUCallbackMode = 1;
pub const WGPUCallbackMode_WGPUCallbackMode_AllowProcessEvents: WGPUCallbackMode = 2;
pub const WGPUCallbackMode_WGPUCallbackMode_AllowSpontaneous: WGPUCallbackMode = 3;
pub const WGPUCallbackMode_WGPUCallbackMode_Force32: WGPUCallbackMode = 2147483647;
pub type WGPUCallbackMode = ::std::os::raw::c_uint;
pub const WGPUCompareFunction_WGPUCompareFunction_Undefined: WGPUCompareFunction = 0;
pub const WGPUCompareFunction_WGPUCompareFunction_Never: WGPUCompareFunction = 1;
pub const WGPUCompareFunction_WGPUCompareFunction_Less: WGPUCompareFunction = 2;
pub const WGPUCompareFunction_WGPUCompareFunction_Equal: WGPUCompareFunction = 3;
pub const WGPUCompareFunction_WGPUCompareFunction_LessEqual: WGPUCompareFunction = 4;
pub const WGPUCompareFunction_WGPUCompareFunction_Greater: WGPUCompareFunction = 5;
pub const WGPUCompareFunction_WGPUCompareFunction_NotEqual: WGPUCompareFunction = 6;
pub const WGPUCompareFunction_WGPUCompareFunction_GreaterEqual: WGPUCompareFunction = 7;
pub const WGPUCompareFunction_WGPUCompareFunction_Always: WGPUCompareFunction = 8;
pub const WGPUCompareFunction_WGPUCompareFunction_Force32: WGPUCompareFunction = 2147483647;
pub type WGPUCompareFunction = ::std::os::raw::c_uint;
pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_Success:
WGPUCompilationInfoRequestStatus = 1;
pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_CallbackCancelled:
WGPUCompilationInfoRequestStatus = 2;
pub const WGPUCompilationInfoRequestStatus_WGPUCompilationInfoRequestStatus_Force32:
WGPUCompilationInfoRequestStatus = 2147483647;
pub type WGPUCompilationInfoRequestStatus = ::std::os::raw::c_uint;
pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Error: WGPUCompilationMessageType =
1;
pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Warning:
WGPUCompilationMessageType = 2;
pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Info: WGPUCompilationMessageType =
3;
pub const WGPUCompilationMessageType_WGPUCompilationMessageType_Force32:
WGPUCompilationMessageType = 2147483647;
pub type WGPUCompilationMessageType = ::std::os::raw::c_uint;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_Undefined: WGPUComponentSwizzle = 0;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_Zero: WGPUComponentSwizzle = 1;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_One: WGPUComponentSwizzle = 2;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_R: WGPUComponentSwizzle = 3;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_G: WGPUComponentSwizzle = 4;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_B: WGPUComponentSwizzle = 5;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_A: WGPUComponentSwizzle = 6;
pub const WGPUComponentSwizzle_WGPUComponentSwizzle_Force32: WGPUComponentSwizzle = 2147483647;
pub type WGPUComponentSwizzle = ::std::os::raw::c_uint;
pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Auto: WGPUCompositeAlphaMode = 0;
pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Opaque: WGPUCompositeAlphaMode = 1;
pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Premultiplied: WGPUCompositeAlphaMode = 2;
pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Unpremultiplied: WGPUCompositeAlphaMode = 3;
pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Inherit: WGPUCompositeAlphaMode = 4;
pub const WGPUCompositeAlphaMode_WGPUCompositeAlphaMode_Force32: WGPUCompositeAlphaMode =
2147483647;
pub type WGPUCompositeAlphaMode = ::std::os::raw::c_uint;
pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_Success:
WGPUCreatePipelineAsyncStatus = 1;
pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_CallbackCancelled:
WGPUCreatePipelineAsyncStatus = 2;
pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_ValidationError:
WGPUCreatePipelineAsyncStatus = 3;
pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_InternalError:
WGPUCreatePipelineAsyncStatus = 4;
pub const WGPUCreatePipelineAsyncStatus_WGPUCreatePipelineAsyncStatus_Force32:
WGPUCreatePipelineAsyncStatus = 2147483647;
pub type WGPUCreatePipelineAsyncStatus = ::std::os::raw::c_uint;
pub const WGPUCullMode_WGPUCullMode_Undefined: WGPUCullMode = 0;
pub const WGPUCullMode_WGPUCullMode_None: WGPUCullMode = 1;
pub const WGPUCullMode_WGPUCullMode_Front: WGPUCullMode = 2;
pub const WGPUCullMode_WGPUCullMode_Back: WGPUCullMode = 3;
pub const WGPUCullMode_WGPUCullMode_Force32: WGPUCullMode = 2147483647;
pub type WGPUCullMode = ::std::os::raw::c_uint;
pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Unknown: WGPUDeviceLostReason = 1;
pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Destroyed: WGPUDeviceLostReason = 2;
pub const WGPUDeviceLostReason_WGPUDeviceLostReason_CallbackCancelled: WGPUDeviceLostReason = 3;
pub const WGPUDeviceLostReason_WGPUDeviceLostReason_FailedCreation: WGPUDeviceLostReason = 4;
pub const WGPUDeviceLostReason_WGPUDeviceLostReason_Force32: WGPUDeviceLostReason = 2147483647;
pub type WGPUDeviceLostReason = ::std::os::raw::c_uint;
pub const WGPUErrorFilter_WGPUErrorFilter_Validation: WGPUErrorFilter = 1;
pub const WGPUErrorFilter_WGPUErrorFilter_OutOfMemory: WGPUErrorFilter = 2;
pub const WGPUErrorFilter_WGPUErrorFilter_Internal: WGPUErrorFilter = 3;
pub const WGPUErrorFilter_WGPUErrorFilter_Force32: WGPUErrorFilter = 2147483647;
pub type WGPUErrorFilter = ::std::os::raw::c_uint;
pub const WGPUErrorType_WGPUErrorType_NoError: WGPUErrorType = 1;
pub const WGPUErrorType_WGPUErrorType_Validation: WGPUErrorType = 2;
pub const WGPUErrorType_WGPUErrorType_OutOfMemory: WGPUErrorType = 3;
pub const WGPUErrorType_WGPUErrorType_Internal: WGPUErrorType = 4;
pub const WGPUErrorType_WGPUErrorType_Unknown: WGPUErrorType = 5;
pub const WGPUErrorType_WGPUErrorType_Force32: WGPUErrorType = 2147483647;
pub type WGPUErrorType = ::std::os::raw::c_uint;
pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate0Degrees:
WGPUExternalTextureRotation = 1;
pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate90Degrees:
WGPUExternalTextureRotation = 2;
pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate180Degrees:
WGPUExternalTextureRotation = 3;
pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Rotate270Degrees:
WGPUExternalTextureRotation = 4;
pub const WGPUExternalTextureRotation_WGPUExternalTextureRotation_Force32:
WGPUExternalTextureRotation = 2147483647;
pub type WGPUExternalTextureRotation = ::std::os::raw::c_uint;
pub const WGPUFeatureLevel_WGPUFeatureLevel_Undefined: WGPUFeatureLevel = 0;
pub const WGPUFeatureLevel_WGPUFeatureLevel_Compatibility: WGPUFeatureLevel = 1;
pub const WGPUFeatureLevel_WGPUFeatureLevel_Core: WGPUFeatureLevel = 2;
pub const WGPUFeatureLevel_WGPUFeatureLevel_Force32: WGPUFeatureLevel = 2147483647;
pub type WGPUFeatureLevel = ::std::os::raw::c_uint;
pub const WGPUFeatureName_WGPUFeatureName_CoreFeaturesAndLimits: WGPUFeatureName = 1;
pub const WGPUFeatureName_WGPUFeatureName_DepthClipControl: WGPUFeatureName = 2;
pub const WGPUFeatureName_WGPUFeatureName_Depth32FloatStencil8: WGPUFeatureName = 3;
pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionBC: WGPUFeatureName = 4;
pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionBCSliced3D: WGPUFeatureName = 5;
pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionETC2: WGPUFeatureName = 6;
pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionASTC: WGPUFeatureName = 7;
pub const WGPUFeatureName_WGPUFeatureName_TextureCompressionASTCSliced3D: WGPUFeatureName = 8;
pub const WGPUFeatureName_WGPUFeatureName_TimestampQuery: WGPUFeatureName = 9;
pub const WGPUFeatureName_WGPUFeatureName_IndirectFirstInstance: WGPUFeatureName = 10;
pub const WGPUFeatureName_WGPUFeatureName_ShaderF16: WGPUFeatureName = 11;
pub const WGPUFeatureName_WGPUFeatureName_RG11B10UfloatRenderable: WGPUFeatureName = 12;
pub const WGPUFeatureName_WGPUFeatureName_BGRA8UnormStorage: WGPUFeatureName = 13;
pub const WGPUFeatureName_WGPUFeatureName_Float32Filterable: WGPUFeatureName = 14;
pub const WGPUFeatureName_WGPUFeatureName_Float32Blendable: WGPUFeatureName = 15;
pub const WGPUFeatureName_WGPUFeatureName_ClipDistances: WGPUFeatureName = 16;
pub const WGPUFeatureName_WGPUFeatureName_DualSourceBlending: WGPUFeatureName = 17;
pub const WGPUFeatureName_WGPUFeatureName_Subgroups: WGPUFeatureName = 18;
pub const WGPUFeatureName_WGPUFeatureName_TextureFormatsTier1: WGPUFeatureName = 19;
pub const WGPUFeatureName_WGPUFeatureName_TextureFormatsTier2: WGPUFeatureName = 20;
pub const WGPUFeatureName_WGPUFeatureName_PrimitiveIndex: WGPUFeatureName = 21;
pub const WGPUFeatureName_WGPUFeatureName_TextureComponentSwizzle: WGPUFeatureName = 22;
pub const WGPUFeatureName_WGPUFeatureName_DawnInternalUsages: WGPUFeatureName = 327680;
pub const WGPUFeatureName_WGPUFeatureName_DawnMultiPlanarFormats: WGPUFeatureName = 327681;
pub const WGPUFeatureName_WGPUFeatureName_DawnNative: WGPUFeatureName = 327682;
pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalTimestampQueryInsidePasses:
WGPUFeatureName = 327683;
pub const WGPUFeatureName_WGPUFeatureName_ImplicitDeviceSynchronization: WGPUFeatureName = 327684;
pub const WGPUFeatureName_WGPUFeatureName_TransientAttachments: WGPUFeatureName = 327686;
pub const WGPUFeatureName_WGPUFeatureName_MSAARenderToSingleSampled: WGPUFeatureName = 327687;
pub const WGPUFeatureName_WGPUFeatureName_D3D11MultithreadProtected: WGPUFeatureName = 327688;
pub const WGPUFeatureName_WGPUFeatureName_ANGLETextureSharing: WGPUFeatureName = 327689;
pub const WGPUFeatureName_WGPUFeatureName_PixelLocalStorageCoherent: WGPUFeatureName = 327690;
pub const WGPUFeatureName_WGPUFeatureName_PixelLocalStorageNonCoherent: WGPUFeatureName = 327691;
pub const WGPUFeatureName_WGPUFeatureName_Unorm16TextureFormats: WGPUFeatureName = 327692;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatExtendedUsages: WGPUFeatureName = 327693;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP010: WGPUFeatureName = 327694;
pub const WGPUFeatureName_WGPUFeatureName_HostMappedPointer: WGPUFeatureName = 327695;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarRenderTargets: WGPUFeatureName = 327696;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv12a: WGPUFeatureName = 327697;
pub const WGPUFeatureName_WGPUFeatureName_FramebufferFetch: WGPUFeatureName = 327698;
pub const WGPUFeatureName_WGPUFeatureName_BufferMapExtendedUsages: WGPUFeatureName = 327699;
pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesMemoryHeaps: WGPUFeatureName = 327700;
pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesD3D: WGPUFeatureName = 327701;
pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesVk: WGPUFeatureName = 327702;
pub const WGPUFeatureName_WGPUFeatureName_DawnFormatCapabilities: WGPUFeatureName = 327703;
pub const WGPUFeatureName_WGPUFeatureName_DawnDrmFormatCapabilities: WGPUFeatureName = 327704;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv16: WGPUFeatureName = 327705;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatNv24: WGPUFeatureName = 327706;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP210: WGPUFeatureName = 327707;
pub const WGPUFeatureName_WGPUFeatureName_MultiPlanarFormatP410: WGPUFeatureName = 327708;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation:
WGPUFeatureName = 327709;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryAHardwareBuffer: WGPUFeatureName =
327710;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryDmaBuf: WGPUFeatureName = 327711;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryOpaqueFD: WGPUFeatureName = 327712;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryZirconHandle: WGPUFeatureName = 327713;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryDXGISharedHandle: WGPUFeatureName =
327714;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryD3D11Texture2D: WGPUFeatureName =
327715;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryIOSurface: WGPUFeatureName = 327716;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryEGLImage: WGPUFeatureName = 327717;
pub const WGPUFeatureName_WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD: WGPUFeatureName = 327718;
pub const WGPUFeatureName_WGPUFeatureName_SharedFenceSyncFD: WGPUFeatureName = 327719;
pub const WGPUFeatureName_WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle: WGPUFeatureName =
327720;
pub const WGPUFeatureName_WGPUFeatureName_SharedFenceDXGISharedHandle: WGPUFeatureName = 327721;
pub const WGPUFeatureName_WGPUFeatureName_SharedFenceMTLSharedEvent: WGPUFeatureName = 327722;
pub const WGPUFeatureName_WGPUFeatureName_SharedBufferMemoryD3D12Resource: WGPUFeatureName = 327723;
pub const WGPUFeatureName_WGPUFeatureName_StaticSamplers: WGPUFeatureName = 327724;
pub const WGPUFeatureName_WGPUFeatureName_YCbCrVulkanSamplers: WGPUFeatureName = 327725;
pub const WGPUFeatureName_WGPUFeatureName_ShaderModuleCompilationOptions: WGPUFeatureName = 327726;
pub const WGPUFeatureName_WGPUFeatureName_DawnLoadResolveTexture: WGPUFeatureName = 327727;
pub const WGPUFeatureName_WGPUFeatureName_DawnPartialLoadResolveTexture: WGPUFeatureName = 327728;
pub const WGPUFeatureName_WGPUFeatureName_MultiDrawIndirect: WGPUFeatureName = 327729;
pub const WGPUFeatureName_WGPUFeatureName_DawnTexelCopyBufferRowAlignment: WGPUFeatureName = 327730;
pub const WGPUFeatureName_WGPUFeatureName_FlexibleTextureViews: WGPUFeatureName = 327731;
pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalSubgroupMatrix: WGPUFeatureName =
327732;
pub const WGPUFeatureName_WGPUFeatureName_SharedFenceEGLSync: WGPUFeatureName = 327733;
pub const WGPUFeatureName_WGPUFeatureName_DawnDeviceAllocatorControl: WGPUFeatureName = 327734;
pub const WGPUFeatureName_WGPUFeatureName_AdapterPropertiesWGPU: WGPUFeatureName = 327735;
pub const WGPUFeatureName_WGPUFeatureName_SharedBufferMemoryD3D12SharedMemoryFileMappingHandle:
WGPUFeatureName = 327736;
pub const WGPUFeatureName_WGPUFeatureName_SharedTextureMemoryD3D12Resource: WGPUFeatureName =
327737;
pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalSamplingResourceTable:
WGPUFeatureName = 327738;
pub const WGPUFeatureName_WGPUFeatureName_ChromiumExperimentalSubgroupSizeControl: WGPUFeatureName =
327739;
pub const WGPUFeatureName_WGPUFeatureName_AtomicVec2uMinMax: WGPUFeatureName = 327740;
pub const WGPUFeatureName_WGPUFeatureName_Unorm16FormatsForExternalTexture: WGPUFeatureName =
327741;
pub const WGPUFeatureName_WGPUFeatureName_OpaqueYCbCrAndroidForExternalTexture: WGPUFeatureName =
327742;
pub const WGPUFeatureName_WGPUFeatureName_Unorm16Filterable: WGPUFeatureName = 327743;
pub const WGPUFeatureName_WGPUFeatureName_RenderPassRenderArea: WGPUFeatureName = 327744;
pub const WGPUFeatureName_WGPUFeatureName_Force32: WGPUFeatureName = 2147483647;
pub type WGPUFeatureName = ::std::os::raw::c_uint;
pub const WGPUFilterMode_WGPUFilterMode_Undefined: WGPUFilterMode = 0;
pub const WGPUFilterMode_WGPUFilterMode_Nearest: WGPUFilterMode = 1;
pub const WGPUFilterMode_WGPUFilterMode_Linear: WGPUFilterMode = 2;
pub const WGPUFilterMode_WGPUFilterMode_Force32: WGPUFilterMode = 2147483647;
pub type WGPUFilterMode = ::std::os::raw::c_uint;
pub const WGPUFrontFace_WGPUFrontFace_Undefined: WGPUFrontFace = 0;
pub const WGPUFrontFace_WGPUFrontFace_CCW: WGPUFrontFace = 1;
pub const WGPUFrontFace_WGPUFrontFace_CW: WGPUFrontFace = 2;
pub const WGPUFrontFace_WGPUFrontFace_Force32: WGPUFrontFace = 2147483647;
pub type WGPUFrontFace = ::std::os::raw::c_uint;
pub const WGPUIndexFormat_WGPUIndexFormat_Undefined: WGPUIndexFormat = 0;
pub const WGPUIndexFormat_WGPUIndexFormat_Uint16: WGPUIndexFormat = 1;
pub const WGPUIndexFormat_WGPUIndexFormat_Uint32: WGPUIndexFormat = 2;
pub const WGPUIndexFormat_WGPUIndexFormat_Force32: WGPUIndexFormat = 2147483647;
pub type WGPUIndexFormat = ::std::os::raw::c_uint;
pub const WGPUInstanceFeatureName_WGPUInstanceFeatureName_TimedWaitAny: WGPUInstanceFeatureName = 1;
pub const WGPUInstanceFeatureName_WGPUInstanceFeatureName_ShaderSourceSPIRV:
WGPUInstanceFeatureName = 2;
pub const WGPUInstanceFeatureName_WGPUInstanceFeatureName_MultipleDevicesPerAdapter:
WGPUInstanceFeatureName = 3;
pub const WGPUInstanceFeatureName_WGPUInstanceFeatureName_Force32: WGPUInstanceFeatureName =
2147483647;
pub type WGPUInstanceFeatureName = ::std::os::raw::c_uint;
pub const WGPULoadOp_WGPULoadOp_Undefined: WGPULoadOp = 0;
pub const WGPULoadOp_WGPULoadOp_Load: WGPULoadOp = 1;
pub const WGPULoadOp_WGPULoadOp_Clear: WGPULoadOp = 2;
pub const WGPULoadOp_WGPULoadOp_ExpandResolveTexture: WGPULoadOp = 327683;
pub const WGPULoadOp_WGPULoadOp_Force32: WGPULoadOp = 2147483647;
pub type WGPULoadOp = ::std::os::raw::c_uint;
pub const WGPULoggingType_WGPULoggingType_Verbose: WGPULoggingType = 1;
pub const WGPULoggingType_WGPULoggingType_Info: WGPULoggingType = 2;
pub const WGPULoggingType_WGPULoggingType_Warning: WGPULoggingType = 3;
pub const WGPULoggingType_WGPULoggingType_Error: WGPULoggingType = 4;
pub const WGPULoggingType_WGPULoggingType_Force32: WGPULoggingType = 2147483647;
pub type WGPULoggingType = ::std::os::raw::c_uint;
pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Success: WGPUMapAsyncStatus = 1;
pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_CallbackCancelled: WGPUMapAsyncStatus = 2;
pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Error: WGPUMapAsyncStatus = 3;
pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Aborted: WGPUMapAsyncStatus = 4;
pub const WGPUMapAsyncStatus_WGPUMapAsyncStatus_Force32: WGPUMapAsyncStatus = 2147483647;
pub type WGPUMapAsyncStatus = ::std::os::raw::c_uint;
pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Undefined: WGPUMipmapFilterMode = 0;
pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Nearest: WGPUMipmapFilterMode = 1;
pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Linear: WGPUMipmapFilterMode = 2;
pub const WGPUMipmapFilterMode_WGPUMipmapFilterMode_Force32: WGPUMipmapFilterMode = 2147483647;
pub type WGPUMipmapFilterMode = ::std::os::raw::c_uint;
pub const WGPUOptionalBool_WGPUOptionalBool_False: WGPUOptionalBool = 0;
pub const WGPUOptionalBool_WGPUOptionalBool_True: WGPUOptionalBool = 1;
pub const WGPUOptionalBool_WGPUOptionalBool_Undefined: WGPUOptionalBool = 2;
pub const WGPUOptionalBool_WGPUOptionalBool_Force32: WGPUOptionalBool = 2147483647;
pub type WGPUOptionalBool = ::std::os::raw::c_uint;
pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Success: WGPUPopErrorScopeStatus = 1;
pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_CallbackCancelled:
WGPUPopErrorScopeStatus = 2;
pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Error: WGPUPopErrorScopeStatus = 3;
pub const WGPUPopErrorScopeStatus_WGPUPopErrorScopeStatus_Force32: WGPUPopErrorScopeStatus =
2147483647;
pub type WGPUPopErrorScopeStatus = ::std::os::raw::c_uint;
pub const WGPUPowerPreference_WGPUPowerPreference_Undefined: WGPUPowerPreference = 0;
pub const WGPUPowerPreference_WGPUPowerPreference_LowPower: WGPUPowerPreference = 1;
pub const WGPUPowerPreference_WGPUPowerPreference_HighPerformance: WGPUPowerPreference = 2;
pub const WGPUPowerPreference_WGPUPowerPreference_Force32: WGPUPowerPreference = 2147483647;
pub type WGPUPowerPreference = ::std::os::raw::c_uint;
pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_SRGB: WGPUPredefinedColorSpace = 1;
pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_DisplayP3: WGPUPredefinedColorSpace = 2;
pub const WGPUPredefinedColorSpace_WGPUPredefinedColorSpace_Force32: WGPUPredefinedColorSpace =
2147483647;
pub type WGPUPredefinedColorSpace = ::std::os::raw::c_uint;
pub const WGPUPresentMode_WGPUPresentMode_Undefined: WGPUPresentMode = 0;
pub const WGPUPresentMode_WGPUPresentMode_Fifo: WGPUPresentMode = 1;
pub const WGPUPresentMode_WGPUPresentMode_FifoRelaxed: WGPUPresentMode = 2;
pub const WGPUPresentMode_WGPUPresentMode_Immediate: WGPUPresentMode = 3;
pub const WGPUPresentMode_WGPUPresentMode_Mailbox: WGPUPresentMode = 4;
pub const WGPUPresentMode_WGPUPresentMode_Force32: WGPUPresentMode = 2147483647;
pub type WGPUPresentMode = ::std::os::raw::c_uint;
pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_Undefined: WGPUPrimitiveTopology = 0;
pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_PointList: WGPUPrimitiveTopology = 1;
pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_LineList: WGPUPrimitiveTopology = 2;
pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_LineStrip: WGPUPrimitiveTopology = 3;
pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_TriangleList: WGPUPrimitiveTopology = 4;
pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_TriangleStrip: WGPUPrimitiveTopology = 5;
pub const WGPUPrimitiveTopology_WGPUPrimitiveTopology_Force32: WGPUPrimitiveTopology = 2147483647;
pub type WGPUPrimitiveTopology = ::std::os::raw::c_uint;
pub const WGPUQueryType_WGPUQueryType_Occlusion: WGPUQueryType = 1;
pub const WGPUQueryType_WGPUQueryType_Timestamp: WGPUQueryType = 2;
pub const WGPUQueryType_WGPUQueryType_Force32: WGPUQueryType = 2147483647;
pub type WGPUQueryType = ::std::os::raw::c_uint;
pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Success: WGPUQueueWorkDoneStatus = 1;
pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_CallbackCancelled:
WGPUQueueWorkDoneStatus = 2;
pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Error: WGPUQueueWorkDoneStatus = 3;
pub const WGPUQueueWorkDoneStatus_WGPUQueueWorkDoneStatus_Force32: WGPUQueueWorkDoneStatus =
2147483647;
pub type WGPUQueueWorkDoneStatus = ::std::os::raw::c_uint;
pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Success: WGPURequestAdapterStatus = 1;
pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_CallbackCancelled:
WGPURequestAdapterStatus = 2;
pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Unavailable: WGPURequestAdapterStatus =
3;
pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Error: WGPURequestAdapterStatus = 4;
pub const WGPURequestAdapterStatus_WGPURequestAdapterStatus_Force32: WGPURequestAdapterStatus =
2147483647;
pub type WGPURequestAdapterStatus = ::std::os::raw::c_uint;
pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Success: WGPURequestDeviceStatus = 1;
pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_CallbackCancelled:
WGPURequestDeviceStatus = 2;
pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Error: WGPURequestDeviceStatus = 3;
pub const WGPURequestDeviceStatus_WGPURequestDeviceStatus_Force32: WGPURequestDeviceStatus =
2147483647;
pub type WGPURequestDeviceStatus = ::std::os::raw::c_uint;
pub const WGPUSamplerBindingType_WGPUSamplerBindingType_BindingNotUsed: WGPUSamplerBindingType = 0;
pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Undefined: WGPUSamplerBindingType = 1;
pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Filtering: WGPUSamplerBindingType = 2;
pub const WGPUSamplerBindingType_WGPUSamplerBindingType_NonFiltering: WGPUSamplerBindingType = 3;
pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Comparison: WGPUSamplerBindingType = 4;
pub const WGPUSamplerBindingType_WGPUSamplerBindingType_Force32: WGPUSamplerBindingType =
2147483647;
pub type WGPUSamplerBindingType = ::std::os::raw::c_uint;
pub const WGPUSharedFenceType_WGPUSharedFenceType_VkSemaphoreOpaqueFD: WGPUSharedFenceType = 1;
pub const WGPUSharedFenceType_WGPUSharedFenceType_SyncFD: WGPUSharedFenceType = 2;
pub const WGPUSharedFenceType_WGPUSharedFenceType_VkSemaphoreZirconHandle: WGPUSharedFenceType = 3;
pub const WGPUSharedFenceType_WGPUSharedFenceType_DXGISharedHandle: WGPUSharedFenceType = 4;
pub const WGPUSharedFenceType_WGPUSharedFenceType_MTLSharedEvent: WGPUSharedFenceType = 5;
pub const WGPUSharedFenceType_WGPUSharedFenceType_EGLSync: WGPUSharedFenceType = 6;
pub const WGPUSharedFenceType_WGPUSharedFenceType_Force32: WGPUSharedFenceType = 2147483647;
pub type WGPUSharedFenceType = ::std::os::raw::c_uint;
pub const WGPUStatus_WGPUStatus_Success: WGPUStatus = 1;
pub const WGPUStatus_WGPUStatus_Error: WGPUStatus = 2;
pub const WGPUStatus_WGPUStatus_Force32: WGPUStatus = 2147483647;
pub type WGPUStatus = ::std::os::raw::c_uint;
pub const WGPUStencilOperation_WGPUStencilOperation_Undefined: WGPUStencilOperation = 0;
pub const WGPUStencilOperation_WGPUStencilOperation_Keep: WGPUStencilOperation = 1;
pub const WGPUStencilOperation_WGPUStencilOperation_Zero: WGPUStencilOperation = 2;
pub const WGPUStencilOperation_WGPUStencilOperation_Replace: WGPUStencilOperation = 3;
pub const WGPUStencilOperation_WGPUStencilOperation_Invert: WGPUStencilOperation = 4;
pub const WGPUStencilOperation_WGPUStencilOperation_IncrementClamp: WGPUStencilOperation = 5;
pub const WGPUStencilOperation_WGPUStencilOperation_DecrementClamp: WGPUStencilOperation = 6;
pub const WGPUStencilOperation_WGPUStencilOperation_IncrementWrap: WGPUStencilOperation = 7;
pub const WGPUStencilOperation_WGPUStencilOperation_DecrementWrap: WGPUStencilOperation = 8;
pub const WGPUStencilOperation_WGPUStencilOperation_Force32: WGPUStencilOperation = 2147483647;
pub type WGPUStencilOperation = ::std::os::raw::c_uint;
pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_BindingNotUsed:
WGPUStorageTextureAccess = 0;
pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_Undefined: WGPUStorageTextureAccess = 1;
pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_WriteOnly: WGPUStorageTextureAccess = 2;
pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_ReadOnly: WGPUStorageTextureAccess = 3;
pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_ReadWrite: WGPUStorageTextureAccess = 4;
pub const WGPUStorageTextureAccess_WGPUStorageTextureAccess_Force32: WGPUStorageTextureAccess =
2147483647;
pub type WGPUStorageTextureAccess = ::std::os::raw::c_uint;
pub const WGPUStoreOp_WGPUStoreOp_Undefined: WGPUStoreOp = 0;
pub const WGPUStoreOp_WGPUStoreOp_Store: WGPUStoreOp = 1;
pub const WGPUStoreOp_WGPUStoreOp_Discard: WGPUStoreOp = 2;
pub const WGPUStoreOp_WGPUStoreOp_Force32: WGPUStoreOp = 2147483647;
pub type WGPUStoreOp = ::std::os::raw::c_uint;
pub const WGPUSType_WGPUSType_ShaderSourceSPIRV: WGPUSType = 1;
pub const WGPUSType_WGPUSType_ShaderSourceWGSL: WGPUSType = 2;
pub const WGPUSType_WGPUSType_RenderPassMaxDrawCount: WGPUSType = 3;
pub const WGPUSType_WGPUSType_SurfaceSourceMetalLayer: WGPUSType = 4;
pub const WGPUSType_WGPUSType_SurfaceSourceWindowsHWND: WGPUSType = 5;
pub const WGPUSType_WGPUSType_SurfaceSourceXlibWindow: WGPUSType = 6;
pub const WGPUSType_WGPUSType_SurfaceSourceWaylandSurface: WGPUSType = 7;
pub const WGPUSType_WGPUSType_SurfaceSourceAndroidNativeWindow: WGPUSType = 8;
pub const WGPUSType_WGPUSType_SurfaceSourceXCBWindow: WGPUSType = 9;
pub const WGPUSType_WGPUSType_SurfaceColorManagement: WGPUSType = 10;
pub const WGPUSType_WGPUSType_RequestAdapterWebXROptions: WGPUSType = 11;
pub const WGPUSType_WGPUSType_TextureComponentSwizzleDescriptor: WGPUSType = 12;
pub const WGPUSType_WGPUSType_ExternalTextureBindingLayout: WGPUSType = 13;
pub const WGPUSType_WGPUSType_ExternalTextureBindingEntry: WGPUSType = 14;
pub const WGPUSType_WGPUSType_CompatibilityModeLimits: WGPUSType = 15;
pub const WGPUSType_WGPUSType_TextureBindingViewDimension: WGPUSType = 16;
pub const WGPUSType_WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector: WGPUSType = 262144;
pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsCoreWindow: WGPUSType = 327680;
pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsUWPSwapChainPanel: WGPUSType = 327683;
pub const WGPUSType_WGPUSType_DawnTextureInternalUsageDescriptor: WGPUSType = 327684;
pub const WGPUSType_WGPUSType_DawnEncoderInternalUsageDescriptor: WGPUSType = 327685;
pub const WGPUSType_WGPUSType_DawnInstanceDescriptor: WGPUSType = 327686;
pub const WGPUSType_WGPUSType_DawnCacheDeviceDescriptor: WGPUSType = 327687;
pub const WGPUSType_WGPUSType_DawnAdapterPropertiesPowerPreference: WGPUSType = 327688;
pub const WGPUSType_WGPUSType_DawnBufferDescriptorErrorInfoFromWireClient: WGPUSType = 327689;
pub const WGPUSType_WGPUSType_DawnTogglesDescriptor: WGPUSType = 327690;
pub const WGPUSType_WGPUSType_DawnShaderModuleSPIRVOptionsDescriptor: WGPUSType = 327691;
pub const WGPUSType_WGPUSType_RequestAdapterOptionsLUID: WGPUSType = 327692;
pub const WGPUSType_WGPUSType_RequestAdapterOptionsGetGLProc: WGPUSType = 327693;
pub const WGPUSType_WGPUSType_RequestAdapterOptionsD3D11Device: WGPUSType = 327694;
pub const WGPUSType_WGPUSType_DawnRenderPassSampleCount: WGPUSType = 327695;
pub const WGPUSType_WGPUSType_RenderPassPixelLocalStorage: WGPUSType = 327696;
pub const WGPUSType_WGPUSType_PipelineLayoutPixelLocalStorage: WGPUSType = 327697;
pub const WGPUSType_WGPUSType_BufferHostMappedPointer: WGPUSType = 327698;
pub const WGPUSType_WGPUSType_AdapterPropertiesMemoryHeaps: WGPUSType = 327699;
pub const WGPUSType_WGPUSType_AdapterPropertiesD3D: WGPUSType = 327700;
pub const WGPUSType_WGPUSType_AdapterPropertiesVk: WGPUSType = 327701;
pub const WGPUSType_WGPUSType_DawnWireWGSLControl: WGPUSType = 327702;
pub const WGPUSType_WGPUSType_DawnWGSLBlocklist: WGPUSType = 327703;
pub const WGPUSType_WGPUSType_DawnDrmFormatCapabilities: WGPUSType = 327704;
pub const WGPUSType_WGPUSType_ShaderModuleCompilationOptions: WGPUSType = 327705;
pub const WGPUSType_WGPUSType_ColorTargetStateExpandResolveTextureDawn: WGPUSType = 327706;
pub const WGPUSType_WGPUSType_RenderPassRenderAreaRect: WGPUSType = 327707;
pub const WGPUSType_WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor: WGPUSType =
327708;
pub const WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor: WGPUSType = 327709;
pub const WGPUSType_WGPUSType_SharedTextureMemoryDmaBufDescriptor: WGPUSType = 327710;
pub const WGPUSType_WGPUSType_SharedTextureMemoryOpaqueFDDescriptor: WGPUSType = 327711;
pub const WGPUSType_WGPUSType_SharedTextureMemoryZirconHandleDescriptor: WGPUSType = 327712;
pub const WGPUSType_WGPUSType_SharedTextureMemoryDXGISharedHandleDescriptor: WGPUSType = 327713;
pub const WGPUSType_WGPUSType_SharedTextureMemoryD3D11Texture2DDescriptor: WGPUSType = 327714;
pub const WGPUSType_WGPUSType_SharedTextureMemoryIOSurfaceDescriptor: WGPUSType = 327715;
pub const WGPUSType_WGPUSType_SharedTextureMemoryEGLImageDescriptor: WGPUSType = 327716;
pub const WGPUSType_WGPUSType_SharedTextureMemoryInitializedBeginState: WGPUSType = 327717;
pub const WGPUSType_WGPUSType_SharedTextureMemoryInitializedEndState: WGPUSType = 327718;
pub const WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutBeginState: WGPUSType = 327719;
pub const WGPUSType_WGPUSType_SharedTextureMemoryVkImageLayoutEndState: WGPUSType = 327720;
pub const WGPUSType_WGPUSType_SharedTextureMemoryD3DSwapchainBeginState: WGPUSType = 327721;
pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDDescriptor: WGPUSType = 327722;
pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreOpaqueFDExportInfo: WGPUSType = 327723;
pub const WGPUSType_WGPUSType_SharedFenceSyncFDDescriptor: WGPUSType = 327724;
pub const WGPUSType_WGPUSType_SharedFenceSyncFDExportInfo: WGPUSType = 327725;
pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleDescriptor: WGPUSType = 327726;
pub const WGPUSType_WGPUSType_SharedFenceVkSemaphoreZirconHandleExportInfo: WGPUSType = 327727;
pub const WGPUSType_WGPUSType_SharedFenceDXGISharedHandleDescriptor: WGPUSType = 327728;
pub const WGPUSType_WGPUSType_SharedFenceDXGISharedHandleExportInfo: WGPUSType = 327729;
pub const WGPUSType_WGPUSType_SharedFenceMTLSharedEventDescriptor: WGPUSType = 327730;
pub const WGPUSType_WGPUSType_SharedFenceMTLSharedEventExportInfo: WGPUSType = 327731;
pub const WGPUSType_WGPUSType_SharedBufferMemoryD3D12ResourceDescriptor: WGPUSType = 327732;
pub const WGPUSType_WGPUSType_StaticSamplerBindingLayout: WGPUSType = 327733;
pub const WGPUSType_WGPUSType_YCbCrVkDescriptor: WGPUSType = 327734;
pub const WGPUSType_WGPUSType_SharedTextureMemoryAHardwareBufferProperties: WGPUSType = 327735;
pub const WGPUSType_WGPUSType_AHardwareBufferProperties: WGPUSType = 327736;
pub const WGPUSType_WGPUSType_DawnTexelCopyBufferRowAlignmentLimits: WGPUSType = 327738;
pub const WGPUSType_WGPUSType_AdapterPropertiesSubgroupMatrixConfigs: WGPUSType = 327739;
pub const WGPUSType_WGPUSType_SharedFenceEGLSyncDescriptor: WGPUSType = 327740;
pub const WGPUSType_WGPUSType_SharedFenceEGLSyncExportInfo: WGPUSType = 327741;
pub const WGPUSType_WGPUSType_DawnInjectedInvalidSType: WGPUSType = 327742;
pub const WGPUSType_WGPUSType_DawnCompilationMessageUtf16: WGPUSType = 327743;
pub const WGPUSType_WGPUSType_DawnFakeBufferOOMForTesting: WGPUSType = 327744;
pub const WGPUSType_WGPUSType_SurfaceDescriptorFromWindowsWinUISwapChainPanel: WGPUSType = 327745;
pub const WGPUSType_WGPUSType_DawnDeviceAllocatorControl: WGPUSType = 327746;
pub const WGPUSType_WGPUSType_DawnHostMappedPointerLimits: WGPUSType = 327747;
pub const WGPUSType_WGPUSType_RenderPassDescriptorResolveRect: WGPUSType = 327748;
pub const WGPUSType_WGPUSType_RequestAdapterWebGPUBackendOptions: WGPUSType = 327749;
pub const WGPUSType_WGPUSType_DawnFakeDeviceInitializeErrorForTesting: WGPUSType = 327750;
pub const WGPUSType_WGPUSType_SharedTextureMemoryD3D11BeginState: WGPUSType = 327751;
pub const WGPUSType_WGPUSType_DawnConsumeAdapterDescriptor: WGPUSType = 327752;
pub const WGPUSType_WGPUSType_TexelBufferBindingEntry: WGPUSType = 327753;
pub const WGPUSType_WGPUSType_TexelBufferBindingLayout: WGPUSType = 327754;
pub const WGPUSType_WGPUSType_SharedTextureMemoryMetalEndAccessState: WGPUSType = 327755;
pub const WGPUSType_WGPUSType_AdapterPropertiesWGPU: WGPUSType = 327756;
pub const WGPUSType_WGPUSType_SharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor:
WGPUSType = 327757;
pub const WGPUSType_WGPUSType_SharedTextureMemoryD3D12ResourceDescriptor: WGPUSType = 327758;
pub const WGPUSType_WGPUSType_RequestAdapterOptionsAngleVirtualizationGroup: WGPUSType = 327759;
pub const WGPUSType_WGPUSType_PipelineLayoutResourceTable: WGPUSType = 327760;
pub const WGPUSType_WGPUSType_AdapterPropertiesExplicitComputeSubgroupSizeConfigs: WGPUSType =
327761;
pub const WGPUSType_WGPUSType_Force32: WGPUSType = 2147483647;
pub type WGPUSType = ::std::os::raw::c_uint;
pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_F32:
WGPUSubgroupMatrixComponentType = 1;
pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_F16:
WGPUSubgroupMatrixComponentType = 2;
pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_U32:
WGPUSubgroupMatrixComponentType = 3;
pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_I32:
WGPUSubgroupMatrixComponentType = 4;
pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_U8:
WGPUSubgroupMatrixComponentType = 5;
pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_I8:
WGPUSubgroupMatrixComponentType = 6;
pub const WGPUSubgroupMatrixComponentType_WGPUSubgroupMatrixComponentType_Force32:
WGPUSubgroupMatrixComponentType = 2147483647;
pub type WGPUSubgroupMatrixComponentType = ::std::os::raw::c_uint;
pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal:
WGPUSurfaceGetCurrentTextureStatus = 1;
pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal : WGPUSurfaceGetCurrentTextureStatus = 2 ;
pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Timeout:
WGPUSurfaceGetCurrentTextureStatus = 3;
pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Outdated:
WGPUSurfaceGetCurrentTextureStatus = 4;
pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Lost:
WGPUSurfaceGetCurrentTextureStatus = 5;
pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Error:
WGPUSurfaceGetCurrentTextureStatus = 6;
pub const WGPUSurfaceGetCurrentTextureStatus_WGPUSurfaceGetCurrentTextureStatus_Force32:
WGPUSurfaceGetCurrentTextureStatus = 2147483647;
pub type WGPUSurfaceGetCurrentTextureStatus = ::std::os::raw::c_uint;
pub const WGPUTexelBufferAccess_WGPUTexelBufferAccess_Undefined: WGPUTexelBufferAccess = 0;
pub const WGPUTexelBufferAccess_WGPUTexelBufferAccess_ReadOnly: WGPUTexelBufferAccess = 1;
pub const WGPUTexelBufferAccess_WGPUTexelBufferAccess_ReadWrite: WGPUTexelBufferAccess = 2;
pub const WGPUTexelBufferAccess_WGPUTexelBufferAccess_Force32: WGPUTexelBufferAccess = 2147483647;
pub type WGPUTexelBufferAccess = ::std::os::raw::c_uint;
pub const WGPUTextureAspect_WGPUTextureAspect_Undefined: WGPUTextureAspect = 0;
pub const WGPUTextureAspect_WGPUTextureAspect_All: WGPUTextureAspect = 1;
pub const WGPUTextureAspect_WGPUTextureAspect_StencilOnly: WGPUTextureAspect = 2;
pub const WGPUTextureAspect_WGPUTextureAspect_DepthOnly: WGPUTextureAspect = 3;
pub const WGPUTextureAspect_WGPUTextureAspect_Plane0Only: WGPUTextureAspect = 327680;
pub const WGPUTextureAspect_WGPUTextureAspect_Plane1Only: WGPUTextureAspect = 327681;
pub const WGPUTextureAspect_WGPUTextureAspect_Plane2Only: WGPUTextureAspect = 327682;
pub const WGPUTextureAspect_WGPUTextureAspect_Force32: WGPUTextureAspect = 2147483647;
pub type WGPUTextureAspect = ::std::os::raw::c_uint;
pub const WGPUTextureDimension_WGPUTextureDimension_Undefined: WGPUTextureDimension = 0;
pub const WGPUTextureDimension_WGPUTextureDimension_1D: WGPUTextureDimension = 1;
pub const WGPUTextureDimension_WGPUTextureDimension_2D: WGPUTextureDimension = 2;
pub const WGPUTextureDimension_WGPUTextureDimension_3D: WGPUTextureDimension = 3;
pub const WGPUTextureDimension_WGPUTextureDimension_Force32: WGPUTextureDimension = 2147483647;
pub type WGPUTextureDimension = ::std::os::raw::c_uint;
pub const WGPUTextureFormat_WGPUTextureFormat_Undefined: WGPUTextureFormat = 0;
pub const WGPUTextureFormat_WGPUTextureFormat_R8Unorm: WGPUTextureFormat = 1;
pub const WGPUTextureFormat_WGPUTextureFormat_R8Snorm: WGPUTextureFormat = 2;
pub const WGPUTextureFormat_WGPUTextureFormat_R8Uint: WGPUTextureFormat = 3;
pub const WGPUTextureFormat_WGPUTextureFormat_R8Sint: WGPUTextureFormat = 4;
pub const WGPUTextureFormat_WGPUTextureFormat_R16Unorm: WGPUTextureFormat = 5;
pub const WGPUTextureFormat_WGPUTextureFormat_R16Snorm: WGPUTextureFormat = 6;
pub const WGPUTextureFormat_WGPUTextureFormat_R16Uint: WGPUTextureFormat = 7;
pub const WGPUTextureFormat_WGPUTextureFormat_R16Sint: WGPUTextureFormat = 8;
pub const WGPUTextureFormat_WGPUTextureFormat_R16Float: WGPUTextureFormat = 9;
pub const WGPUTextureFormat_WGPUTextureFormat_RG8Unorm: WGPUTextureFormat = 10;
pub const WGPUTextureFormat_WGPUTextureFormat_RG8Snorm: WGPUTextureFormat = 11;
pub const WGPUTextureFormat_WGPUTextureFormat_RG8Uint: WGPUTextureFormat = 12;
pub const WGPUTextureFormat_WGPUTextureFormat_RG8Sint: WGPUTextureFormat = 13;
pub const WGPUTextureFormat_WGPUTextureFormat_R32Float: WGPUTextureFormat = 14;
pub const WGPUTextureFormat_WGPUTextureFormat_R32Uint: WGPUTextureFormat = 15;
pub const WGPUTextureFormat_WGPUTextureFormat_R32Sint: WGPUTextureFormat = 16;
pub const WGPUTextureFormat_WGPUTextureFormat_RG16Unorm: WGPUTextureFormat = 17;
pub const WGPUTextureFormat_WGPUTextureFormat_RG16Snorm: WGPUTextureFormat = 18;
pub const WGPUTextureFormat_WGPUTextureFormat_RG16Uint: WGPUTextureFormat = 19;
pub const WGPUTextureFormat_WGPUTextureFormat_RG16Sint: WGPUTextureFormat = 20;
pub const WGPUTextureFormat_WGPUTextureFormat_RG16Float: WGPUTextureFormat = 21;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Unorm: WGPUTextureFormat = 22;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8UnormSrgb: WGPUTextureFormat = 23;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Snorm: WGPUTextureFormat = 24;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Uint: WGPUTextureFormat = 25;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA8Sint: WGPUTextureFormat = 26;
pub const WGPUTextureFormat_WGPUTextureFormat_BGRA8Unorm: WGPUTextureFormat = 27;
pub const WGPUTextureFormat_WGPUTextureFormat_BGRA8UnormSrgb: WGPUTextureFormat = 28;
pub const WGPUTextureFormat_WGPUTextureFormat_RGB10A2Uint: WGPUTextureFormat = 29;
pub const WGPUTextureFormat_WGPUTextureFormat_RGB10A2Unorm: WGPUTextureFormat = 30;
pub const WGPUTextureFormat_WGPUTextureFormat_RG11B10Ufloat: WGPUTextureFormat = 31;
pub const WGPUTextureFormat_WGPUTextureFormat_RGB9E5Ufloat: WGPUTextureFormat = 32;
pub const WGPUTextureFormat_WGPUTextureFormat_RG32Float: WGPUTextureFormat = 33;
pub const WGPUTextureFormat_WGPUTextureFormat_RG32Uint: WGPUTextureFormat = 34;
pub const WGPUTextureFormat_WGPUTextureFormat_RG32Sint: WGPUTextureFormat = 35;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Unorm: WGPUTextureFormat = 36;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Snorm: WGPUTextureFormat = 37;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Uint: WGPUTextureFormat = 38;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Sint: WGPUTextureFormat = 39;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA16Float: WGPUTextureFormat = 40;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Float: WGPUTextureFormat = 41;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Uint: WGPUTextureFormat = 42;
pub const WGPUTextureFormat_WGPUTextureFormat_RGBA32Sint: WGPUTextureFormat = 43;
pub const WGPUTextureFormat_WGPUTextureFormat_Stencil8: WGPUTextureFormat = 44;
pub const WGPUTextureFormat_WGPUTextureFormat_Depth16Unorm: WGPUTextureFormat = 45;
pub const WGPUTextureFormat_WGPUTextureFormat_Depth24Plus: WGPUTextureFormat = 46;
pub const WGPUTextureFormat_WGPUTextureFormat_Depth24PlusStencil8: WGPUTextureFormat = 47;
pub const WGPUTextureFormat_WGPUTextureFormat_Depth32Float: WGPUTextureFormat = 48;
pub const WGPUTextureFormat_WGPUTextureFormat_Depth32FloatStencil8: WGPUTextureFormat = 49;
pub const WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnorm: WGPUTextureFormat = 50;
pub const WGPUTextureFormat_WGPUTextureFormat_BC1RGBAUnormSrgb: WGPUTextureFormat = 51;
pub const WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnorm: WGPUTextureFormat = 52;
pub const WGPUTextureFormat_WGPUTextureFormat_BC2RGBAUnormSrgb: WGPUTextureFormat = 53;
pub const WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnorm: WGPUTextureFormat = 54;
pub const WGPUTextureFormat_WGPUTextureFormat_BC3RGBAUnormSrgb: WGPUTextureFormat = 55;
pub const WGPUTextureFormat_WGPUTextureFormat_BC4RUnorm: WGPUTextureFormat = 56;
pub const WGPUTextureFormat_WGPUTextureFormat_BC4RSnorm: WGPUTextureFormat = 57;
pub const WGPUTextureFormat_WGPUTextureFormat_BC5RGUnorm: WGPUTextureFormat = 58;
pub const WGPUTextureFormat_WGPUTextureFormat_BC5RGSnorm: WGPUTextureFormat = 59;
pub const WGPUTextureFormat_WGPUTextureFormat_BC6HRGBUfloat: WGPUTextureFormat = 60;
pub const WGPUTextureFormat_WGPUTextureFormat_BC6HRGBFloat: WGPUTextureFormat = 61;
pub const WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnorm: WGPUTextureFormat = 62;
pub const WGPUTextureFormat_WGPUTextureFormat_BC7RGBAUnormSrgb: WGPUTextureFormat = 63;
pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8Unorm: WGPUTextureFormat = 64;
pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8UnormSrgb: WGPUTextureFormat = 65;
pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1Unorm: WGPUTextureFormat = 66;
pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGB8A1UnormSrgb: WGPUTextureFormat = 67;
pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8Unorm: WGPUTextureFormat = 68;
pub const WGPUTextureFormat_WGPUTextureFormat_ETC2RGBA8UnormSrgb: WGPUTextureFormat = 69;
pub const WGPUTextureFormat_WGPUTextureFormat_EACR11Unorm: WGPUTextureFormat = 70;
pub const WGPUTextureFormat_WGPUTextureFormat_EACR11Snorm: WGPUTextureFormat = 71;
pub const WGPUTextureFormat_WGPUTextureFormat_EACRG11Unorm: WGPUTextureFormat = 72;
pub const WGPUTextureFormat_WGPUTextureFormat_EACRG11Snorm: WGPUTextureFormat = 73;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC4x4Unorm: WGPUTextureFormat = 74;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC4x4UnormSrgb: WGPUTextureFormat = 75;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x4Unorm: WGPUTextureFormat = 76;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x4UnormSrgb: WGPUTextureFormat = 77;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x5Unorm: WGPUTextureFormat = 78;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC5x5UnormSrgb: WGPUTextureFormat = 79;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x5Unorm: WGPUTextureFormat = 80;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x5UnormSrgb: WGPUTextureFormat = 81;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x6Unorm: WGPUTextureFormat = 82;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC6x6UnormSrgb: WGPUTextureFormat = 83;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x5Unorm: WGPUTextureFormat = 84;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x5UnormSrgb: WGPUTextureFormat = 85;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x6Unorm: WGPUTextureFormat = 86;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x6UnormSrgb: WGPUTextureFormat = 87;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x8Unorm: WGPUTextureFormat = 88;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC8x8UnormSrgb: WGPUTextureFormat = 89;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x5Unorm: WGPUTextureFormat = 90;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x5UnormSrgb: WGPUTextureFormat = 91;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x6Unorm: WGPUTextureFormat = 92;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x6UnormSrgb: WGPUTextureFormat = 93;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x8Unorm: WGPUTextureFormat = 94;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x8UnormSrgb: WGPUTextureFormat = 95;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x10Unorm: WGPUTextureFormat = 96;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC10x10UnormSrgb: WGPUTextureFormat = 97;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x10Unorm: WGPUTextureFormat = 98;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x10UnormSrgb: WGPUTextureFormat = 99;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x12Unorm: WGPUTextureFormat = 100;
pub const WGPUTextureFormat_WGPUTextureFormat_ASTC12x12UnormSrgb: WGPUTextureFormat = 101;
pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar420Unorm: WGPUTextureFormat = 327680;
pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm: WGPUTextureFormat =
327681;
pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8A8Triplanar420Unorm: WGPUTextureFormat = 327682;
pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar422Unorm: WGPUTextureFormat = 327683;
pub const WGPUTextureFormat_WGPUTextureFormat_R8BG8Biplanar444Unorm: WGPUTextureFormat = 327684;
pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm: WGPUTextureFormat =
327685;
pub const WGPUTextureFormat_WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm: WGPUTextureFormat =
327686;
pub const WGPUTextureFormat_WGPUTextureFormat_OpaqueYCbCrAndroid: WGPUTextureFormat = 327687;
pub const WGPUTextureFormat_WGPUTextureFormat_Force32: WGPUTextureFormat = 2147483647;
pub type WGPUTextureFormat = ::std::os::raw::c_uint;
pub const WGPUTextureSampleType_WGPUTextureSampleType_BindingNotUsed: WGPUTextureSampleType = 0;
pub const WGPUTextureSampleType_WGPUTextureSampleType_Undefined: WGPUTextureSampleType = 1;
pub const WGPUTextureSampleType_WGPUTextureSampleType_Float: WGPUTextureSampleType = 2;
pub const WGPUTextureSampleType_WGPUTextureSampleType_UnfilterableFloat: WGPUTextureSampleType = 3;
pub const WGPUTextureSampleType_WGPUTextureSampleType_Depth: WGPUTextureSampleType = 4;
pub const WGPUTextureSampleType_WGPUTextureSampleType_Sint: WGPUTextureSampleType = 5;
pub const WGPUTextureSampleType_WGPUTextureSampleType_Uint: WGPUTextureSampleType = 6;
pub const WGPUTextureSampleType_WGPUTextureSampleType_Force32: WGPUTextureSampleType = 2147483647;
pub type WGPUTextureSampleType = ::std::os::raw::c_uint;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Undefined: WGPUTextureViewDimension = 0;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_1D: WGPUTextureViewDimension = 1;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_2D: WGPUTextureViewDimension = 2;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_2DArray: WGPUTextureViewDimension = 3;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Cube: WGPUTextureViewDimension = 4;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_CubeArray: WGPUTextureViewDimension = 5;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_3D: WGPUTextureViewDimension = 6;
pub const WGPUTextureViewDimension_WGPUTextureViewDimension_Force32: WGPUTextureViewDimension =
2147483647;
pub type WGPUTextureViewDimension = ::std::os::raw::c_uint;
pub const WGPUToneMappingMode_WGPUToneMappingMode_Standard: WGPUToneMappingMode = 1;
pub const WGPUToneMappingMode_WGPUToneMappingMode_Extended: WGPUToneMappingMode = 2;
pub const WGPUToneMappingMode_WGPUToneMappingMode_Force32: WGPUToneMappingMode = 2147483647;
pub type WGPUToneMappingMode = ::std::os::raw::c_uint;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint8: WGPUVertexFormat = 1;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint8x2: WGPUVertexFormat = 2;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint8x4: WGPUVertexFormat = 3;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint8: WGPUVertexFormat = 4;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint8x2: WGPUVertexFormat = 5;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint8x4: WGPUVertexFormat = 6;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8: WGPUVertexFormat = 7;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x2: WGPUVertexFormat = 8;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x4: WGPUVertexFormat = 9;
pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8: WGPUVertexFormat = 10;
pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8x2: WGPUVertexFormat = 11;
pub const WGPUVertexFormat_WGPUVertexFormat_Snorm8x4: WGPUVertexFormat = 12;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint16: WGPUVertexFormat = 13;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint16x2: WGPUVertexFormat = 14;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint16x4: WGPUVertexFormat = 15;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint16: WGPUVertexFormat = 16;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint16x2: WGPUVertexFormat = 17;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint16x4: WGPUVertexFormat = 18;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16: WGPUVertexFormat = 19;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16x2: WGPUVertexFormat = 20;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm16x4: WGPUVertexFormat = 21;
pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16: WGPUVertexFormat = 22;
pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16x2: WGPUVertexFormat = 23;
pub const WGPUVertexFormat_WGPUVertexFormat_Snorm16x4: WGPUVertexFormat = 24;
pub const WGPUVertexFormat_WGPUVertexFormat_Float16: WGPUVertexFormat = 25;
pub const WGPUVertexFormat_WGPUVertexFormat_Float16x2: WGPUVertexFormat = 26;
pub const WGPUVertexFormat_WGPUVertexFormat_Float16x4: WGPUVertexFormat = 27;
pub const WGPUVertexFormat_WGPUVertexFormat_Float32: WGPUVertexFormat = 28;
pub const WGPUVertexFormat_WGPUVertexFormat_Float32x2: WGPUVertexFormat = 29;
pub const WGPUVertexFormat_WGPUVertexFormat_Float32x3: WGPUVertexFormat = 30;
pub const WGPUVertexFormat_WGPUVertexFormat_Float32x4: WGPUVertexFormat = 31;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint32: WGPUVertexFormat = 32;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x2: WGPUVertexFormat = 33;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x3: WGPUVertexFormat = 34;
pub const WGPUVertexFormat_WGPUVertexFormat_Uint32x4: WGPUVertexFormat = 35;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint32: WGPUVertexFormat = 36;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x2: WGPUVertexFormat = 37;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x3: WGPUVertexFormat = 38;
pub const WGPUVertexFormat_WGPUVertexFormat_Sint32x4: WGPUVertexFormat = 39;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm10_10_10_2: WGPUVertexFormat = 40;
pub const WGPUVertexFormat_WGPUVertexFormat_Unorm8x4BGRA: WGPUVertexFormat = 41;
pub const WGPUVertexFormat_WGPUVertexFormat_Force32: WGPUVertexFormat = 2147483647;
pub type WGPUVertexFormat = ::std::os::raw::c_uint;
pub const WGPUVertexStepMode_WGPUVertexStepMode_Undefined: WGPUVertexStepMode = 0;
pub const WGPUVertexStepMode_WGPUVertexStepMode_Vertex: WGPUVertexStepMode = 1;
pub const WGPUVertexStepMode_WGPUVertexStepMode_Instance: WGPUVertexStepMode = 2;
pub const WGPUVertexStepMode_WGPUVertexStepMode_Force32: WGPUVertexStepMode = 2147483647;
pub type WGPUVertexStepMode = ::std::os::raw::c_uint;
pub const WGPUWaitStatus_WGPUWaitStatus_Success: WGPUWaitStatus = 1;
pub const WGPUWaitStatus_WGPUWaitStatus_TimedOut: WGPUWaitStatus = 2;
pub const WGPUWaitStatus_WGPUWaitStatus_Error: WGPUWaitStatus = 3;
pub const WGPUWaitStatus_WGPUWaitStatus_Force32: WGPUWaitStatus = 2147483647;
pub type WGPUWaitStatus = ::std::os::raw::c_uint;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures : WGPUWGSLLanguageFeatureName = 1 ;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct:
WGPUWGSLLanguageFeatureName = 2;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters:
WGPUWGSLLanguageFeatureName = 3;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_PointerCompositeAccess:
WGPUWGSLLanguageFeatureName = 4;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout:
WGPUWGSLLanguageFeatureName = 5;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_SubgroupId:
WGPUWGSLLanguageFeatureName = 6;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_TextureAndSamplerLet:
WGPUWGSLLanguageFeatureName = 7;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_SubgroupUniformity:
WGPUWGSLLanguageFeatureName = 8;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_TextureFormatsTier1:
WGPUWGSLLanguageFeatureName = 9;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingUnimplemented:
WGPUWGSLLanguageFeatureName = 327680;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingUnsafeExperimental : WGPUWGSLLanguageFeatureName = 327681 ;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingExperimental:
WGPUWGSLLanguageFeatureName = 327682;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingShippedWithKillswitch : WGPUWGSLLanguageFeatureName = 327683 ;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumTestingShipped:
WGPUWGSLLanguageFeatureName = 327684;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_SizedBindingArray:
WGPUWGSLLanguageFeatureName = 327685;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_TexelBuffers:
WGPUWGSLLanguageFeatureName = 327686;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ChromiumPrint:
WGPUWGSLLanguageFeatureName = 327687;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_FragmentDepth:
WGPUWGSLLanguageFeatureName = 327688;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_ImmediateAddressSpace:
WGPUWGSLLanguageFeatureName = 327689;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_BufferView:
WGPUWGSLLanguageFeatureName = 327691;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_FilteringParameters:
WGPUWGSLLanguageFeatureName = 327692;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_SwizzleAssignment:
WGPUWGSLLanguageFeatureName = 327693;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_LinearIndexing:
WGPUWGSLLanguageFeatureName = 327694;
pub const WGPUWGSLLanguageFeatureName_WGPUWGSLLanguageFeatureName_Force32:
WGPUWGSLLanguageFeatureName = 2147483647;
pub type WGPUWGSLLanguageFeatureName = ::std::os::raw::c_uint;
pub type WGPUBufferUsage = WGPUFlags;
pub const WGPUBufferUsage_None: WGPUBufferUsage = 0;
pub const WGPUBufferUsage_MapRead: WGPUBufferUsage = 1;
pub const WGPUBufferUsage_MapWrite: WGPUBufferUsage = 2;
pub const WGPUBufferUsage_CopySrc: WGPUBufferUsage = 4;
pub const WGPUBufferUsage_CopyDst: WGPUBufferUsage = 8;
pub const WGPUBufferUsage_Index: WGPUBufferUsage = 16;
pub const WGPUBufferUsage_Vertex: WGPUBufferUsage = 32;
pub const WGPUBufferUsage_Uniform: WGPUBufferUsage = 64;
pub const WGPUBufferUsage_Storage: WGPUBufferUsage = 128;
pub const WGPUBufferUsage_Indirect: WGPUBufferUsage = 256;
pub const WGPUBufferUsage_QueryResolve: WGPUBufferUsage = 512;
pub const WGPUBufferUsage_TexelBuffer: WGPUBufferUsage = 1024;
pub type WGPUColorWriteMask = WGPUFlags;
pub const WGPUColorWriteMask_None: WGPUColorWriteMask = 0;
pub const WGPUColorWriteMask_Red: WGPUColorWriteMask = 1;
pub const WGPUColorWriteMask_Green: WGPUColorWriteMask = 2;
pub const WGPUColorWriteMask_Blue: WGPUColorWriteMask = 4;
pub const WGPUColorWriteMask_Alpha: WGPUColorWriteMask = 8;
pub const WGPUColorWriteMask_All: WGPUColorWriteMask = 15;
pub type WGPUHeapProperty = WGPUFlags;
pub const WGPUHeapProperty_None: WGPUHeapProperty = 0;
pub const WGPUHeapProperty_DeviceLocal: WGPUHeapProperty = 1;
pub const WGPUHeapProperty_HostVisible: WGPUHeapProperty = 2;
pub const WGPUHeapProperty_HostCoherent: WGPUHeapProperty = 4;
pub const WGPUHeapProperty_HostUncached: WGPUHeapProperty = 8;
pub const WGPUHeapProperty_HostCached: WGPUHeapProperty = 16;
pub type WGPUMapMode = WGPUFlags;
pub const WGPUMapMode_None: WGPUMapMode = 0;
pub const WGPUMapMode_Read: WGPUMapMode = 1;
pub const WGPUMapMode_Write: WGPUMapMode = 2;
pub type WGPUShaderStage = WGPUFlags;
pub const WGPUShaderStage_None: WGPUShaderStage = 0;
pub const WGPUShaderStage_Vertex: WGPUShaderStage = 1;
pub const WGPUShaderStage_Fragment: WGPUShaderStage = 2;
pub const WGPUShaderStage_Compute: WGPUShaderStage = 4;
pub type WGPUTextureUsage = WGPUFlags;
pub const WGPUTextureUsage_None: WGPUTextureUsage = 0;
pub const WGPUTextureUsage_CopySrc: WGPUTextureUsage = 1;
pub const WGPUTextureUsage_CopyDst: WGPUTextureUsage = 2;
pub const WGPUTextureUsage_TextureBinding: WGPUTextureUsage = 4;
pub const WGPUTextureUsage_StorageBinding: WGPUTextureUsage = 8;
pub const WGPUTextureUsage_RenderAttachment: WGPUTextureUsage = 16;
pub const WGPUTextureUsage_TransientAttachment: WGPUTextureUsage = 32;
pub const WGPUTextureUsage_StorageAttachment: WGPUTextureUsage = 64;
pub type WGPUCallback =
::std::option::Option<unsafe extern "C" fn(userdata: *mut ::std::os::raw::c_void)>;
pub type WGPUDawnLoadCacheDataFunction = ::std::option::Option<
unsafe extern "C" fn(
key: *const ::std::os::raw::c_void,
keySize: usize,
value: *mut ::std::os::raw::c_void,
valueSize: usize,
userdata: *mut ::std::os::raw::c_void,
) -> usize,
>;
pub type WGPUDawnStoreCacheDataFunction = ::std::option::Option<
unsafe extern "C" fn(
key: *const ::std::os::raw::c_void,
keySize: usize,
value: *const ::std::os::raw::c_void,
valueSize: usize,
userdata: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUProc = ::std::option::Option<unsafe extern "C" fn()>;
pub type WGPUBufferMapCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPUMapAsyncStatus,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUCompilationInfoCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPUCompilationInfoRequestStatus,
compilationInfo: *const WGPUCompilationInfo,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUCreateComputePipelineAsyncCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPUCreatePipelineAsyncStatus,
pipeline: WGPUComputePipeline,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUCreateRenderPipelineAsyncCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPUCreatePipelineAsyncStatus,
pipeline: WGPURenderPipeline,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUDeviceLostCallback = ::std::option::Option<
unsafe extern "C" fn(
device: *const WGPUDevice,
reason: WGPUDeviceLostReason,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPULoggingCallback = ::std::option::Option<
unsafe extern "C" fn(
type_: WGPULoggingType,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUPopErrorScopeCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPUPopErrorScopeStatus,
type_: WGPUErrorType,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUQueueWorkDoneCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPUQueueWorkDoneStatus,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPURequestAdapterCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPURequestAdapterStatus,
adapter: WGPUAdapter,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPURequestDeviceCallback = ::std::option::Option<
unsafe extern "C" fn(
status: WGPURequestDeviceStatus,
device: WGPUDevice,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
pub type WGPUUncapturedErrorCallback = ::std::option::Option<
unsafe extern "C" fn(
device: *const WGPUDevice,
type_: WGPUErrorType,
message: WGPUStringView,
userdata1: *mut ::std::os::raw::c_void,
userdata2: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUChainedStruct {
pub next: *mut WGPUChainedStruct,
pub sType: WGPUSType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUChainedStruct"][::std::mem::size_of::<WGPUChainedStruct>() - 16usize];
["Alignment of WGPUChainedStruct"][::std::mem::align_of::<WGPUChainedStruct>() - 8usize];
["Offset of field: WGPUChainedStruct::next"]
[::std::mem::offset_of!(WGPUChainedStruct, next) - 0usize];
["Offset of field: WGPUChainedStruct::sType"]
[::std::mem::offset_of!(WGPUChainedStruct, sType) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBufferMapCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPUBufferMapCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBufferMapCallbackInfo"]
[::std::mem::size_of::<WGPUBufferMapCallbackInfo>() - 40usize];
["Alignment of WGPUBufferMapCallbackInfo"]
[::std::mem::align_of::<WGPUBufferMapCallbackInfo>() - 8usize];
["Offset of field: WGPUBufferMapCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUBufferMapCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUBufferMapCallbackInfo::mode"]
[::std::mem::offset_of!(WGPUBufferMapCallbackInfo, mode) - 8usize];
["Offset of field: WGPUBufferMapCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUBufferMapCallbackInfo, callback) - 16usize];
["Offset of field: WGPUBufferMapCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPUBufferMapCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUBufferMapCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCompilationInfoCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPUCompilationInfoCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCompilationInfoCallbackInfo"]
[::std::mem::size_of::<WGPUCompilationInfoCallbackInfo>() - 40usize];
["Alignment of WGPUCompilationInfoCallbackInfo"]
[::std::mem::align_of::<WGPUCompilationInfoCallbackInfo>() - 8usize];
["Offset of field: WGPUCompilationInfoCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUCompilationInfoCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUCompilationInfoCallbackInfo::mode"]
[::std::mem::offset_of!(WGPUCompilationInfoCallbackInfo, mode) - 8usize];
["Offset of field: WGPUCompilationInfoCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUCompilationInfoCallbackInfo, callback) - 16usize];
["Offset of field: WGPUCompilationInfoCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPUCompilationInfoCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUCompilationInfoCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCreateComputePipelineAsyncCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPUCreateComputePipelineAsyncCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCreateComputePipelineAsyncCallbackInfo"]
[::std::mem::size_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 40usize];
["Alignment of WGPUCreateComputePipelineAsyncCallbackInfo"]
[::std::mem::align_of::<WGPUCreateComputePipelineAsyncCallbackInfo>() - 8usize];
["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::mode"]
[::std::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, mode) - 8usize];
["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, callback) - 16usize];
["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPUCreateComputePipelineAsyncCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUCreateComputePipelineAsyncCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCreateRenderPipelineAsyncCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPUCreateRenderPipelineAsyncCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCreateRenderPipelineAsyncCallbackInfo"]
[::std::mem::size_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 40usize];
["Alignment of WGPUCreateRenderPipelineAsyncCallbackInfo"]
[::std::mem::align_of::<WGPUCreateRenderPipelineAsyncCallbackInfo>() - 8usize];
["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::mode"]
[::std::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, mode) - 8usize];
["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, callback) - 16usize];
["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPUCreateRenderPipelineAsyncCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUCreateRenderPipelineAsyncCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDeviceLostCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPUDeviceLostCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDeviceLostCallbackInfo"]
[::std::mem::size_of::<WGPUDeviceLostCallbackInfo>() - 40usize];
["Alignment of WGPUDeviceLostCallbackInfo"]
[::std::mem::align_of::<WGPUDeviceLostCallbackInfo>() - 8usize];
["Offset of field: WGPUDeviceLostCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUDeviceLostCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUDeviceLostCallbackInfo::mode"]
[::std::mem::offset_of!(WGPUDeviceLostCallbackInfo, mode) - 8usize];
["Offset of field: WGPUDeviceLostCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUDeviceLostCallbackInfo, callback) - 16usize];
["Offset of field: WGPUDeviceLostCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPUDeviceLostCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUDeviceLostCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPULoggingCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub callback: WGPULoggingCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPULoggingCallbackInfo"][::std::mem::size_of::<WGPULoggingCallbackInfo>() - 32usize];
["Alignment of WGPULoggingCallbackInfo"]
[::std::mem::align_of::<WGPULoggingCallbackInfo>() - 8usize];
["Offset of field: WGPULoggingCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPULoggingCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPULoggingCallbackInfo::callback"]
[::std::mem::offset_of!(WGPULoggingCallbackInfo, callback) - 8usize];
["Offset of field: WGPULoggingCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPULoggingCallbackInfo, userdata1) - 16usize];
["Offset of field: WGPULoggingCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPULoggingCallbackInfo, userdata2) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPopErrorScopeCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPUPopErrorScopeCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUPopErrorScopeCallbackInfo"]
[::std::mem::size_of::<WGPUPopErrorScopeCallbackInfo>() - 40usize];
["Alignment of WGPUPopErrorScopeCallbackInfo"]
[::std::mem::align_of::<WGPUPopErrorScopeCallbackInfo>() - 8usize];
["Offset of field: WGPUPopErrorScopeCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUPopErrorScopeCallbackInfo::mode"]
[::std::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, mode) - 8usize];
["Offset of field: WGPUPopErrorScopeCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, callback) - 16usize];
["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPUPopErrorScopeCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUPopErrorScopeCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUQueueWorkDoneCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPUQueueWorkDoneCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUQueueWorkDoneCallbackInfo"]
[::std::mem::size_of::<WGPUQueueWorkDoneCallbackInfo>() - 40usize];
["Alignment of WGPUQueueWorkDoneCallbackInfo"]
[::std::mem::align_of::<WGPUQueueWorkDoneCallbackInfo>() - 8usize];
["Offset of field: WGPUQueueWorkDoneCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUQueueWorkDoneCallbackInfo::mode"]
[::std::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, mode) - 8usize];
["Offset of field: WGPUQueueWorkDoneCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, callback) - 16usize];
["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPUQueueWorkDoneCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUQueueWorkDoneCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURequestAdapterCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPURequestAdapterCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURequestAdapterCallbackInfo"]
[::std::mem::size_of::<WGPURequestAdapterCallbackInfo>() - 40usize];
["Alignment of WGPURequestAdapterCallbackInfo"]
[::std::mem::align_of::<WGPURequestAdapterCallbackInfo>() - 8usize];
["Offset of field: WGPURequestAdapterCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPURequestAdapterCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPURequestAdapterCallbackInfo::mode"]
[::std::mem::offset_of!(WGPURequestAdapterCallbackInfo, mode) - 8usize];
["Offset of field: WGPURequestAdapterCallbackInfo::callback"]
[::std::mem::offset_of!(WGPURequestAdapterCallbackInfo, callback) - 16usize];
["Offset of field: WGPURequestAdapterCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPURequestAdapterCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPURequestAdapterCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURequestDeviceCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub mode: WGPUCallbackMode,
pub callback: WGPURequestDeviceCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURequestDeviceCallbackInfo"]
[::std::mem::size_of::<WGPURequestDeviceCallbackInfo>() - 40usize];
["Alignment of WGPURequestDeviceCallbackInfo"]
[::std::mem::align_of::<WGPURequestDeviceCallbackInfo>() - 8usize];
["Offset of field: WGPURequestDeviceCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPURequestDeviceCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPURequestDeviceCallbackInfo::mode"]
[::std::mem::offset_of!(WGPURequestDeviceCallbackInfo, mode) - 8usize];
["Offset of field: WGPURequestDeviceCallbackInfo::callback"]
[::std::mem::offset_of!(WGPURequestDeviceCallbackInfo, callback) - 16usize];
["Offset of field: WGPURequestDeviceCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata1) - 24usize];
["Offset of field: WGPURequestDeviceCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPURequestDeviceCallbackInfo, userdata2) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUUncapturedErrorCallbackInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub callback: WGPUUncapturedErrorCallback,
pub userdata1: *mut ::std::os::raw::c_void,
pub userdata2: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUUncapturedErrorCallbackInfo"]
[::std::mem::size_of::<WGPUUncapturedErrorCallbackInfo>() - 32usize];
["Alignment of WGPUUncapturedErrorCallbackInfo"]
[::std::mem::align_of::<WGPUUncapturedErrorCallbackInfo>() - 8usize];
["Offset of field: WGPUUncapturedErrorCallbackInfo::nextInChain"]
[::std::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, nextInChain) - 0usize];
["Offset of field: WGPUUncapturedErrorCallbackInfo::callback"]
[::std::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, callback) - 8usize];
["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata1"]
[::std::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata1) - 16usize];
["Offset of field: WGPUUncapturedErrorCallbackInfo::userdata2"]
[::std::mem::offset_of!(WGPUUncapturedErrorCallbackInfo, userdata2) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterPropertiesD3D {
pub chain: WGPUChainedStruct,
pub shaderModel: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAdapterPropertiesD3D"]
[::std::mem::size_of::<WGPUAdapterPropertiesD3D>() - 24usize];
["Alignment of WGPUAdapterPropertiesD3D"]
[::std::mem::align_of::<WGPUAdapterPropertiesD3D>() - 8usize];
["Offset of field: WGPUAdapterPropertiesD3D::chain"]
[::std::mem::offset_of!(WGPUAdapterPropertiesD3D, chain) - 0usize];
["Offset of field: WGPUAdapterPropertiesD3D::shaderModel"]
[::std::mem::offset_of!(WGPUAdapterPropertiesD3D, shaderModel) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs {
pub chain: WGPUChainedStruct,
pub minExplicitComputeSubgroupSize: u32,
pub maxExplicitComputeSubgroupSize: u32,
pub maxComputeWorkgroupSubgroups: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs"][::std::mem::size_of::<
WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs,
>() - 32usize];
["Alignment of WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs"][::std::mem::align_of::<
WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs,
>() - 8usize];
["Offset of field: WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs::chain"][::std::mem::offset_of!(
WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs,
chain
) - 0usize];
["Offset of field: WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs::minExplicitComputeSubgroupSize"] [:: std :: mem :: offset_of ! (WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs , minExplicitComputeSubgroupSize) - 16usize] ;
["Offset of field: WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs::maxExplicitComputeSubgroupSize"] [:: std :: mem :: offset_of ! (WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs , maxExplicitComputeSubgroupSize) - 20usize] ;
["Offset of field: WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs::maxComputeWorkgroupSubgroups"] [:: std :: mem :: offset_of ! (WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs , maxComputeWorkgroupSubgroups) - 24usize] ;
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterPropertiesVk {
pub chain: WGPUChainedStruct,
pub driverVersion: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAdapterPropertiesVk"][::std::mem::size_of::<WGPUAdapterPropertiesVk>() - 24usize];
["Alignment of WGPUAdapterPropertiesVk"]
[::std::mem::align_of::<WGPUAdapterPropertiesVk>() - 8usize];
["Offset of field: WGPUAdapterPropertiesVk::chain"]
[::std::mem::offset_of!(WGPUAdapterPropertiesVk, chain) - 0usize];
["Offset of field: WGPUAdapterPropertiesVk::driverVersion"]
[::std::mem::offset_of!(WGPUAdapterPropertiesVk, driverVersion) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterPropertiesWGPU {
pub chain: WGPUChainedStruct,
pub backendType: WGPUBackendType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAdapterPropertiesWGPU"]
[::std::mem::size_of::<WGPUAdapterPropertiesWGPU>() - 24usize];
["Alignment of WGPUAdapterPropertiesWGPU"]
[::std::mem::align_of::<WGPUAdapterPropertiesWGPU>() - 8usize];
["Offset of field: WGPUAdapterPropertiesWGPU::chain"]
[::std::mem::offset_of!(WGPUAdapterPropertiesWGPU, chain) - 0usize];
["Offset of field: WGPUAdapterPropertiesWGPU::backendType"]
[::std::mem::offset_of!(WGPUAdapterPropertiesWGPU, backendType) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBindingResource {
pub nextInChain: *mut WGPUChainedStruct,
pub buffer: WGPUBuffer,
pub offset: u64,
pub size: u64,
pub sampler: WGPUSampler,
pub textureView: WGPUTextureView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBindingResource"][::std::mem::size_of::<WGPUBindingResource>() - 48usize];
["Alignment of WGPUBindingResource"][::std::mem::align_of::<WGPUBindingResource>() - 8usize];
["Offset of field: WGPUBindingResource::nextInChain"]
[::std::mem::offset_of!(WGPUBindingResource, nextInChain) - 0usize];
["Offset of field: WGPUBindingResource::buffer"]
[::std::mem::offset_of!(WGPUBindingResource, buffer) - 8usize];
["Offset of field: WGPUBindingResource::offset"]
[::std::mem::offset_of!(WGPUBindingResource, offset) - 16usize];
["Offset of field: WGPUBindingResource::size"]
[::std::mem::offset_of!(WGPUBindingResource, size) - 24usize];
["Offset of field: WGPUBindingResource::sampler"]
[::std::mem::offset_of!(WGPUBindingResource, sampler) - 32usize];
["Offset of field: WGPUBindingResource::textureView"]
[::std::mem::offset_of!(WGPUBindingResource, textureView) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBlendComponent {
pub operation: WGPUBlendOperation,
pub srcFactor: WGPUBlendFactor,
pub dstFactor: WGPUBlendFactor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBlendComponent"][::std::mem::size_of::<WGPUBlendComponent>() - 12usize];
["Alignment of WGPUBlendComponent"][::std::mem::align_of::<WGPUBlendComponent>() - 4usize];
["Offset of field: WGPUBlendComponent::operation"]
[::std::mem::offset_of!(WGPUBlendComponent, operation) - 0usize];
["Offset of field: WGPUBlendComponent::srcFactor"]
[::std::mem::offset_of!(WGPUBlendComponent, srcFactor) - 4usize];
["Offset of field: WGPUBlendComponent::dstFactor"]
[::std::mem::offset_of!(WGPUBlendComponent, dstFactor) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBufferBindingLayout {
pub nextInChain: *mut WGPUChainedStruct,
pub type_: WGPUBufferBindingType,
pub hasDynamicOffset: WGPUBool,
pub minBindingSize: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBufferBindingLayout"][::std::mem::size_of::<WGPUBufferBindingLayout>() - 24usize];
["Alignment of WGPUBufferBindingLayout"]
[::std::mem::align_of::<WGPUBufferBindingLayout>() - 8usize];
["Offset of field: WGPUBufferBindingLayout::nextInChain"]
[::std::mem::offset_of!(WGPUBufferBindingLayout, nextInChain) - 0usize];
["Offset of field: WGPUBufferBindingLayout::type_"]
[::std::mem::offset_of!(WGPUBufferBindingLayout, type_) - 8usize];
["Offset of field: WGPUBufferBindingLayout::hasDynamicOffset"]
[::std::mem::offset_of!(WGPUBufferBindingLayout, hasDynamicOffset) - 12usize];
["Offset of field: WGPUBufferBindingLayout::minBindingSize"]
[::std::mem::offset_of!(WGPUBufferBindingLayout, minBindingSize) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBufferHostMappedPointer {
pub chain: WGPUChainedStruct,
pub pointer: *mut ::std::os::raw::c_void,
pub disposeCallback: WGPUCallback,
pub userdata: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBufferHostMappedPointer"]
[::std::mem::size_of::<WGPUBufferHostMappedPointer>() - 40usize];
["Alignment of WGPUBufferHostMappedPointer"]
[::std::mem::align_of::<WGPUBufferHostMappedPointer>() - 8usize];
["Offset of field: WGPUBufferHostMappedPointer::chain"]
[::std::mem::offset_of!(WGPUBufferHostMappedPointer, chain) - 0usize];
["Offset of field: WGPUBufferHostMappedPointer::pointer"]
[::std::mem::offset_of!(WGPUBufferHostMappedPointer, pointer) - 16usize];
["Offset of field: WGPUBufferHostMappedPointer::disposeCallback"]
[::std::mem::offset_of!(WGPUBufferHostMappedPointer, disposeCallback) - 24usize];
["Offset of field: WGPUBufferHostMappedPointer::userdata"]
[::std::mem::offset_of!(WGPUBufferHostMappedPointer, userdata) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUColor {
pub r: f64,
pub g: f64,
pub b: f64,
pub a: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUColor"][::std::mem::size_of::<WGPUColor>() - 32usize];
["Alignment of WGPUColor"][::std::mem::align_of::<WGPUColor>() - 8usize];
["Offset of field: WGPUColor::r"][::std::mem::offset_of!(WGPUColor, r) - 0usize];
["Offset of field: WGPUColor::g"][::std::mem::offset_of!(WGPUColor, g) - 8usize];
["Offset of field: WGPUColor::b"][::std::mem::offset_of!(WGPUColor, b) - 16usize];
["Offset of field: WGPUColor::a"][::std::mem::offset_of!(WGPUColor, a) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUColorTargetStateExpandResolveTextureDawn {
pub chain: WGPUChainedStruct,
pub enabled: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUColorTargetStateExpandResolveTextureDawn"]
[::std::mem::size_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 24usize];
["Alignment of WGPUColorTargetStateExpandResolveTextureDawn"]
[::std::mem::align_of::<WGPUColorTargetStateExpandResolveTextureDawn>() - 8usize];
["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::chain"]
[::std::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, chain) - 0usize];
["Offset of field: WGPUColorTargetStateExpandResolveTextureDawn::enabled"]
[::std::mem::offset_of!(WGPUColorTargetStateExpandResolveTextureDawn, enabled) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCommandBufferDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCommandBufferDescriptor"]
[::std::mem::size_of::<WGPUCommandBufferDescriptor>() - 24usize];
["Alignment of WGPUCommandBufferDescriptor"]
[::std::mem::align_of::<WGPUCommandBufferDescriptor>() - 8usize];
["Offset of field: WGPUCommandBufferDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUCommandBufferDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUCommandBufferDescriptor::label"]
[::std::mem::offset_of!(WGPUCommandBufferDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCompatibilityModeLimits {
pub chain: WGPUChainedStruct,
pub maxStorageBuffersInVertexStage: u32,
pub maxStorageTexturesInVertexStage: u32,
pub maxStorageBuffersInFragmentStage: u32,
pub maxStorageTexturesInFragmentStage: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCompatibilityModeLimits"]
[::std::mem::size_of::<WGPUCompatibilityModeLimits>() - 32usize];
["Alignment of WGPUCompatibilityModeLimits"]
[::std::mem::align_of::<WGPUCompatibilityModeLimits>() - 8usize];
["Offset of field: WGPUCompatibilityModeLimits::chain"]
[::std::mem::offset_of!(WGPUCompatibilityModeLimits, chain) - 0usize];
["Offset of field: WGPUCompatibilityModeLimits::maxStorageBuffersInVertexStage"][::std::mem::offset_of!(
WGPUCompatibilityModeLimits,
maxStorageBuffersInVertexStage
) - 16usize];
["Offset of field: WGPUCompatibilityModeLimits::maxStorageTexturesInVertexStage"][::std::mem::offset_of!(
WGPUCompatibilityModeLimits,
maxStorageTexturesInVertexStage
) - 20usize];
["Offset of field: WGPUCompatibilityModeLimits::maxStorageBuffersInFragmentStage"][::std::mem::offset_of!(
WGPUCompatibilityModeLimits,
maxStorageBuffersInFragmentStage
) - 24usize];
["Offset of field: WGPUCompatibilityModeLimits::maxStorageTexturesInFragmentStage"][::std::mem::offset_of!(
WGPUCompatibilityModeLimits,
maxStorageTexturesInFragmentStage
)
- 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUConstantEntry {
pub nextInChain: *mut WGPUChainedStruct,
pub key: WGPUStringView,
pub value: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUConstantEntry"][::std::mem::size_of::<WGPUConstantEntry>() - 32usize];
["Alignment of WGPUConstantEntry"][::std::mem::align_of::<WGPUConstantEntry>() - 8usize];
["Offset of field: WGPUConstantEntry::nextInChain"]
[::std::mem::offset_of!(WGPUConstantEntry, nextInChain) - 0usize];
["Offset of field: WGPUConstantEntry::key"]
[::std::mem::offset_of!(WGPUConstantEntry, key) - 8usize];
["Offset of field: WGPUConstantEntry::value"]
[::std::mem::offset_of!(WGPUConstantEntry, value) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCopyTextureForBrowserOptions {
pub nextInChain: *mut WGPUChainedStruct,
pub flipY: WGPUBool,
pub needsColorSpaceConversion: WGPUBool,
pub srcAlphaMode: WGPUAlphaMode,
pub srcTransferFunctionParameters: *const f32,
pub conversionMatrix: *const f32,
pub dstTransferFunctionParameters: *const f32,
pub dstAlphaMode: WGPUAlphaMode,
pub internalUsage: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCopyTextureForBrowserOptions"]
[::std::mem::size_of::<WGPUCopyTextureForBrowserOptions>() - 56usize];
["Alignment of WGPUCopyTextureForBrowserOptions"]
[::std::mem::align_of::<WGPUCopyTextureForBrowserOptions>() - 8usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::nextInChain"]
[::std::mem::offset_of!(WGPUCopyTextureForBrowserOptions, nextInChain) - 0usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::flipY"]
[::std::mem::offset_of!(WGPUCopyTextureForBrowserOptions, flipY) - 8usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::needsColorSpaceConversion"][::std::mem::offset_of!(
WGPUCopyTextureForBrowserOptions,
needsColorSpaceConversion
) - 12usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::srcAlphaMode"]
[::std::mem::offset_of!(WGPUCopyTextureForBrowserOptions, srcAlphaMode) - 16usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::srcTransferFunctionParameters"][::std::mem::offset_of!(
WGPUCopyTextureForBrowserOptions,
srcTransferFunctionParameters
)
- 24usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::conversionMatrix"]
[::std::mem::offset_of!(WGPUCopyTextureForBrowserOptions, conversionMatrix) - 32usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::dstTransferFunctionParameters"][::std::mem::offset_of!(
WGPUCopyTextureForBrowserOptions,
dstTransferFunctionParameters
)
- 40usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::dstAlphaMode"]
[::std::mem::offset_of!(WGPUCopyTextureForBrowserOptions, dstAlphaMode) - 48usize];
["Offset of field: WGPUCopyTextureForBrowserOptions::internalUsage"]
[::std::mem::offset_of!(WGPUCopyTextureForBrowserOptions, internalUsage) - 52usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnAdapterPropertiesPowerPreference {
pub chain: WGPUChainedStruct,
pub powerPreference: WGPUPowerPreference,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnAdapterPropertiesPowerPreference"]
[::std::mem::size_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 24usize];
["Alignment of WGPUDawnAdapterPropertiesPowerPreference"]
[::std::mem::align_of::<WGPUDawnAdapterPropertiesPowerPreference>() - 8usize];
["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::chain"]
[::std::mem::offset_of!(WGPUDawnAdapterPropertiesPowerPreference, chain) - 0usize];
["Offset of field: WGPUDawnAdapterPropertiesPowerPreference::powerPreference"][::std::mem::offset_of!(
WGPUDawnAdapterPropertiesPowerPreference,
powerPreference
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnBufferDescriptorErrorInfoFromWireClient {
pub chain: WGPUChainedStruct,
pub outOfMemory: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
[::std::mem::size_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 24usize];
["Alignment of WGPUDawnBufferDescriptorErrorInfoFromWireClient"]
[::std::mem::align_of::<WGPUDawnBufferDescriptorErrorInfoFromWireClient>() - 8usize];
["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::chain"]
[::std::mem::offset_of!(WGPUDawnBufferDescriptorErrorInfoFromWireClient, chain) - 0usize];
["Offset of field: WGPUDawnBufferDescriptorErrorInfoFromWireClient::outOfMemory"][::std::mem::offset_of!(
WGPUDawnBufferDescriptorErrorInfoFromWireClient,
outOfMemory
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnCacheDeviceDescriptor {
pub chain: WGPUChainedStruct,
pub isolationKey: WGPUStringView,
pub loadDataFunction: WGPUDawnLoadCacheDataFunction,
pub storeDataFunction: WGPUDawnStoreCacheDataFunction,
pub functionUserdata: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnCacheDeviceDescriptor"]
[::std::mem::size_of::<WGPUDawnCacheDeviceDescriptor>() - 56usize];
["Alignment of WGPUDawnCacheDeviceDescriptor"]
[::std::mem::align_of::<WGPUDawnCacheDeviceDescriptor>() - 8usize];
["Offset of field: WGPUDawnCacheDeviceDescriptor::chain"]
[::std::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, chain) - 0usize];
["Offset of field: WGPUDawnCacheDeviceDescriptor::isolationKey"]
[::std::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, isolationKey) - 16usize];
["Offset of field: WGPUDawnCacheDeviceDescriptor::loadDataFunction"]
[::std::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, loadDataFunction) - 32usize];
["Offset of field: WGPUDawnCacheDeviceDescriptor::storeDataFunction"]
[::std::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, storeDataFunction) - 40usize];
["Offset of field: WGPUDawnCacheDeviceDescriptor::functionUserdata"]
[::std::mem::offset_of!(WGPUDawnCacheDeviceDescriptor, functionUserdata) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnCompilationMessageUtf16 {
pub chain: WGPUChainedStruct,
pub linePos: u64,
pub offset: u64,
pub length: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnCompilationMessageUtf16"]
[::std::mem::size_of::<WGPUDawnCompilationMessageUtf16>() - 40usize];
["Alignment of WGPUDawnCompilationMessageUtf16"]
[::std::mem::align_of::<WGPUDawnCompilationMessageUtf16>() - 8usize];
["Offset of field: WGPUDawnCompilationMessageUtf16::chain"]
[::std::mem::offset_of!(WGPUDawnCompilationMessageUtf16, chain) - 0usize];
["Offset of field: WGPUDawnCompilationMessageUtf16::linePos"]
[::std::mem::offset_of!(WGPUDawnCompilationMessageUtf16, linePos) - 16usize];
["Offset of field: WGPUDawnCompilationMessageUtf16::offset"]
[::std::mem::offset_of!(WGPUDawnCompilationMessageUtf16, offset) - 24usize];
["Offset of field: WGPUDawnCompilationMessageUtf16::length"]
[::std::mem::offset_of!(WGPUDawnCompilationMessageUtf16, length) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnConsumeAdapterDescriptor {
pub chain: WGPUChainedStruct,
pub consumeAdapter: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnConsumeAdapterDescriptor"]
[::std::mem::size_of::<WGPUDawnConsumeAdapterDescriptor>() - 24usize];
["Alignment of WGPUDawnConsumeAdapterDescriptor"]
[::std::mem::align_of::<WGPUDawnConsumeAdapterDescriptor>() - 8usize];
["Offset of field: WGPUDawnConsumeAdapterDescriptor::chain"]
[::std::mem::offset_of!(WGPUDawnConsumeAdapterDescriptor, chain) - 0usize];
["Offset of field: WGPUDawnConsumeAdapterDescriptor::consumeAdapter"]
[::std::mem::offset_of!(WGPUDawnConsumeAdapterDescriptor, consumeAdapter) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnDeviceAllocatorControl {
pub chain: WGPUChainedStruct,
pub allocatorHeapBlockSize: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnDeviceAllocatorControl"]
[::std::mem::size_of::<WGPUDawnDeviceAllocatorControl>() - 24usize];
["Alignment of WGPUDawnDeviceAllocatorControl"]
[::std::mem::align_of::<WGPUDawnDeviceAllocatorControl>() - 8usize];
["Offset of field: WGPUDawnDeviceAllocatorControl::chain"]
[::std::mem::offset_of!(WGPUDawnDeviceAllocatorControl, chain) - 0usize];
["Offset of field: WGPUDawnDeviceAllocatorControl::allocatorHeapBlockSize"]
[::std::mem::offset_of!(WGPUDawnDeviceAllocatorControl, allocatorHeapBlockSize) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnDrmFormatProperties {
pub modifier: u64,
pub modifierPlaneCount: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnDrmFormatProperties"]
[::std::mem::size_of::<WGPUDawnDrmFormatProperties>() - 16usize];
["Alignment of WGPUDawnDrmFormatProperties"]
[::std::mem::align_of::<WGPUDawnDrmFormatProperties>() - 8usize];
["Offset of field: WGPUDawnDrmFormatProperties::modifier"]
[::std::mem::offset_of!(WGPUDawnDrmFormatProperties, modifier) - 0usize];
["Offset of field: WGPUDawnDrmFormatProperties::modifierPlaneCount"]
[::std::mem::offset_of!(WGPUDawnDrmFormatProperties, modifierPlaneCount) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnEncoderInternalUsageDescriptor {
pub chain: WGPUChainedStruct,
pub useInternalUsages: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnEncoderInternalUsageDescriptor"]
[::std::mem::size_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 24usize];
["Alignment of WGPUDawnEncoderInternalUsageDescriptor"]
[::std::mem::align_of::<WGPUDawnEncoderInternalUsageDescriptor>() - 8usize];
["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::chain"]
[::std::mem::offset_of!(WGPUDawnEncoderInternalUsageDescriptor, chain) - 0usize];
["Offset of field: WGPUDawnEncoderInternalUsageDescriptor::useInternalUsages"][::std::mem::offset_of!(
WGPUDawnEncoderInternalUsageDescriptor,
useInternalUsages
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnFakeBufferOOMForTesting {
pub chain: WGPUChainedStruct,
pub fakeOOMAtWireClientMap: WGPUBool,
pub fakeOOMAtNativeMap: WGPUBool,
pub fakeOOMAtDevice: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnFakeBufferOOMForTesting"]
[::std::mem::size_of::<WGPUDawnFakeBufferOOMForTesting>() - 32usize];
["Alignment of WGPUDawnFakeBufferOOMForTesting"]
[::std::mem::align_of::<WGPUDawnFakeBufferOOMForTesting>() - 8usize];
["Offset of field: WGPUDawnFakeBufferOOMForTesting::chain"]
[::std::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, chain) - 0usize];
["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtWireClientMap"]
[::std::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtWireClientMap) - 16usize];
["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtNativeMap"]
[::std::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtNativeMap) - 20usize];
["Offset of field: WGPUDawnFakeBufferOOMForTesting::fakeOOMAtDevice"]
[::std::mem::offset_of!(WGPUDawnFakeBufferOOMForTesting, fakeOOMAtDevice) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnFakeDeviceInitializeErrorForTesting {
pub chain: WGPUChainedStruct,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnFakeDeviceInitializeErrorForTesting"]
[::std::mem::size_of::<WGPUDawnFakeDeviceInitializeErrorForTesting>() - 16usize];
["Alignment of WGPUDawnFakeDeviceInitializeErrorForTesting"]
[::std::mem::align_of::<WGPUDawnFakeDeviceInitializeErrorForTesting>() - 8usize];
["Offset of field: WGPUDawnFakeDeviceInitializeErrorForTesting::chain"]
[::std::mem::offset_of!(WGPUDawnFakeDeviceInitializeErrorForTesting, chain) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnHostMappedPointerLimits {
pub chain: WGPUChainedStruct,
pub hostMappedPointerAlignment: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnHostMappedPointerLimits"]
[::std::mem::size_of::<WGPUDawnHostMappedPointerLimits>() - 24usize];
["Alignment of WGPUDawnHostMappedPointerLimits"]
[::std::mem::align_of::<WGPUDawnHostMappedPointerLimits>() - 8usize];
["Offset of field: WGPUDawnHostMappedPointerLimits::chain"]
[::std::mem::offset_of!(WGPUDawnHostMappedPointerLimits, chain) - 0usize];
["Offset of field: WGPUDawnHostMappedPointerLimits::hostMappedPointerAlignment"][::std::mem::offset_of!(
WGPUDawnHostMappedPointerLimits,
hostMappedPointerAlignment
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnInjectedInvalidSType {
pub chain: WGPUChainedStruct,
pub invalidSType: WGPUSType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnInjectedInvalidSType"]
[::std::mem::size_of::<WGPUDawnInjectedInvalidSType>() - 24usize];
["Alignment of WGPUDawnInjectedInvalidSType"]
[::std::mem::align_of::<WGPUDawnInjectedInvalidSType>() - 8usize];
["Offset of field: WGPUDawnInjectedInvalidSType::chain"]
[::std::mem::offset_of!(WGPUDawnInjectedInvalidSType, chain) - 0usize];
["Offset of field: WGPUDawnInjectedInvalidSType::invalidSType"]
[::std::mem::offset_of!(WGPUDawnInjectedInvalidSType, invalidSType) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnRenderPassSampleCount {
pub chain: WGPUChainedStruct,
pub sampleCount: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnRenderPassSampleCount"]
[::std::mem::size_of::<WGPUDawnRenderPassSampleCount>() - 24usize];
["Alignment of WGPUDawnRenderPassSampleCount"]
[::std::mem::align_of::<WGPUDawnRenderPassSampleCount>() - 8usize];
["Offset of field: WGPUDawnRenderPassSampleCount::chain"]
[::std::mem::offset_of!(WGPUDawnRenderPassSampleCount, chain) - 0usize];
["Offset of field: WGPUDawnRenderPassSampleCount::sampleCount"]
[::std::mem::offset_of!(WGPUDawnRenderPassSampleCount, sampleCount) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnShaderModuleSPIRVOptionsDescriptor {
pub chain: WGPUChainedStruct,
pub allowNonUniformDerivatives: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
[::std::mem::size_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 24usize];
["Alignment of WGPUDawnShaderModuleSPIRVOptionsDescriptor"]
[::std::mem::align_of::<WGPUDawnShaderModuleSPIRVOptionsDescriptor>() - 8usize];
["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::chain"]
[::std::mem::offset_of!(WGPUDawnShaderModuleSPIRVOptionsDescriptor, chain) - 0usize];
["Offset of field: WGPUDawnShaderModuleSPIRVOptionsDescriptor::allowNonUniformDerivatives"][::std::mem::offset_of!(
WGPUDawnShaderModuleSPIRVOptionsDescriptor,
allowNonUniformDerivatives
)
- 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnTexelCopyBufferRowAlignmentLimits {
pub chain: WGPUChainedStruct,
pub minTexelCopyBufferRowAlignment: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
[::std::mem::size_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 24usize];
["Alignment of WGPUDawnTexelCopyBufferRowAlignmentLimits"]
[::std::mem::align_of::<WGPUDawnTexelCopyBufferRowAlignmentLimits>() - 8usize];
["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::chain"]
[::std::mem::offset_of!(WGPUDawnTexelCopyBufferRowAlignmentLimits, chain) - 0usize];
["Offset of field: WGPUDawnTexelCopyBufferRowAlignmentLimits::minTexelCopyBufferRowAlignment"] [:: std :: mem :: offset_of ! (WGPUDawnTexelCopyBufferRowAlignmentLimits , minTexelCopyBufferRowAlignment) - 16usize] ;
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnTextureInternalUsageDescriptor {
pub chain: WGPUChainedStruct,
pub internalUsage: WGPUTextureUsage,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnTextureInternalUsageDescriptor"]
[::std::mem::size_of::<WGPUDawnTextureInternalUsageDescriptor>() - 24usize];
["Alignment of WGPUDawnTextureInternalUsageDescriptor"]
[::std::mem::align_of::<WGPUDawnTextureInternalUsageDescriptor>() - 8usize];
["Offset of field: WGPUDawnTextureInternalUsageDescriptor::chain"]
[::std::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, chain) - 0usize];
["Offset of field: WGPUDawnTextureInternalUsageDescriptor::internalUsage"]
[::std::mem::offset_of!(WGPUDawnTextureInternalUsageDescriptor, internalUsage) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnTogglesDescriptor {
pub chain: WGPUChainedStruct,
pub enabledToggleCount: usize,
pub enabledToggles: *const *const ::std::os::raw::c_char,
pub disabledToggleCount: usize,
pub disabledToggles: *const *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnTogglesDescriptor"]
[::std::mem::size_of::<WGPUDawnTogglesDescriptor>() - 48usize];
["Alignment of WGPUDawnTogglesDescriptor"]
[::std::mem::align_of::<WGPUDawnTogglesDescriptor>() - 8usize];
["Offset of field: WGPUDawnTogglesDescriptor::chain"]
[::std::mem::offset_of!(WGPUDawnTogglesDescriptor, chain) - 0usize];
["Offset of field: WGPUDawnTogglesDescriptor::enabledToggleCount"]
[::std::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggleCount) - 16usize];
["Offset of field: WGPUDawnTogglesDescriptor::enabledToggles"]
[::std::mem::offset_of!(WGPUDawnTogglesDescriptor, enabledToggles) - 24usize];
["Offset of field: WGPUDawnTogglesDescriptor::disabledToggleCount"]
[::std::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggleCount) - 32usize];
["Offset of field: WGPUDawnTogglesDescriptor::disabledToggles"]
[::std::mem::offset_of!(WGPUDawnTogglesDescriptor, disabledToggles) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnWGSLBlocklist {
pub chain: WGPUChainedStruct,
pub blocklistedFeatureCount: usize,
pub blocklistedFeatures: *const *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnWGSLBlocklist"][::std::mem::size_of::<WGPUDawnWGSLBlocklist>() - 32usize];
["Alignment of WGPUDawnWGSLBlocklist"]
[::std::mem::align_of::<WGPUDawnWGSLBlocklist>() - 8usize];
["Offset of field: WGPUDawnWGSLBlocklist::chain"]
[::std::mem::offset_of!(WGPUDawnWGSLBlocklist, chain) - 0usize];
["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatureCount"]
[::std::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatureCount) - 16usize];
["Offset of field: WGPUDawnWGSLBlocklist::blocklistedFeatures"]
[::std::mem::offset_of!(WGPUDawnWGSLBlocklist, blocklistedFeatures) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnWireWGSLControl {
pub chain: WGPUChainedStruct,
pub enableExperimental: WGPUBool,
pub enableUnsafe: WGPUBool,
pub enableTesting: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnWireWGSLControl"][::std::mem::size_of::<WGPUDawnWireWGSLControl>() - 32usize];
["Alignment of WGPUDawnWireWGSLControl"]
[::std::mem::align_of::<WGPUDawnWireWGSLControl>() - 8usize];
["Offset of field: WGPUDawnWireWGSLControl::chain"]
[::std::mem::offset_of!(WGPUDawnWireWGSLControl, chain) - 0usize];
["Offset of field: WGPUDawnWireWGSLControl::enableExperimental"]
[::std::mem::offset_of!(WGPUDawnWireWGSLControl, enableExperimental) - 16usize];
["Offset of field: WGPUDawnWireWGSLControl::enableUnsafe"]
[::std::mem::offset_of!(WGPUDawnWireWGSLControl, enableUnsafe) - 20usize];
["Offset of field: WGPUDawnWireWGSLControl::enableTesting"]
[::std::mem::offset_of!(WGPUDawnWireWGSLControl, enableTesting) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
pub chain: WGPUChainedStruct,
pub selector: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
[::std::mem::size_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 32usize];
["Alignment of WGPUEmscriptenSurfaceSourceCanvasHTMLSelector"]
[::std::mem::align_of::<WGPUEmscriptenSurfaceSourceCanvasHTMLSelector>() - 8usize];
["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::chain"]
[::std::mem::offset_of!(WGPUEmscriptenSurfaceSourceCanvasHTMLSelector, chain) - 0usize];
["Offset of field: WGPUEmscriptenSurfaceSourceCanvasHTMLSelector::selector"]
[::std::mem::offset_of!(WGPUEmscriptenSurfaceSourceCanvasHTMLSelector, selector) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUExtent2D {
pub width: u32,
pub height: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUExtent2D"][::std::mem::size_of::<WGPUExtent2D>() - 8usize];
["Alignment of WGPUExtent2D"][::std::mem::align_of::<WGPUExtent2D>() - 4usize];
["Offset of field: WGPUExtent2D::width"][::std::mem::offset_of!(WGPUExtent2D, width) - 0usize];
["Offset of field: WGPUExtent2D::height"]
[::std::mem::offset_of!(WGPUExtent2D, height) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUExtent3D {
pub width: u32,
pub height: u32,
pub depthOrArrayLayers: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUExtent3D"][::std::mem::size_of::<WGPUExtent3D>() - 12usize];
["Alignment of WGPUExtent3D"][::std::mem::align_of::<WGPUExtent3D>() - 4usize];
["Offset of field: WGPUExtent3D::width"][::std::mem::offset_of!(WGPUExtent3D, width) - 0usize];
["Offset of field: WGPUExtent3D::height"]
[::std::mem::offset_of!(WGPUExtent3D, height) - 4usize];
["Offset of field: WGPUExtent3D::depthOrArrayLayers"]
[::std::mem::offset_of!(WGPUExtent3D, depthOrArrayLayers) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUExternalTextureBindingEntry {
pub chain: WGPUChainedStruct,
pub externalTexture: WGPUExternalTexture,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUExternalTextureBindingEntry"]
[::std::mem::size_of::<WGPUExternalTextureBindingEntry>() - 24usize];
["Alignment of WGPUExternalTextureBindingEntry"]
[::std::mem::align_of::<WGPUExternalTextureBindingEntry>() - 8usize];
["Offset of field: WGPUExternalTextureBindingEntry::chain"]
[::std::mem::offset_of!(WGPUExternalTextureBindingEntry, chain) - 0usize];
["Offset of field: WGPUExternalTextureBindingEntry::externalTexture"]
[::std::mem::offset_of!(WGPUExternalTextureBindingEntry, externalTexture) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUExternalTextureBindingLayout {
pub chain: WGPUChainedStruct,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUExternalTextureBindingLayout"]
[::std::mem::size_of::<WGPUExternalTextureBindingLayout>() - 16usize];
["Alignment of WGPUExternalTextureBindingLayout"]
[::std::mem::align_of::<WGPUExternalTextureBindingLayout>() - 8usize];
["Offset of field: WGPUExternalTextureBindingLayout::chain"]
[::std::mem::offset_of!(WGPUExternalTextureBindingLayout, chain) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUFuture {
pub id: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUFuture"][::std::mem::size_of::<WGPUFuture>() - 8usize];
["Alignment of WGPUFuture"][::std::mem::align_of::<WGPUFuture>() - 8usize];
["Offset of field: WGPUFuture::id"][::std::mem::offset_of!(WGPUFuture, id) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUInstanceLimits {
pub nextInChain: *mut WGPUChainedStruct,
pub timedWaitAnyMaxCount: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUInstanceLimits"][::std::mem::size_of::<WGPUInstanceLimits>() - 16usize];
["Alignment of WGPUInstanceLimits"][::std::mem::align_of::<WGPUInstanceLimits>() - 8usize];
["Offset of field: WGPUInstanceLimits::nextInChain"]
[::std::mem::offset_of!(WGPUInstanceLimits, nextInChain) - 0usize];
["Offset of field: WGPUInstanceLimits::timedWaitAnyMaxCount"]
[::std::mem::offset_of!(WGPUInstanceLimits, timedWaitAnyMaxCount) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER {
pub unused: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER"]
[::std::mem::size_of::<WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER>() - 4usize];
["Alignment of WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER"]
[::std::mem::align_of::<WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER>() - 4usize];
["Offset of field: WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER::unused"]
[::std::mem::offset_of!(WGPUINTERNAL_HAVE_EMDAWNWEBGPU_HEADER, unused) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUMemoryHeapInfo {
pub properties: WGPUHeapProperty,
pub size: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUMemoryHeapInfo"][::std::mem::size_of::<WGPUMemoryHeapInfo>() - 16usize];
["Alignment of WGPUMemoryHeapInfo"][::std::mem::align_of::<WGPUMemoryHeapInfo>() - 8usize];
["Offset of field: WGPUMemoryHeapInfo::properties"]
[::std::mem::offset_of!(WGPUMemoryHeapInfo, properties) - 0usize];
["Offset of field: WGPUMemoryHeapInfo::size"]
[::std::mem::offset_of!(WGPUMemoryHeapInfo, size) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUMultisampleState {
pub nextInChain: *mut WGPUChainedStruct,
pub count: u32,
pub mask: u32,
pub alphaToCoverageEnabled: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUMultisampleState"][::std::mem::size_of::<WGPUMultisampleState>() - 24usize];
["Alignment of WGPUMultisampleState"][::std::mem::align_of::<WGPUMultisampleState>() - 8usize];
["Offset of field: WGPUMultisampleState::nextInChain"]
[::std::mem::offset_of!(WGPUMultisampleState, nextInChain) - 0usize];
["Offset of field: WGPUMultisampleState::count"]
[::std::mem::offset_of!(WGPUMultisampleState, count) - 8usize];
["Offset of field: WGPUMultisampleState::mask"]
[::std::mem::offset_of!(WGPUMultisampleState, mask) - 12usize];
["Offset of field: WGPUMultisampleState::alphaToCoverageEnabled"]
[::std::mem::offset_of!(WGPUMultisampleState, alphaToCoverageEnabled) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUOrigin2D {
pub x: u32,
pub y: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUOrigin2D"][::std::mem::size_of::<WGPUOrigin2D>() - 8usize];
["Alignment of WGPUOrigin2D"][::std::mem::align_of::<WGPUOrigin2D>() - 4usize];
["Offset of field: WGPUOrigin2D::x"][::std::mem::offset_of!(WGPUOrigin2D, x) - 0usize];
["Offset of field: WGPUOrigin2D::y"][::std::mem::offset_of!(WGPUOrigin2D, y) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUOrigin3D {
pub x: u32,
pub y: u32,
pub z: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUOrigin3D"][::std::mem::size_of::<WGPUOrigin3D>() - 12usize];
["Alignment of WGPUOrigin3D"][::std::mem::align_of::<WGPUOrigin3D>() - 4usize];
["Offset of field: WGPUOrigin3D::x"][::std::mem::offset_of!(WGPUOrigin3D, x) - 0usize];
["Offset of field: WGPUOrigin3D::y"][::std::mem::offset_of!(WGPUOrigin3D, y) - 4usize];
["Offset of field: WGPUOrigin3D::z"][::std::mem::offset_of!(WGPUOrigin3D, z) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPassTimestampWrites {
pub nextInChain: *mut WGPUChainedStruct,
pub querySet: WGPUQuerySet,
pub beginningOfPassWriteIndex: u32,
pub endOfPassWriteIndex: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUPassTimestampWrites"][::std::mem::size_of::<WGPUPassTimestampWrites>() - 24usize];
["Alignment of WGPUPassTimestampWrites"]
[::std::mem::align_of::<WGPUPassTimestampWrites>() - 8usize];
["Offset of field: WGPUPassTimestampWrites::nextInChain"]
[::std::mem::offset_of!(WGPUPassTimestampWrites, nextInChain) - 0usize];
["Offset of field: WGPUPassTimestampWrites::querySet"]
[::std::mem::offset_of!(WGPUPassTimestampWrites, querySet) - 8usize];
["Offset of field: WGPUPassTimestampWrites::beginningOfPassWriteIndex"]
[::std::mem::offset_of!(WGPUPassTimestampWrites, beginningOfPassWriteIndex) - 16usize];
["Offset of field: WGPUPassTimestampWrites::endOfPassWriteIndex"]
[::std::mem::offset_of!(WGPUPassTimestampWrites, endOfPassWriteIndex) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPipelineLayoutResourceTable {
pub chain: WGPUChainedStruct,
pub usesResourceTable: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUPipelineLayoutResourceTable"]
[::std::mem::size_of::<WGPUPipelineLayoutResourceTable>() - 24usize];
["Alignment of WGPUPipelineLayoutResourceTable"]
[::std::mem::align_of::<WGPUPipelineLayoutResourceTable>() - 8usize];
["Offset of field: WGPUPipelineLayoutResourceTable::chain"]
[::std::mem::offset_of!(WGPUPipelineLayoutResourceTable, chain) - 0usize];
["Offset of field: WGPUPipelineLayoutResourceTable::usesResourceTable"]
[::std::mem::offset_of!(WGPUPipelineLayoutResourceTable, usesResourceTable) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPipelineLayoutStorageAttachment {
pub nextInChain: *mut WGPUChainedStruct,
pub offset: u64,
pub format: WGPUTextureFormat,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUPipelineLayoutStorageAttachment"]
[::std::mem::size_of::<WGPUPipelineLayoutStorageAttachment>() - 24usize];
["Alignment of WGPUPipelineLayoutStorageAttachment"]
[::std::mem::align_of::<WGPUPipelineLayoutStorageAttachment>() - 8usize];
["Offset of field: WGPUPipelineLayoutStorageAttachment::nextInChain"]
[::std::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, nextInChain) - 0usize];
["Offset of field: WGPUPipelineLayoutStorageAttachment::offset"]
[::std::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, offset) - 8usize];
["Offset of field: WGPUPipelineLayoutStorageAttachment::format"]
[::std::mem::offset_of!(WGPUPipelineLayoutStorageAttachment, format) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPrimitiveState {
pub nextInChain: *mut WGPUChainedStruct,
pub topology: WGPUPrimitiveTopology,
pub stripIndexFormat: WGPUIndexFormat,
pub frontFace: WGPUFrontFace,
pub cullMode: WGPUCullMode,
pub unclippedDepth: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUPrimitiveState"][::std::mem::size_of::<WGPUPrimitiveState>() - 32usize];
["Alignment of WGPUPrimitiveState"][::std::mem::align_of::<WGPUPrimitiveState>() - 8usize];
["Offset of field: WGPUPrimitiveState::nextInChain"]
[::std::mem::offset_of!(WGPUPrimitiveState, nextInChain) - 0usize];
["Offset of field: WGPUPrimitiveState::topology"]
[::std::mem::offset_of!(WGPUPrimitiveState, topology) - 8usize];
["Offset of field: WGPUPrimitiveState::stripIndexFormat"]
[::std::mem::offset_of!(WGPUPrimitiveState, stripIndexFormat) - 12usize];
["Offset of field: WGPUPrimitiveState::frontFace"]
[::std::mem::offset_of!(WGPUPrimitiveState, frontFace) - 16usize];
["Offset of field: WGPUPrimitiveState::cullMode"]
[::std::mem::offset_of!(WGPUPrimitiveState, cullMode) - 20usize];
["Offset of field: WGPUPrimitiveState::unclippedDepth"]
[::std::mem::offset_of!(WGPUPrimitiveState, unclippedDepth) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUQuerySetDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub type_: WGPUQueryType,
pub count: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUQuerySetDescriptor"][::std::mem::size_of::<WGPUQuerySetDescriptor>() - 32usize];
["Alignment of WGPUQuerySetDescriptor"]
[::std::mem::align_of::<WGPUQuerySetDescriptor>() - 8usize];
["Offset of field: WGPUQuerySetDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUQuerySetDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUQuerySetDescriptor::label"]
[::std::mem::offset_of!(WGPUQuerySetDescriptor, label) - 8usize];
["Offset of field: WGPUQuerySetDescriptor::type_"]
[::std::mem::offset_of!(WGPUQuerySetDescriptor, type_) - 24usize];
["Offset of field: WGPUQuerySetDescriptor::count"]
[::std::mem::offset_of!(WGPUQuerySetDescriptor, count) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUQueueDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUQueueDescriptor"][::std::mem::size_of::<WGPUQueueDescriptor>() - 24usize];
["Alignment of WGPUQueueDescriptor"][::std::mem::align_of::<WGPUQueueDescriptor>() - 8usize];
["Offset of field: WGPUQueueDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUQueueDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUQueueDescriptor::label"]
[::std::mem::offset_of!(WGPUQueueDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderBundleDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderBundleDescriptor"]
[::std::mem::size_of::<WGPURenderBundleDescriptor>() - 24usize];
["Alignment of WGPURenderBundleDescriptor"]
[::std::mem::align_of::<WGPURenderBundleDescriptor>() - 8usize];
["Offset of field: WGPURenderBundleDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPURenderBundleDescriptor, nextInChain) - 0usize];
["Offset of field: WGPURenderBundleDescriptor::label"]
[::std::mem::offset_of!(WGPURenderBundleDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderBundleEncoderDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub colorFormatCount: usize,
pub colorFormats: *const WGPUTextureFormat,
pub depthStencilFormat: WGPUTextureFormat,
pub sampleCount: u32,
pub depthReadOnly: WGPUBool,
pub stencilReadOnly: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderBundleEncoderDescriptor"]
[::std::mem::size_of::<WGPURenderBundleEncoderDescriptor>() - 56usize];
["Alignment of WGPURenderBundleEncoderDescriptor"]
[::std::mem::align_of::<WGPURenderBundleEncoderDescriptor>() - 8usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, nextInChain) - 0usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::label"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, label) - 8usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormatCount"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormatCount) - 24usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::colorFormats"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, colorFormats) - 32usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::depthStencilFormat"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthStencilFormat) - 40usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::sampleCount"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, sampleCount) - 44usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::depthReadOnly"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, depthReadOnly) - 48usize];
["Offset of field: WGPURenderBundleEncoderDescriptor::stencilReadOnly"]
[::std::mem::offset_of!(WGPURenderBundleEncoderDescriptor, stencilReadOnly) - 52usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassDepthStencilAttachment {
pub nextInChain: *mut WGPUChainedStruct,
pub view: WGPUTextureView,
pub depthLoadOp: WGPULoadOp,
pub depthStoreOp: WGPUStoreOp,
pub depthClearValue: f32,
pub depthReadOnly: WGPUBool,
pub stencilLoadOp: WGPULoadOp,
pub stencilStoreOp: WGPUStoreOp,
pub stencilClearValue: u32,
pub stencilReadOnly: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassDepthStencilAttachment"]
[::std::mem::size_of::<WGPURenderPassDepthStencilAttachment>() - 48usize];
["Alignment of WGPURenderPassDepthStencilAttachment"]
[::std::mem::align_of::<WGPURenderPassDepthStencilAttachment>() - 8usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::nextInChain"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, nextInChain) - 0usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::view"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, view) - 8usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::depthLoadOp"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthLoadOp) - 16usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::depthStoreOp"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthStoreOp) - 20usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::depthClearValue"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthClearValue) - 24usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::depthReadOnly"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, depthReadOnly) - 28usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::stencilLoadOp"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilLoadOp) - 32usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::stencilStoreOp"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilStoreOp) - 36usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::stencilClearValue"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilClearValue) - 40usize];
["Offset of field: WGPURenderPassDepthStencilAttachment::stencilReadOnly"]
[::std::mem::offset_of!(WGPURenderPassDepthStencilAttachment, stencilReadOnly) - 44usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassDescriptorResolveRect {
pub chain: WGPUChainedStruct,
pub colorOffsetX: u32,
pub colorOffsetY: u32,
pub resolveOffsetX: u32,
pub resolveOffsetY: u32,
pub width: u32,
pub height: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassDescriptorResolveRect"]
[::std::mem::size_of::<WGPURenderPassDescriptorResolveRect>() - 40usize];
["Alignment of WGPURenderPassDescriptorResolveRect"]
[::std::mem::align_of::<WGPURenderPassDescriptorResolveRect>() - 8usize];
["Offset of field: WGPURenderPassDescriptorResolveRect::chain"]
[::std::mem::offset_of!(WGPURenderPassDescriptorResolveRect, chain) - 0usize];
["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetX"]
[::std::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetX) - 16usize];
["Offset of field: WGPURenderPassDescriptorResolveRect::colorOffsetY"]
[::std::mem::offset_of!(WGPURenderPassDescriptorResolveRect, colorOffsetY) - 20usize];
["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetX"]
[::std::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetX) - 24usize];
["Offset of field: WGPURenderPassDescriptorResolveRect::resolveOffsetY"]
[::std::mem::offset_of!(WGPURenderPassDescriptorResolveRect, resolveOffsetY) - 28usize];
["Offset of field: WGPURenderPassDescriptorResolveRect::width"]
[::std::mem::offset_of!(WGPURenderPassDescriptorResolveRect, width) - 32usize];
["Offset of field: WGPURenderPassDescriptorResolveRect::height"]
[::std::mem::offset_of!(WGPURenderPassDescriptorResolveRect, height) - 36usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassMaxDrawCount {
pub chain: WGPUChainedStruct,
pub maxDrawCount: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassMaxDrawCount"]
[::std::mem::size_of::<WGPURenderPassMaxDrawCount>() - 24usize];
["Alignment of WGPURenderPassMaxDrawCount"]
[::std::mem::align_of::<WGPURenderPassMaxDrawCount>() - 8usize];
["Offset of field: WGPURenderPassMaxDrawCount::chain"]
[::std::mem::offset_of!(WGPURenderPassMaxDrawCount, chain) - 0usize];
["Offset of field: WGPURenderPassMaxDrawCount::maxDrawCount"]
[::std::mem::offset_of!(WGPURenderPassMaxDrawCount, maxDrawCount) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURequestAdapterWebGPUBackendOptions {
pub chain: WGPUChainedStruct,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURequestAdapterWebGPUBackendOptions"]
[::std::mem::size_of::<WGPURequestAdapterWebGPUBackendOptions>() - 16usize];
["Alignment of WGPURequestAdapterWebGPUBackendOptions"]
[::std::mem::align_of::<WGPURequestAdapterWebGPUBackendOptions>() - 8usize];
["Offset of field: WGPURequestAdapterWebGPUBackendOptions::chain"]
[::std::mem::offset_of!(WGPURequestAdapterWebGPUBackendOptions, chain) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURequestAdapterWebXROptions {
pub chain: WGPUChainedStruct,
pub xrCompatible: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURequestAdapterWebXROptions"]
[::std::mem::size_of::<WGPURequestAdapterWebXROptions>() - 24usize];
["Alignment of WGPURequestAdapterWebXROptions"]
[::std::mem::align_of::<WGPURequestAdapterWebXROptions>() - 8usize];
["Offset of field: WGPURequestAdapterWebXROptions::chain"]
[::std::mem::offset_of!(WGPURequestAdapterWebXROptions, chain) - 0usize];
["Offset of field: WGPURequestAdapterWebXROptions::xrCompatible"]
[::std::mem::offset_of!(WGPURequestAdapterWebXROptions, xrCompatible) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUResourceTableDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub size: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUResourceTableDescriptor"]
[::std::mem::size_of::<WGPUResourceTableDescriptor>() - 32usize];
["Alignment of WGPUResourceTableDescriptor"]
[::std::mem::align_of::<WGPUResourceTableDescriptor>() - 8usize];
["Offset of field: WGPUResourceTableDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUResourceTableDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUResourceTableDescriptor::label"]
[::std::mem::offset_of!(WGPUResourceTableDescriptor, label) - 8usize];
["Offset of field: WGPUResourceTableDescriptor::size"]
[::std::mem::offset_of!(WGPUResourceTableDescriptor, size) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSamplerBindingLayout {
pub nextInChain: *mut WGPUChainedStruct,
pub type_: WGPUSamplerBindingType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSamplerBindingLayout"]
[::std::mem::size_of::<WGPUSamplerBindingLayout>() - 16usize];
["Alignment of WGPUSamplerBindingLayout"]
[::std::mem::align_of::<WGPUSamplerBindingLayout>() - 8usize];
["Offset of field: WGPUSamplerBindingLayout::nextInChain"]
[::std::mem::offset_of!(WGPUSamplerBindingLayout, nextInChain) - 0usize];
["Offset of field: WGPUSamplerBindingLayout::type_"]
[::std::mem::offset_of!(WGPUSamplerBindingLayout, type_) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUShaderModuleCompilationOptions {
pub chain: WGPUChainedStruct,
pub strictMath: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUShaderModuleCompilationOptions"]
[::std::mem::size_of::<WGPUShaderModuleCompilationOptions>() - 24usize];
["Alignment of WGPUShaderModuleCompilationOptions"]
[::std::mem::align_of::<WGPUShaderModuleCompilationOptions>() - 8usize];
["Offset of field: WGPUShaderModuleCompilationOptions::chain"]
[::std::mem::offset_of!(WGPUShaderModuleCompilationOptions, chain) - 0usize];
["Offset of field: WGPUShaderModuleCompilationOptions::strictMath"]
[::std::mem::offset_of!(WGPUShaderModuleCompilationOptions, strictMath) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUShaderSourceSPIRV {
pub chain: WGPUChainedStruct,
pub codeSize: u32,
pub code: *const u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUShaderSourceSPIRV"][::std::mem::size_of::<WGPUShaderSourceSPIRV>() - 32usize];
["Alignment of WGPUShaderSourceSPIRV"]
[::std::mem::align_of::<WGPUShaderSourceSPIRV>() - 8usize];
["Offset of field: WGPUShaderSourceSPIRV::chain"]
[::std::mem::offset_of!(WGPUShaderSourceSPIRV, chain) - 0usize];
["Offset of field: WGPUShaderSourceSPIRV::codeSize"]
[::std::mem::offset_of!(WGPUShaderSourceSPIRV, codeSize) - 16usize];
["Offset of field: WGPUShaderSourceSPIRV::code"]
[::std::mem::offset_of!(WGPUShaderSourceSPIRV, code) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUShaderSourceWGSL {
pub chain: WGPUChainedStruct,
pub code: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUShaderSourceWGSL"][::std::mem::size_of::<WGPUShaderSourceWGSL>() - 32usize];
["Alignment of WGPUShaderSourceWGSL"][::std::mem::align_of::<WGPUShaderSourceWGSL>() - 8usize];
["Offset of field: WGPUShaderSourceWGSL::chain"]
[::std::mem::offset_of!(WGPUShaderSourceWGSL, chain) - 0usize];
["Offset of field: WGPUShaderSourceWGSL::code"]
[::std::mem::offset_of!(WGPUShaderSourceWGSL, code) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedBufferMemoryBeginAccessDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub initialized: WGPUBool,
pub fenceCount: usize,
pub fences: *const WGPUSharedFence,
pub signaledValues: *const u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedBufferMemoryBeginAccessDescriptor"]
[::std::mem::size_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 40usize];
["Alignment of WGPUSharedBufferMemoryBeginAccessDescriptor"]
[::std::mem::align_of::<WGPUSharedBufferMemoryBeginAccessDescriptor>() - 8usize];
["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryBeginAccessDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::initialized"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryBeginAccessDescriptor, initialized) - 8usize];
["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fenceCount"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryBeginAccessDescriptor, fenceCount) - 16usize];
["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::fences"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryBeginAccessDescriptor, fences) - 24usize];
["Offset of field: WGPUSharedBufferMemoryBeginAccessDescriptor::signaledValues"][::std::mem::offset_of!(
WGPUSharedBufferMemoryBeginAccessDescriptor,
signaledValues
) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor {
pub chain: WGPUChainedStruct,
pub handle: *mut ::std::os::raw::c_void,
pub size: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor"]
[::std::mem::size_of::<WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor>(
) - 32usize];
["Alignment of WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor"]
[::std::mem::align_of::<WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor>(
) - 8usize];
["Offset of field: WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor::chain"] [:: std :: mem :: offset_of ! (WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor , chain) - 0usize] ;
["Offset of field: WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor::handle"] [:: std :: mem :: offset_of ! (WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor , handle) - 16usize] ;
["Offset of field: WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor::size"][::std::mem::offset_of!(
WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor,
size
)
- 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedBufferMemoryEndAccessState {
pub nextInChain: *mut WGPUChainedStruct,
pub initialized: WGPUBool,
pub fenceCount: usize,
pub fences: *const WGPUSharedFence,
pub signaledValues: *const u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedBufferMemoryEndAccessState"]
[::std::mem::size_of::<WGPUSharedBufferMemoryEndAccessState>() - 40usize];
["Alignment of WGPUSharedBufferMemoryEndAccessState"]
[::std::mem::align_of::<WGPUSharedBufferMemoryEndAccessState>() - 8usize];
["Offset of field: WGPUSharedBufferMemoryEndAccessState::nextInChain"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, nextInChain) - 0usize];
["Offset of field: WGPUSharedBufferMemoryEndAccessState::initialized"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, initialized) - 8usize];
["Offset of field: WGPUSharedBufferMemoryEndAccessState::fenceCount"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fenceCount) - 16usize];
["Offset of field: WGPUSharedBufferMemoryEndAccessState::fences"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, fences) - 24usize];
["Offset of field: WGPUSharedBufferMemoryEndAccessState::signaledValues"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryEndAccessState, signaledValues) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedBufferMemoryProperties {
pub nextInChain: *mut WGPUChainedStruct,
pub usage: WGPUBufferUsage,
pub size: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedBufferMemoryProperties"]
[::std::mem::size_of::<WGPUSharedBufferMemoryProperties>() - 24usize];
["Alignment of WGPUSharedBufferMemoryProperties"]
[::std::mem::align_of::<WGPUSharedBufferMemoryProperties>() - 8usize];
["Offset of field: WGPUSharedBufferMemoryProperties::nextInChain"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryProperties, nextInChain) - 0usize];
["Offset of field: WGPUSharedBufferMemoryProperties::usage"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryProperties, usage) - 8usize];
["Offset of field: WGPUSharedBufferMemoryProperties::size"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryProperties, size) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceDXGISharedHandleDescriptor {
pub chain: WGPUChainedStruct,
pub handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceDXGISharedHandleDescriptor"]
[::std::mem::size_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 24usize];
["Alignment of WGPUSharedFenceDXGISharedHandleDescriptor"]
[::std::mem::align_of::<WGPUSharedFenceDXGISharedHandleDescriptor>() - 8usize];
["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedFenceDXGISharedHandleDescriptor::handle"]
[::std::mem::offset_of!(WGPUSharedFenceDXGISharedHandleDescriptor, handle) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceDXGISharedHandleExportInfo {
pub chain: WGPUChainedStruct,
pub handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceDXGISharedHandleExportInfo"]
[::std::mem::size_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 24usize];
["Alignment of WGPUSharedFenceDXGISharedHandleExportInfo"]
[::std::mem::align_of::<WGPUSharedFenceDXGISharedHandleExportInfo>() - 8usize];
["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::chain"]
[::std::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, chain) - 0usize];
["Offset of field: WGPUSharedFenceDXGISharedHandleExportInfo::handle"]
[::std::mem::offset_of!(WGPUSharedFenceDXGISharedHandleExportInfo, handle) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceEGLSyncDescriptor {
pub chain: WGPUChainedStruct,
pub sync: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceEGLSyncDescriptor"]
[::std::mem::size_of::<WGPUSharedFenceEGLSyncDescriptor>() - 24usize];
["Alignment of WGPUSharedFenceEGLSyncDescriptor"]
[::std::mem::align_of::<WGPUSharedFenceEGLSyncDescriptor>() - 8usize];
["Offset of field: WGPUSharedFenceEGLSyncDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedFenceEGLSyncDescriptor::sync"]
[::std::mem::offset_of!(WGPUSharedFenceEGLSyncDescriptor, sync) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceEGLSyncExportInfo {
pub chain: WGPUChainedStruct,
pub sync: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceEGLSyncExportInfo"]
[::std::mem::size_of::<WGPUSharedFenceEGLSyncExportInfo>() - 24usize];
["Alignment of WGPUSharedFenceEGLSyncExportInfo"]
[::std::mem::align_of::<WGPUSharedFenceEGLSyncExportInfo>() - 8usize];
["Offset of field: WGPUSharedFenceEGLSyncExportInfo::chain"]
[::std::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, chain) - 0usize];
["Offset of field: WGPUSharedFenceEGLSyncExportInfo::sync"]
[::std::mem::offset_of!(WGPUSharedFenceEGLSyncExportInfo, sync) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceMTLSharedEventDescriptor {
pub chain: WGPUChainedStruct,
pub sharedEvent: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceMTLSharedEventDescriptor"]
[::std::mem::size_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 24usize];
["Alignment of WGPUSharedFenceMTLSharedEventDescriptor"]
[::std::mem::align_of::<WGPUSharedFenceMTLSharedEventDescriptor>() - 8usize];
["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedFenceMTLSharedEventDescriptor::sharedEvent"]
[::std::mem::offset_of!(WGPUSharedFenceMTLSharedEventDescriptor, sharedEvent) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceMTLSharedEventExportInfo {
pub chain: WGPUChainedStruct,
pub sharedEvent: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceMTLSharedEventExportInfo"]
[::std::mem::size_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 24usize];
["Alignment of WGPUSharedFenceMTLSharedEventExportInfo"]
[::std::mem::align_of::<WGPUSharedFenceMTLSharedEventExportInfo>() - 8usize];
["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::chain"]
[::std::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, chain) - 0usize];
["Offset of field: WGPUSharedFenceMTLSharedEventExportInfo::sharedEvent"]
[::std::mem::offset_of!(WGPUSharedFenceMTLSharedEventExportInfo, sharedEvent) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceSyncFDDescriptor {
pub chain: WGPUChainedStruct,
pub handle: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceSyncFDDescriptor"]
[::std::mem::size_of::<WGPUSharedFenceSyncFDDescriptor>() - 24usize];
["Alignment of WGPUSharedFenceSyncFDDescriptor"]
[::std::mem::align_of::<WGPUSharedFenceSyncFDDescriptor>() - 8usize];
["Offset of field: WGPUSharedFenceSyncFDDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedFenceSyncFDDescriptor::handle"]
[::std::mem::offset_of!(WGPUSharedFenceSyncFDDescriptor, handle) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceSyncFDExportInfo {
pub chain: WGPUChainedStruct,
pub handle: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceSyncFDExportInfo"]
[::std::mem::size_of::<WGPUSharedFenceSyncFDExportInfo>() - 24usize];
["Alignment of WGPUSharedFenceSyncFDExportInfo"]
[::std::mem::align_of::<WGPUSharedFenceSyncFDExportInfo>() - 8usize];
["Offset of field: WGPUSharedFenceSyncFDExportInfo::chain"]
[::std::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, chain) - 0usize];
["Offset of field: WGPUSharedFenceSyncFDExportInfo::handle"]
[::std::mem::offset_of!(WGPUSharedFenceSyncFDExportInfo, handle) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor {
pub chain: WGPUChainedStruct,
pub handle: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
[::std::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 24usize];
["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor"]
[::std::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor>() - 8usize];
["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor::handle"]
[::std::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDDescriptor, handle) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo {
pub chain: WGPUChainedStruct,
pub handle: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
[::std::mem::size_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 24usize];
["Alignment of WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo"]
[::std::mem::align_of::<WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo>() - 8usize];
["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::chain"]
[::std::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, chain) - 0usize];
["Offset of field: WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo::handle"]
[::std::mem::offset_of!(WGPUSharedFenceVkSemaphoreOpaqueFDExportInfo, handle) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceVkSemaphoreZirconHandleDescriptor {
pub chain: WGPUChainedStruct,
pub handle: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
[::std::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 24usize];
["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleDescriptor"]
[::std::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleDescriptor>() - 8usize];
["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleDescriptor::handle"][::std::mem::offset_of!(
WGPUSharedFenceVkSemaphoreZirconHandleDescriptor,
handle
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
pub chain: WGPUChainedStruct,
pub handle: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
[::std::mem::size_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 24usize];
["Alignment of WGPUSharedFenceVkSemaphoreZirconHandleExportInfo"]
[::std::mem::align_of::<WGPUSharedFenceVkSemaphoreZirconHandleExportInfo>() - 8usize];
["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::chain"]
[::std::mem::offset_of!(WGPUSharedFenceVkSemaphoreZirconHandleExportInfo, chain) - 0usize];
["Offset of field: WGPUSharedFenceVkSemaphoreZirconHandleExportInfo::handle"][::std::mem::offset_of!(
WGPUSharedFenceVkSemaphoreZirconHandleExportInfo,
handle
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
pub chain: WGPUChainedStruct,
pub handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 24usize];
["Alignment of WGPUSharedTextureMemoryAHardwareBufferDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryAHardwareBufferDescriptor::handle"][::std::mem::offset_of!(
WGPUSharedTextureMemoryAHardwareBufferDescriptor,
handle
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryD3D11BeginState {
pub chain: WGPUChainedStruct,
pub requiresEndAccessFence: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryD3D11BeginState"]
[::std::mem::size_of::<WGPUSharedTextureMemoryD3D11BeginState>() - 24usize];
["Alignment of WGPUSharedTextureMemoryD3D11BeginState"]
[::std::mem::align_of::<WGPUSharedTextureMemoryD3D11BeginState>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryD3D11BeginState::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryD3D11BeginState, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryD3D11BeginState::requiresEndAccessFence"][::std::mem::offset_of!(
WGPUSharedTextureMemoryD3D11BeginState,
requiresEndAccessFence
)
- 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryD3DSwapchainBeginState {
pub chain: WGPUChainedStruct,
pub isSwapchain: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
[::std::mem::size_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 24usize];
["Alignment of WGPUSharedTextureMemoryD3DSwapchainBeginState"]
[::std::mem::align_of::<WGPUSharedTextureMemoryD3DSwapchainBeginState>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryD3DSwapchainBeginState, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryD3DSwapchainBeginState::isSwapchain"][::std::mem::offset_of!(
WGPUSharedTextureMemoryD3DSwapchainBeginState,
isSwapchain
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryDmaBufPlane {
pub fd: ::std::os::raw::c_int,
pub offset: u64,
pub stride: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryDmaBufPlane"]
[::std::mem::size_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 24usize];
["Alignment of WGPUSharedTextureMemoryDmaBufPlane"]
[::std::mem::align_of::<WGPUSharedTextureMemoryDmaBufPlane>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::fd"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, fd) - 0usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::offset"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, offset) - 8usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufPlane::stride"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufPlane, stride) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryDXGISharedHandleDescriptor {
pub chain: WGPUChainedStruct,
pub handle: *mut ::std::os::raw::c_void,
pub useKeyedMutex: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 32usize];
["Alignment of WGPUSharedTextureMemoryDXGISharedHandleDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryDXGISharedHandleDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDXGISharedHandleDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::handle"][::std::mem::offset_of!(
WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
handle
) - 16usize];
["Offset of field: WGPUSharedTextureMemoryDXGISharedHandleDescriptor::useKeyedMutex"][::std::mem::offset_of!(
WGPUSharedTextureMemoryDXGISharedHandleDescriptor,
useKeyedMutex
)
- 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryEGLImageDescriptor {
pub chain: WGPUChainedStruct,
pub image: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryEGLImageDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 24usize];
["Alignment of WGPUSharedTextureMemoryEGLImageDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryEGLImageDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryEGLImageDescriptor::image"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryEGLImageDescriptor, image) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryIOSurfaceDescriptor {
pub chain: WGPUChainedStruct,
pub ioSurface: *mut ::std::os::raw::c_void,
pub allowStorageBinding: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 32usize];
["Alignment of WGPUSharedTextureMemoryIOSurfaceDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryIOSurfaceDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::ioSurface"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryIOSurfaceDescriptor, ioSurface) - 16usize];
["Offset of field: WGPUSharedTextureMemoryIOSurfaceDescriptor::allowStorageBinding"][::std::mem::offset_of!(
WGPUSharedTextureMemoryIOSurfaceDescriptor,
allowStorageBinding
)
- 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryOpaqueFDDescriptor {
pub chain: WGPUChainedStruct,
pub vkImageCreateInfo: *const ::std::os::raw::c_void,
pub memoryFD: ::std::os::raw::c_int,
pub memoryTypeIndex: u32,
pub allocationSize: u64,
pub dedicatedAllocation: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 48usize];
["Alignment of WGPUSharedTextureMemoryOpaqueFDDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryOpaqueFDDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::vkImageCreateInfo"][::std::mem::offset_of!(
WGPUSharedTextureMemoryOpaqueFDDescriptor,
vkImageCreateInfo
) - 16usize];
["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryFD"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryOpaqueFDDescriptor, memoryFD) - 24usize];
["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::memoryTypeIndex"][::std::mem::offset_of!(
WGPUSharedTextureMemoryOpaqueFDDescriptor,
memoryTypeIndex
) - 28usize];
["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::allocationSize"][::std::mem::offset_of!(
WGPUSharedTextureMemoryOpaqueFDDescriptor,
allocationSize
) - 32usize];
["Offset of field: WGPUSharedTextureMemoryOpaqueFDDescriptor::dedicatedAllocation"][::std::mem::offset_of!(
WGPUSharedTextureMemoryOpaqueFDDescriptor,
dedicatedAllocation
)
- 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor {
pub chain: WGPUChainedStruct,
pub dedicatedAllocation: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor>() - 24usize];
["Alignment of WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::chain"][::std::mem::offset_of!(
WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor,
chain
) - 0usize];
["Offset of field: WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor::dedicatedAllocation"] [:: std :: mem :: offset_of ! (WGPUSharedTextureMemoryVkDedicatedAllocationDescriptor , dedicatedAllocation) - 16usize] ;
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryVkImageLayoutBeginState {
pub chain: WGPUChainedStruct,
pub oldLayout: i32,
pub newLayout: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
[::std::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 24usize];
["Alignment of WGPUSharedTextureMemoryVkImageLayoutBeginState"]
[::std::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutBeginState>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutBeginState, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::oldLayout"][::std::mem::offset_of!(
WGPUSharedTextureMemoryVkImageLayoutBeginState,
oldLayout
) - 16usize];
["Offset of field: WGPUSharedTextureMemoryVkImageLayoutBeginState::newLayout"][::std::mem::offset_of!(
WGPUSharedTextureMemoryVkImageLayoutBeginState,
newLayout
) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryVkImageLayoutEndState {
pub chain: WGPUChainedStruct,
pub oldLayout: i32,
pub newLayout: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryVkImageLayoutEndState"]
[::std::mem::size_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 24usize];
["Alignment of WGPUSharedTextureMemoryVkImageLayoutEndState"]
[::std::mem::align_of::<WGPUSharedTextureMemoryVkImageLayoutEndState>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutEndState, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::oldLayout"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutEndState, oldLayout) - 16usize];
["Offset of field: WGPUSharedTextureMemoryVkImageLayoutEndState::newLayout"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryVkImageLayoutEndState, newLayout) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryZirconHandleDescriptor {
pub chain: WGPUChainedStruct,
pub memoryFD: u32,
pub allocationSize: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryZirconHandleDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 32usize];
["Alignment of WGPUSharedTextureMemoryZirconHandleDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryZirconHandleDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryZirconHandleDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::memoryFD"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryZirconHandleDescriptor, memoryFD) - 16usize];
["Offset of field: WGPUSharedTextureMemoryZirconHandleDescriptor::allocationSize"][::std::mem::offset_of!(
WGPUSharedTextureMemoryZirconHandleDescriptor,
allocationSize
) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUStaticSamplerBindingLayout {
pub chain: WGPUChainedStruct,
pub sampler: WGPUSampler,
pub sampledTextureBinding: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUStaticSamplerBindingLayout"]
[::std::mem::size_of::<WGPUStaticSamplerBindingLayout>() - 32usize];
["Alignment of WGPUStaticSamplerBindingLayout"]
[::std::mem::align_of::<WGPUStaticSamplerBindingLayout>() - 8usize];
["Offset of field: WGPUStaticSamplerBindingLayout::chain"]
[::std::mem::offset_of!(WGPUStaticSamplerBindingLayout, chain) - 0usize];
["Offset of field: WGPUStaticSamplerBindingLayout::sampler"]
[::std::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampler) - 16usize];
["Offset of field: WGPUStaticSamplerBindingLayout::sampledTextureBinding"]
[::std::mem::offset_of!(WGPUStaticSamplerBindingLayout, sampledTextureBinding) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUStencilFaceState {
pub compare: WGPUCompareFunction,
pub failOp: WGPUStencilOperation,
pub depthFailOp: WGPUStencilOperation,
pub passOp: WGPUStencilOperation,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUStencilFaceState"][::std::mem::size_of::<WGPUStencilFaceState>() - 16usize];
["Alignment of WGPUStencilFaceState"][::std::mem::align_of::<WGPUStencilFaceState>() - 4usize];
["Offset of field: WGPUStencilFaceState::compare"]
[::std::mem::offset_of!(WGPUStencilFaceState, compare) - 0usize];
["Offset of field: WGPUStencilFaceState::failOp"]
[::std::mem::offset_of!(WGPUStencilFaceState, failOp) - 4usize];
["Offset of field: WGPUStencilFaceState::depthFailOp"]
[::std::mem::offset_of!(WGPUStencilFaceState, depthFailOp) - 8usize];
["Offset of field: WGPUStencilFaceState::passOp"]
[::std::mem::offset_of!(WGPUStencilFaceState, passOp) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUStorageTextureBindingLayout {
pub nextInChain: *mut WGPUChainedStruct,
pub access: WGPUStorageTextureAccess,
pub format: WGPUTextureFormat,
pub viewDimension: WGPUTextureViewDimension,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUStorageTextureBindingLayout"]
[::std::mem::size_of::<WGPUStorageTextureBindingLayout>() - 24usize];
["Alignment of WGPUStorageTextureBindingLayout"]
[::std::mem::align_of::<WGPUStorageTextureBindingLayout>() - 8usize];
["Offset of field: WGPUStorageTextureBindingLayout::nextInChain"]
[::std::mem::offset_of!(WGPUStorageTextureBindingLayout, nextInChain) - 0usize];
["Offset of field: WGPUStorageTextureBindingLayout::access"]
[::std::mem::offset_of!(WGPUStorageTextureBindingLayout, access) - 8usize];
["Offset of field: WGPUStorageTextureBindingLayout::format"]
[::std::mem::offset_of!(WGPUStorageTextureBindingLayout, format) - 12usize];
["Offset of field: WGPUStorageTextureBindingLayout::viewDimension"]
[::std::mem::offset_of!(WGPUStorageTextureBindingLayout, viewDimension) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSubgroupMatrixConfig {
pub componentType: WGPUSubgroupMatrixComponentType,
pub resultComponentType: WGPUSubgroupMatrixComponentType,
pub M: u32,
pub N: u32,
pub K: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSubgroupMatrixConfig"]
[::std::mem::size_of::<WGPUSubgroupMatrixConfig>() - 20usize];
["Alignment of WGPUSubgroupMatrixConfig"]
[::std::mem::align_of::<WGPUSubgroupMatrixConfig>() - 4usize];
["Offset of field: WGPUSubgroupMatrixConfig::componentType"]
[::std::mem::offset_of!(WGPUSubgroupMatrixConfig, componentType) - 0usize];
["Offset of field: WGPUSubgroupMatrixConfig::resultComponentType"]
[::std::mem::offset_of!(WGPUSubgroupMatrixConfig, resultComponentType) - 4usize];
["Offset of field: WGPUSubgroupMatrixConfig::M"]
[::std::mem::offset_of!(WGPUSubgroupMatrixConfig, M) - 8usize];
["Offset of field: WGPUSubgroupMatrixConfig::N"]
[::std::mem::offset_of!(WGPUSubgroupMatrixConfig, N) - 12usize];
["Offset of field: WGPUSubgroupMatrixConfig::K"]
[::std::mem::offset_of!(WGPUSubgroupMatrixConfig, K) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSupportedFeatures {
pub featureCount: usize,
pub features: *const WGPUFeatureName,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSupportedFeatures"][::std::mem::size_of::<WGPUSupportedFeatures>() - 16usize];
["Alignment of WGPUSupportedFeatures"]
[::std::mem::align_of::<WGPUSupportedFeatures>() - 8usize];
["Offset of field: WGPUSupportedFeatures::featureCount"]
[::std::mem::offset_of!(WGPUSupportedFeatures, featureCount) - 0usize];
["Offset of field: WGPUSupportedFeatures::features"]
[::std::mem::offset_of!(WGPUSupportedFeatures, features) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSupportedInstanceFeatures {
pub featureCount: usize,
pub features: *const WGPUInstanceFeatureName,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSupportedInstanceFeatures"]
[::std::mem::size_of::<WGPUSupportedInstanceFeatures>() - 16usize];
["Alignment of WGPUSupportedInstanceFeatures"]
[::std::mem::align_of::<WGPUSupportedInstanceFeatures>() - 8usize];
["Offset of field: WGPUSupportedInstanceFeatures::featureCount"]
[::std::mem::offset_of!(WGPUSupportedInstanceFeatures, featureCount) - 0usize];
["Offset of field: WGPUSupportedInstanceFeatures::features"]
[::std::mem::offset_of!(WGPUSupportedInstanceFeatures, features) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSupportedWGSLLanguageFeatures {
pub featureCount: usize,
pub features: *const WGPUWGSLLanguageFeatureName,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSupportedWGSLLanguageFeatures"]
[::std::mem::size_of::<WGPUSupportedWGSLLanguageFeatures>() - 16usize];
["Alignment of WGPUSupportedWGSLLanguageFeatures"]
[::std::mem::align_of::<WGPUSupportedWGSLLanguageFeatures>() - 8usize];
["Offset of field: WGPUSupportedWGSLLanguageFeatures::featureCount"]
[::std::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, featureCount) - 0usize];
["Offset of field: WGPUSupportedWGSLLanguageFeatures::features"]
[::std::mem::offset_of!(WGPUSupportedWGSLLanguageFeatures, features) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceCapabilities {
pub nextInChain: *mut WGPUChainedStruct,
pub usages: WGPUTextureUsage,
pub formatCount: usize,
pub formats: *const WGPUTextureFormat,
pub presentModeCount: usize,
pub presentModes: *const WGPUPresentMode,
pub alphaModeCount: usize,
pub alphaModes: *const WGPUCompositeAlphaMode,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceCapabilities"][::std::mem::size_of::<WGPUSurfaceCapabilities>() - 64usize];
["Alignment of WGPUSurfaceCapabilities"]
[::std::mem::align_of::<WGPUSurfaceCapabilities>() - 8usize];
["Offset of field: WGPUSurfaceCapabilities::nextInChain"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, nextInChain) - 0usize];
["Offset of field: WGPUSurfaceCapabilities::usages"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, usages) - 8usize];
["Offset of field: WGPUSurfaceCapabilities::formatCount"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, formatCount) - 16usize];
["Offset of field: WGPUSurfaceCapabilities::formats"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, formats) - 24usize];
["Offset of field: WGPUSurfaceCapabilities::presentModeCount"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, presentModeCount) - 32usize];
["Offset of field: WGPUSurfaceCapabilities::presentModes"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, presentModes) - 40usize];
["Offset of field: WGPUSurfaceCapabilities::alphaModeCount"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, alphaModeCount) - 48usize];
["Offset of field: WGPUSurfaceCapabilities::alphaModes"]
[::std::mem::offset_of!(WGPUSurfaceCapabilities, alphaModes) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceColorManagement {
pub chain: WGPUChainedStruct,
pub colorSpace: WGPUPredefinedColorSpace,
pub toneMappingMode: WGPUToneMappingMode,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceColorManagement"]
[::std::mem::size_of::<WGPUSurfaceColorManagement>() - 24usize];
["Alignment of WGPUSurfaceColorManagement"]
[::std::mem::align_of::<WGPUSurfaceColorManagement>() - 8usize];
["Offset of field: WGPUSurfaceColorManagement::chain"]
[::std::mem::offset_of!(WGPUSurfaceColorManagement, chain) - 0usize];
["Offset of field: WGPUSurfaceColorManagement::colorSpace"]
[::std::mem::offset_of!(WGPUSurfaceColorManagement, colorSpace) - 16usize];
["Offset of field: WGPUSurfaceColorManagement::toneMappingMode"]
[::std::mem::offset_of!(WGPUSurfaceColorManagement, toneMappingMode) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceConfiguration {
pub nextInChain: *mut WGPUChainedStruct,
pub device: WGPUDevice,
pub format: WGPUTextureFormat,
pub usage: WGPUTextureUsage,
pub width: u32,
pub height: u32,
pub viewFormatCount: usize,
pub viewFormats: *const WGPUTextureFormat,
pub alphaMode: WGPUCompositeAlphaMode,
pub presentMode: WGPUPresentMode,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceConfiguration"]
[::std::mem::size_of::<WGPUSurfaceConfiguration>() - 64usize];
["Alignment of WGPUSurfaceConfiguration"]
[::std::mem::align_of::<WGPUSurfaceConfiguration>() - 8usize];
["Offset of field: WGPUSurfaceConfiguration::nextInChain"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, nextInChain) - 0usize];
["Offset of field: WGPUSurfaceConfiguration::device"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, device) - 8usize];
["Offset of field: WGPUSurfaceConfiguration::format"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, format) - 16usize];
["Offset of field: WGPUSurfaceConfiguration::usage"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, usage) - 24usize];
["Offset of field: WGPUSurfaceConfiguration::width"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, width) - 32usize];
["Offset of field: WGPUSurfaceConfiguration::height"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, height) - 36usize];
["Offset of field: WGPUSurfaceConfiguration::viewFormatCount"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, viewFormatCount) - 40usize];
["Offset of field: WGPUSurfaceConfiguration::viewFormats"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, viewFormats) - 48usize];
["Offset of field: WGPUSurfaceConfiguration::alphaMode"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, alphaMode) - 56usize];
["Offset of field: WGPUSurfaceConfiguration::presentMode"]
[::std::mem::offset_of!(WGPUSurfaceConfiguration, presentMode) - 60usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceDescriptorFromWindowsCoreWindow {
pub chain: WGPUChainedStruct,
pub coreWindow: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
[::std::mem::size_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 24usize];
["Alignment of WGPUSurfaceDescriptorFromWindowsCoreWindow"]
[::std::mem::align_of::<WGPUSurfaceDescriptorFromWindowsCoreWindow>() - 8usize];
["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::chain"]
[::std::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, chain) - 0usize];
["Offset of field: WGPUSurfaceDescriptorFromWindowsCoreWindow::coreWindow"]
[::std::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsCoreWindow, coreWindow) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel {
pub chain: WGPUChainedStruct,
pub swapChainPanel: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
[::std::mem::size_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 24usize];
["Alignment of WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel"]
[::std::mem::align_of::<WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel>() - 8usize];
["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::chain"]
[::std::mem::offset_of!(WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel, chain) - 0usize];
["Offset of field: WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel::swapChainPanel"][::std::mem::offset_of!(
WGPUSurfaceDescriptorFromWindowsUWPSwapChainPanel,
swapChainPanel
)
- 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel {
pub chain: WGPUChainedStruct,
pub swapChainPanel: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
[::std::mem::size_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 24usize];
["Alignment of WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel"]
[::std::mem::align_of::<WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel>() - 8usize];
["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::chain"][::std::mem::offset_of!(
WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
chain
) - 0usize];
["Offset of field: WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel::swapChainPanel"][::std::mem::offset_of!(
WGPUSurfaceDescriptorFromWindowsWinUISwapChainPanel,
swapChainPanel
)
- 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceSourceAndroidNativeWindow {
pub chain: WGPUChainedStruct,
pub window: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceSourceAndroidNativeWindow"]
[::std::mem::size_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 24usize];
["Alignment of WGPUSurfaceSourceAndroidNativeWindow"]
[::std::mem::align_of::<WGPUSurfaceSourceAndroidNativeWindow>() - 8usize];
["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::chain"]
[::std::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, chain) - 0usize];
["Offset of field: WGPUSurfaceSourceAndroidNativeWindow::window"]
[::std::mem::offset_of!(WGPUSurfaceSourceAndroidNativeWindow, window) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceSourceMetalLayer {
pub chain: WGPUChainedStruct,
pub layer: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceSourceMetalLayer"]
[::std::mem::size_of::<WGPUSurfaceSourceMetalLayer>() - 24usize];
["Alignment of WGPUSurfaceSourceMetalLayer"]
[::std::mem::align_of::<WGPUSurfaceSourceMetalLayer>() - 8usize];
["Offset of field: WGPUSurfaceSourceMetalLayer::chain"]
[::std::mem::offset_of!(WGPUSurfaceSourceMetalLayer, chain) - 0usize];
["Offset of field: WGPUSurfaceSourceMetalLayer::layer"]
[::std::mem::offset_of!(WGPUSurfaceSourceMetalLayer, layer) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceSourceWaylandSurface {
pub chain: WGPUChainedStruct,
pub display: *mut ::std::os::raw::c_void,
pub surface: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceSourceWaylandSurface"]
[::std::mem::size_of::<WGPUSurfaceSourceWaylandSurface>() - 32usize];
["Alignment of WGPUSurfaceSourceWaylandSurface"]
[::std::mem::align_of::<WGPUSurfaceSourceWaylandSurface>() - 8usize];
["Offset of field: WGPUSurfaceSourceWaylandSurface::chain"]
[::std::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, chain) - 0usize];
["Offset of field: WGPUSurfaceSourceWaylandSurface::display"]
[::std::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, display) - 16usize];
["Offset of field: WGPUSurfaceSourceWaylandSurface::surface"]
[::std::mem::offset_of!(WGPUSurfaceSourceWaylandSurface, surface) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceSourceWindowsHWND {
pub chain: WGPUChainedStruct,
pub hinstance: *mut ::std::os::raw::c_void,
pub hwnd: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceSourceWindowsHWND"]
[::std::mem::size_of::<WGPUSurfaceSourceWindowsHWND>() - 32usize];
["Alignment of WGPUSurfaceSourceWindowsHWND"]
[::std::mem::align_of::<WGPUSurfaceSourceWindowsHWND>() - 8usize];
["Offset of field: WGPUSurfaceSourceWindowsHWND::chain"]
[::std::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, chain) - 0usize];
["Offset of field: WGPUSurfaceSourceWindowsHWND::hinstance"]
[::std::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hinstance) - 16usize];
["Offset of field: WGPUSurfaceSourceWindowsHWND::hwnd"]
[::std::mem::offset_of!(WGPUSurfaceSourceWindowsHWND, hwnd) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceSourceXCBWindow {
pub chain: WGPUChainedStruct,
pub connection: *mut ::std::os::raw::c_void,
pub window: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceSourceXCBWindow"]
[::std::mem::size_of::<WGPUSurfaceSourceXCBWindow>() - 32usize];
["Alignment of WGPUSurfaceSourceXCBWindow"]
[::std::mem::align_of::<WGPUSurfaceSourceXCBWindow>() - 8usize];
["Offset of field: WGPUSurfaceSourceXCBWindow::chain"]
[::std::mem::offset_of!(WGPUSurfaceSourceXCBWindow, chain) - 0usize];
["Offset of field: WGPUSurfaceSourceXCBWindow::connection"]
[::std::mem::offset_of!(WGPUSurfaceSourceXCBWindow, connection) - 16usize];
["Offset of field: WGPUSurfaceSourceXCBWindow::window"]
[::std::mem::offset_of!(WGPUSurfaceSourceXCBWindow, window) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceSourceXlibWindow {
pub chain: WGPUChainedStruct,
pub display: *mut ::std::os::raw::c_void,
pub window: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceSourceXlibWindow"]
[::std::mem::size_of::<WGPUSurfaceSourceXlibWindow>() - 32usize];
["Alignment of WGPUSurfaceSourceXlibWindow"]
[::std::mem::align_of::<WGPUSurfaceSourceXlibWindow>() - 8usize];
["Offset of field: WGPUSurfaceSourceXlibWindow::chain"]
[::std::mem::offset_of!(WGPUSurfaceSourceXlibWindow, chain) - 0usize];
["Offset of field: WGPUSurfaceSourceXlibWindow::display"]
[::std::mem::offset_of!(WGPUSurfaceSourceXlibWindow, display) - 16usize];
["Offset of field: WGPUSurfaceSourceXlibWindow::window"]
[::std::mem::offset_of!(WGPUSurfaceSourceXlibWindow, window) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceTexture {
pub nextInChain: *mut WGPUChainedStruct,
pub texture: WGPUTexture,
pub status: WGPUSurfaceGetCurrentTextureStatus,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceTexture"][::std::mem::size_of::<WGPUSurfaceTexture>() - 24usize];
["Alignment of WGPUSurfaceTexture"][::std::mem::align_of::<WGPUSurfaceTexture>() - 8usize];
["Offset of field: WGPUSurfaceTexture::nextInChain"]
[::std::mem::offset_of!(WGPUSurfaceTexture, nextInChain) - 0usize];
["Offset of field: WGPUSurfaceTexture::texture"]
[::std::mem::offset_of!(WGPUSurfaceTexture, texture) - 8usize];
["Offset of field: WGPUSurfaceTexture::status"]
[::std::mem::offset_of!(WGPUSurfaceTexture, status) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTexelBufferBindingEntry {
pub chain: WGPUChainedStruct,
pub texelBufferView: WGPUTexelBufferView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTexelBufferBindingEntry"]
[::std::mem::size_of::<WGPUTexelBufferBindingEntry>() - 24usize];
["Alignment of WGPUTexelBufferBindingEntry"]
[::std::mem::align_of::<WGPUTexelBufferBindingEntry>() - 8usize];
["Offset of field: WGPUTexelBufferBindingEntry::chain"]
[::std::mem::offset_of!(WGPUTexelBufferBindingEntry, chain) - 0usize];
["Offset of field: WGPUTexelBufferBindingEntry::texelBufferView"]
[::std::mem::offset_of!(WGPUTexelBufferBindingEntry, texelBufferView) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTexelBufferBindingLayout {
pub chain: WGPUChainedStruct,
pub access: WGPUTexelBufferAccess,
pub format: WGPUTextureFormat,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTexelBufferBindingLayout"]
[::std::mem::size_of::<WGPUTexelBufferBindingLayout>() - 24usize];
["Alignment of WGPUTexelBufferBindingLayout"]
[::std::mem::align_of::<WGPUTexelBufferBindingLayout>() - 8usize];
["Offset of field: WGPUTexelBufferBindingLayout::chain"]
[::std::mem::offset_of!(WGPUTexelBufferBindingLayout, chain) - 0usize];
["Offset of field: WGPUTexelBufferBindingLayout::access"]
[::std::mem::offset_of!(WGPUTexelBufferBindingLayout, access) - 16usize];
["Offset of field: WGPUTexelBufferBindingLayout::format"]
[::std::mem::offset_of!(WGPUTexelBufferBindingLayout, format) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTexelBufferViewDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub format: WGPUTextureFormat,
pub offset: u64,
pub size: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTexelBufferViewDescriptor"]
[::std::mem::size_of::<WGPUTexelBufferViewDescriptor>() - 48usize];
["Alignment of WGPUTexelBufferViewDescriptor"]
[::std::mem::align_of::<WGPUTexelBufferViewDescriptor>() - 8usize];
["Offset of field: WGPUTexelBufferViewDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUTexelBufferViewDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUTexelBufferViewDescriptor::label"]
[::std::mem::offset_of!(WGPUTexelBufferViewDescriptor, label) - 8usize];
["Offset of field: WGPUTexelBufferViewDescriptor::format"]
[::std::mem::offset_of!(WGPUTexelBufferViewDescriptor, format) - 24usize];
["Offset of field: WGPUTexelBufferViewDescriptor::offset"]
[::std::mem::offset_of!(WGPUTexelBufferViewDescriptor, offset) - 32usize];
["Offset of field: WGPUTexelBufferViewDescriptor::size"]
[::std::mem::offset_of!(WGPUTexelBufferViewDescriptor, size) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTexelCopyBufferLayout {
pub offset: u64,
pub bytesPerRow: u32,
pub rowsPerImage: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTexelCopyBufferLayout"]
[::std::mem::size_of::<WGPUTexelCopyBufferLayout>() - 16usize];
["Alignment of WGPUTexelCopyBufferLayout"]
[::std::mem::align_of::<WGPUTexelCopyBufferLayout>() - 8usize];
["Offset of field: WGPUTexelCopyBufferLayout::offset"]
[::std::mem::offset_of!(WGPUTexelCopyBufferLayout, offset) - 0usize];
["Offset of field: WGPUTexelCopyBufferLayout::bytesPerRow"]
[::std::mem::offset_of!(WGPUTexelCopyBufferLayout, bytesPerRow) - 8usize];
["Offset of field: WGPUTexelCopyBufferLayout::rowsPerImage"]
[::std::mem::offset_of!(WGPUTexelCopyBufferLayout, rowsPerImage) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureBindingLayout {
pub nextInChain: *mut WGPUChainedStruct,
pub sampleType: WGPUTextureSampleType,
pub viewDimension: WGPUTextureViewDimension,
pub multisampled: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTextureBindingLayout"]
[::std::mem::size_of::<WGPUTextureBindingLayout>() - 24usize];
["Alignment of WGPUTextureBindingLayout"]
[::std::mem::align_of::<WGPUTextureBindingLayout>() - 8usize];
["Offset of field: WGPUTextureBindingLayout::nextInChain"]
[::std::mem::offset_of!(WGPUTextureBindingLayout, nextInChain) - 0usize];
["Offset of field: WGPUTextureBindingLayout::sampleType"]
[::std::mem::offset_of!(WGPUTextureBindingLayout, sampleType) - 8usize];
["Offset of field: WGPUTextureBindingLayout::viewDimension"]
[::std::mem::offset_of!(WGPUTextureBindingLayout, viewDimension) - 12usize];
["Offset of field: WGPUTextureBindingLayout::multisampled"]
[::std::mem::offset_of!(WGPUTextureBindingLayout, multisampled) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureBindingViewDimension {
pub chain: WGPUChainedStruct,
pub textureBindingViewDimension: WGPUTextureViewDimension,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTextureBindingViewDimension"]
[::std::mem::size_of::<WGPUTextureBindingViewDimension>() - 24usize];
["Alignment of WGPUTextureBindingViewDimension"]
[::std::mem::align_of::<WGPUTextureBindingViewDimension>() - 8usize];
["Offset of field: WGPUTextureBindingViewDimension::chain"]
[::std::mem::offset_of!(WGPUTextureBindingViewDimension, chain) - 0usize];
["Offset of field: WGPUTextureBindingViewDimension::textureBindingViewDimension"][::std::mem::offset_of!(
WGPUTextureBindingViewDimension,
textureBindingViewDimension
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureComponentSwizzle {
pub r: WGPUComponentSwizzle,
pub g: WGPUComponentSwizzle,
pub b: WGPUComponentSwizzle,
pub a: WGPUComponentSwizzle,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTextureComponentSwizzle"]
[::std::mem::size_of::<WGPUTextureComponentSwizzle>() - 16usize];
["Alignment of WGPUTextureComponentSwizzle"]
[::std::mem::align_of::<WGPUTextureComponentSwizzle>() - 4usize];
["Offset of field: WGPUTextureComponentSwizzle::r"]
[::std::mem::offset_of!(WGPUTextureComponentSwizzle, r) - 0usize];
["Offset of field: WGPUTextureComponentSwizzle::g"]
[::std::mem::offset_of!(WGPUTextureComponentSwizzle, g) - 4usize];
["Offset of field: WGPUTextureComponentSwizzle::b"]
[::std::mem::offset_of!(WGPUTextureComponentSwizzle, b) - 8usize];
["Offset of field: WGPUTextureComponentSwizzle::a"]
[::std::mem::offset_of!(WGPUTextureComponentSwizzle, a) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUVertexAttribute {
pub nextInChain: *mut WGPUChainedStruct,
pub format: WGPUVertexFormat,
pub offset: u64,
pub shaderLocation: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUVertexAttribute"][::std::mem::size_of::<WGPUVertexAttribute>() - 32usize];
["Alignment of WGPUVertexAttribute"][::std::mem::align_of::<WGPUVertexAttribute>() - 8usize];
["Offset of field: WGPUVertexAttribute::nextInChain"]
[::std::mem::offset_of!(WGPUVertexAttribute, nextInChain) - 0usize];
["Offset of field: WGPUVertexAttribute::format"]
[::std::mem::offset_of!(WGPUVertexAttribute, format) - 8usize];
["Offset of field: WGPUVertexAttribute::offset"]
[::std::mem::offset_of!(WGPUVertexAttribute, offset) - 16usize];
["Offset of field: WGPUVertexAttribute::shaderLocation"]
[::std::mem::offset_of!(WGPUVertexAttribute, shaderLocation) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUYCbCrVkDescriptor {
pub chain: WGPUChainedStruct,
pub vkFormat: u32,
pub vkYCbCrModel: u32,
pub vkYCbCrRange: u32,
pub vkComponentSwizzleRed: u32,
pub vkComponentSwizzleGreen: u32,
pub vkComponentSwizzleBlue: u32,
pub vkComponentSwizzleAlpha: u32,
pub vkXChromaOffset: u32,
pub vkYChromaOffset: u32,
pub vkChromaFilter: WGPUFilterMode,
pub forceExplicitReconstruction: WGPUBool,
pub externalFormat: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUYCbCrVkDescriptor"][::std::mem::size_of::<WGPUYCbCrVkDescriptor>() - 72usize];
["Alignment of WGPUYCbCrVkDescriptor"]
[::std::mem::align_of::<WGPUYCbCrVkDescriptor>() - 8usize];
["Offset of field: WGPUYCbCrVkDescriptor::chain"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, chain) - 0usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkFormat"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkFormat) - 16usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrModel"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrModel) - 20usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkYCbCrRange"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYCbCrRange) - 24usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleRed"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleRed) - 28usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleGreen"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleGreen) - 32usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleBlue"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleBlue) - 36usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkComponentSwizzleAlpha"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkComponentSwizzleAlpha) - 40usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkXChromaOffset"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkXChromaOffset) - 44usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkYChromaOffset"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkYChromaOffset) - 48usize];
["Offset of field: WGPUYCbCrVkDescriptor::vkChromaFilter"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, vkChromaFilter) - 52usize];
["Offset of field: WGPUYCbCrVkDescriptor::forceExplicitReconstruction"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, forceExplicitReconstruction) - 56usize];
["Offset of field: WGPUYCbCrVkDescriptor::externalFormat"]
[::std::mem::offset_of!(WGPUYCbCrVkDescriptor, externalFormat) - 64usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterPropertiesMemoryHeaps {
pub chain: WGPUChainedStruct,
pub heapCount: usize,
pub heapInfo: *const WGPUMemoryHeapInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAdapterPropertiesMemoryHeaps"]
[::std::mem::size_of::<WGPUAdapterPropertiesMemoryHeaps>() - 32usize];
["Alignment of WGPUAdapterPropertiesMemoryHeaps"]
[::std::mem::align_of::<WGPUAdapterPropertiesMemoryHeaps>() - 8usize];
["Offset of field: WGPUAdapterPropertiesMemoryHeaps::chain"]
[::std::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, chain) - 0usize];
["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapCount"]
[::std::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapCount) - 16usize];
["Offset of field: WGPUAdapterPropertiesMemoryHeaps::heapInfo"]
[::std::mem::offset_of!(WGPUAdapterPropertiesMemoryHeaps, heapInfo) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterPropertiesSubgroupMatrixConfigs {
pub chain: WGPUChainedStruct,
pub configCount: usize,
pub configs: *const WGPUSubgroupMatrixConfig,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
[::std::mem::size_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 32usize];
["Alignment of WGPUAdapterPropertiesSubgroupMatrixConfigs"]
[::std::mem::align_of::<WGPUAdapterPropertiesSubgroupMatrixConfigs>() - 8usize];
["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::chain"]
[::std::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, chain) - 0usize];
["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configCount"]
[::std::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, configCount) - 16usize];
["Offset of field: WGPUAdapterPropertiesSubgroupMatrixConfigs::configs"]
[::std::mem::offset_of!(WGPUAdapterPropertiesSubgroupMatrixConfigs, configs) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAHardwareBufferProperties {
pub yCbCrInfo: WGPUYCbCrVkDescriptor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAHardwareBufferProperties"]
[::std::mem::size_of::<WGPUAHardwareBufferProperties>() - 72usize];
["Alignment of WGPUAHardwareBufferProperties"]
[::std::mem::align_of::<WGPUAHardwareBufferProperties>() - 8usize];
["Offset of field: WGPUAHardwareBufferProperties::yCbCrInfo"]
[::std::mem::offset_of!(WGPUAHardwareBufferProperties, yCbCrInfo) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBindGroupEntry {
pub nextInChain: *mut WGPUChainedStruct,
pub binding: u32,
pub buffer: WGPUBuffer,
pub offset: u64,
pub size: u64,
pub sampler: WGPUSampler,
pub textureView: WGPUTextureView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBindGroupEntry"][::std::mem::size_of::<WGPUBindGroupEntry>() - 56usize];
["Alignment of WGPUBindGroupEntry"][::std::mem::align_of::<WGPUBindGroupEntry>() - 8usize];
["Offset of field: WGPUBindGroupEntry::nextInChain"]
[::std::mem::offset_of!(WGPUBindGroupEntry, nextInChain) - 0usize];
["Offset of field: WGPUBindGroupEntry::binding"]
[::std::mem::offset_of!(WGPUBindGroupEntry, binding) - 8usize];
["Offset of field: WGPUBindGroupEntry::buffer"]
[::std::mem::offset_of!(WGPUBindGroupEntry, buffer) - 16usize];
["Offset of field: WGPUBindGroupEntry::offset"]
[::std::mem::offset_of!(WGPUBindGroupEntry, offset) - 24usize];
["Offset of field: WGPUBindGroupEntry::size"]
[::std::mem::offset_of!(WGPUBindGroupEntry, size) - 32usize];
["Offset of field: WGPUBindGroupEntry::sampler"]
[::std::mem::offset_of!(WGPUBindGroupEntry, sampler) - 40usize];
["Offset of field: WGPUBindGroupEntry::textureView"]
[::std::mem::offset_of!(WGPUBindGroupEntry, textureView) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBindGroupLayoutEntry {
pub nextInChain: *mut WGPUChainedStruct,
pub binding: u32,
pub visibility: WGPUShaderStage,
pub bindingArraySize: u32,
pub buffer: WGPUBufferBindingLayout,
pub sampler: WGPUSamplerBindingLayout,
pub texture: WGPUTextureBindingLayout,
pub storageTexture: WGPUStorageTextureBindingLayout,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBindGroupLayoutEntry"]
[::std::mem::size_of::<WGPUBindGroupLayoutEntry>() - 120usize];
["Alignment of WGPUBindGroupLayoutEntry"]
[::std::mem::align_of::<WGPUBindGroupLayoutEntry>() - 8usize];
["Offset of field: WGPUBindGroupLayoutEntry::nextInChain"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, nextInChain) - 0usize];
["Offset of field: WGPUBindGroupLayoutEntry::binding"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, binding) - 8usize];
["Offset of field: WGPUBindGroupLayoutEntry::visibility"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, visibility) - 16usize];
["Offset of field: WGPUBindGroupLayoutEntry::bindingArraySize"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, bindingArraySize) - 24usize];
["Offset of field: WGPUBindGroupLayoutEntry::buffer"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, buffer) - 32usize];
["Offset of field: WGPUBindGroupLayoutEntry::sampler"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, sampler) - 56usize];
["Offset of field: WGPUBindGroupLayoutEntry::texture"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, texture) - 72usize];
["Offset of field: WGPUBindGroupLayoutEntry::storageTexture"]
[::std::mem::offset_of!(WGPUBindGroupLayoutEntry, storageTexture) - 96usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBlendState {
pub color: WGPUBlendComponent,
pub alpha: WGPUBlendComponent,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBlendState"][::std::mem::size_of::<WGPUBlendState>() - 24usize];
["Alignment of WGPUBlendState"][::std::mem::align_of::<WGPUBlendState>() - 4usize];
["Offset of field: WGPUBlendState::color"]
[::std::mem::offset_of!(WGPUBlendState, color) - 0usize];
["Offset of field: WGPUBlendState::alpha"]
[::std::mem::offset_of!(WGPUBlendState, alpha) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBufferDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub usage: WGPUBufferUsage,
pub size: u64,
pub mappedAtCreation: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBufferDescriptor"][::std::mem::size_of::<WGPUBufferDescriptor>() - 48usize];
["Alignment of WGPUBufferDescriptor"][::std::mem::align_of::<WGPUBufferDescriptor>() - 8usize];
["Offset of field: WGPUBufferDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUBufferDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUBufferDescriptor::label"]
[::std::mem::offset_of!(WGPUBufferDescriptor, label) - 8usize];
["Offset of field: WGPUBufferDescriptor::usage"]
[::std::mem::offset_of!(WGPUBufferDescriptor, usage) - 24usize];
["Offset of field: WGPUBufferDescriptor::size"]
[::std::mem::offset_of!(WGPUBufferDescriptor, size) - 32usize];
["Offset of field: WGPUBufferDescriptor::mappedAtCreation"]
[::std::mem::offset_of!(WGPUBufferDescriptor, mappedAtCreation) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCommandEncoderDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCommandEncoderDescriptor"]
[::std::mem::size_of::<WGPUCommandEncoderDescriptor>() - 24usize];
["Alignment of WGPUCommandEncoderDescriptor"]
[::std::mem::align_of::<WGPUCommandEncoderDescriptor>() - 8usize];
["Offset of field: WGPUCommandEncoderDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUCommandEncoderDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUCommandEncoderDescriptor::label"]
[::std::mem::offset_of!(WGPUCommandEncoderDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCompilationMessage {
pub nextInChain: *mut WGPUChainedStruct,
pub message: WGPUStringView,
pub type_: WGPUCompilationMessageType,
pub lineNum: u64,
pub linePos: u64,
pub offset: u64,
pub length: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCompilationMessage"][::std::mem::size_of::<WGPUCompilationMessage>() - 64usize];
["Alignment of WGPUCompilationMessage"]
[::std::mem::align_of::<WGPUCompilationMessage>() - 8usize];
["Offset of field: WGPUCompilationMessage::nextInChain"]
[::std::mem::offset_of!(WGPUCompilationMessage, nextInChain) - 0usize];
["Offset of field: WGPUCompilationMessage::message"]
[::std::mem::offset_of!(WGPUCompilationMessage, message) - 8usize];
["Offset of field: WGPUCompilationMessage::type_"]
[::std::mem::offset_of!(WGPUCompilationMessage, type_) - 24usize];
["Offset of field: WGPUCompilationMessage::lineNum"]
[::std::mem::offset_of!(WGPUCompilationMessage, lineNum) - 32usize];
["Offset of field: WGPUCompilationMessage::linePos"]
[::std::mem::offset_of!(WGPUCompilationMessage, linePos) - 40usize];
["Offset of field: WGPUCompilationMessage::offset"]
[::std::mem::offset_of!(WGPUCompilationMessage, offset) - 48usize];
["Offset of field: WGPUCompilationMessage::length"]
[::std::mem::offset_of!(WGPUCompilationMessage, length) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUComputePassDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub timestampWrites: *const WGPUPassTimestampWrites,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUComputePassDescriptor"]
[::std::mem::size_of::<WGPUComputePassDescriptor>() - 32usize];
["Alignment of WGPUComputePassDescriptor"]
[::std::mem::align_of::<WGPUComputePassDescriptor>() - 8usize];
["Offset of field: WGPUComputePassDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUComputePassDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUComputePassDescriptor::label"]
[::std::mem::offset_of!(WGPUComputePassDescriptor, label) - 8usize];
["Offset of field: WGPUComputePassDescriptor::timestampWrites"]
[::std::mem::offset_of!(WGPUComputePassDescriptor, timestampWrites) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUComputeState {
pub nextInChain: *mut WGPUChainedStruct,
pub module: WGPUShaderModule,
pub entryPoint: WGPUStringView,
pub constantCount: usize,
pub constants: *const WGPUConstantEntry,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUComputeState"][::std::mem::size_of::<WGPUComputeState>() - 48usize];
["Alignment of WGPUComputeState"][::std::mem::align_of::<WGPUComputeState>() - 8usize];
["Offset of field: WGPUComputeState::nextInChain"]
[::std::mem::offset_of!(WGPUComputeState, nextInChain) - 0usize];
["Offset of field: WGPUComputeState::module"]
[::std::mem::offset_of!(WGPUComputeState, module) - 8usize];
["Offset of field: WGPUComputeState::entryPoint"]
[::std::mem::offset_of!(WGPUComputeState, entryPoint) - 16usize];
["Offset of field: WGPUComputeState::constantCount"]
[::std::mem::offset_of!(WGPUComputeState, constantCount) - 32usize];
["Offset of field: WGPUComputeState::constants"]
[::std::mem::offset_of!(WGPUComputeState, constants) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnDrmFormatCapabilities {
pub chain: WGPUChainedStruct,
pub propertiesCount: usize,
pub properties: *const WGPUDawnDrmFormatProperties,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnDrmFormatCapabilities"]
[::std::mem::size_of::<WGPUDawnDrmFormatCapabilities>() - 32usize];
["Alignment of WGPUDawnDrmFormatCapabilities"]
[::std::mem::align_of::<WGPUDawnDrmFormatCapabilities>() - 8usize];
["Offset of field: WGPUDawnDrmFormatCapabilities::chain"]
[::std::mem::offset_of!(WGPUDawnDrmFormatCapabilities, chain) - 0usize];
["Offset of field: WGPUDawnDrmFormatCapabilities::propertiesCount"]
[::std::mem::offset_of!(WGPUDawnDrmFormatCapabilities, propertiesCount) - 16usize];
["Offset of field: WGPUDawnDrmFormatCapabilities::properties"]
[::std::mem::offset_of!(WGPUDawnDrmFormatCapabilities, properties) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDepthStencilState {
pub nextInChain: *mut WGPUChainedStruct,
pub format: WGPUTextureFormat,
pub depthWriteEnabled: WGPUOptionalBool,
pub depthCompare: WGPUCompareFunction,
pub stencilFront: WGPUStencilFaceState,
pub stencilBack: WGPUStencilFaceState,
pub stencilReadMask: u32,
pub stencilWriteMask: u32,
pub depthBias: i32,
pub depthBiasSlopeScale: f32,
pub depthBiasClamp: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDepthStencilState"][::std::mem::size_of::<WGPUDepthStencilState>() - 72usize];
["Alignment of WGPUDepthStencilState"]
[::std::mem::align_of::<WGPUDepthStencilState>() - 8usize];
["Offset of field: WGPUDepthStencilState::nextInChain"]
[::std::mem::offset_of!(WGPUDepthStencilState, nextInChain) - 0usize];
["Offset of field: WGPUDepthStencilState::format"]
[::std::mem::offset_of!(WGPUDepthStencilState, format) - 8usize];
["Offset of field: WGPUDepthStencilState::depthWriteEnabled"]
[::std::mem::offset_of!(WGPUDepthStencilState, depthWriteEnabled) - 12usize];
["Offset of field: WGPUDepthStencilState::depthCompare"]
[::std::mem::offset_of!(WGPUDepthStencilState, depthCompare) - 16usize];
["Offset of field: WGPUDepthStencilState::stencilFront"]
[::std::mem::offset_of!(WGPUDepthStencilState, stencilFront) - 20usize];
["Offset of field: WGPUDepthStencilState::stencilBack"]
[::std::mem::offset_of!(WGPUDepthStencilState, stencilBack) - 36usize];
["Offset of field: WGPUDepthStencilState::stencilReadMask"]
[::std::mem::offset_of!(WGPUDepthStencilState, stencilReadMask) - 52usize];
["Offset of field: WGPUDepthStencilState::stencilWriteMask"]
[::std::mem::offset_of!(WGPUDepthStencilState, stencilWriteMask) - 56usize];
["Offset of field: WGPUDepthStencilState::depthBias"]
[::std::mem::offset_of!(WGPUDepthStencilState, depthBias) - 60usize];
["Offset of field: WGPUDepthStencilState::depthBiasSlopeScale"]
[::std::mem::offset_of!(WGPUDepthStencilState, depthBiasSlopeScale) - 64usize];
["Offset of field: WGPUDepthStencilState::depthBiasClamp"]
[::std::mem::offset_of!(WGPUDepthStencilState, depthBiasClamp) - 68usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUExternalTextureDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub plane0: WGPUTextureView,
pub plane1: WGPUTextureView,
pub cropOrigin: WGPUOrigin2D,
pub cropSize: WGPUExtent2D,
pub apparentSize: WGPUExtent2D,
pub doYuvToRgbConversionOnly: WGPUBool,
pub yuvToRgbConversionMatrix: *const f32,
pub srcTransferFunctionParameters: *const f32,
pub dstTransferFunctionParameters: *const f32,
pub gamutConversionMatrix: *const f32,
pub mirrored: WGPUBool,
pub rotation: WGPUExternalTextureRotation,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUExternalTextureDescriptor"]
[::std::mem::size_of::<WGPUExternalTextureDescriptor>() - 112usize];
["Alignment of WGPUExternalTextureDescriptor"]
[::std::mem::align_of::<WGPUExternalTextureDescriptor>() - 8usize];
["Offset of field: WGPUExternalTextureDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUExternalTextureDescriptor::label"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, label) - 8usize];
["Offset of field: WGPUExternalTextureDescriptor::plane0"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, plane0) - 24usize];
["Offset of field: WGPUExternalTextureDescriptor::plane1"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, plane1) - 32usize];
["Offset of field: WGPUExternalTextureDescriptor::cropOrigin"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, cropOrigin) - 40usize];
["Offset of field: WGPUExternalTextureDescriptor::cropSize"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, cropSize) - 48usize];
["Offset of field: WGPUExternalTextureDescriptor::apparentSize"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, apparentSize) - 56usize];
["Offset of field: WGPUExternalTextureDescriptor::doYuvToRgbConversionOnly"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, doYuvToRgbConversionOnly) - 64usize];
["Offset of field: WGPUExternalTextureDescriptor::yuvToRgbConversionMatrix"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, yuvToRgbConversionMatrix) - 72usize];
["Offset of field: WGPUExternalTextureDescriptor::srcTransferFunctionParameters"][::std::mem::offset_of!(
WGPUExternalTextureDescriptor,
srcTransferFunctionParameters
) - 80usize];
["Offset of field: WGPUExternalTextureDescriptor::dstTransferFunctionParameters"][::std::mem::offset_of!(
WGPUExternalTextureDescriptor,
dstTransferFunctionParameters
) - 88usize];
["Offset of field: WGPUExternalTextureDescriptor::gamutConversionMatrix"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, gamutConversionMatrix) - 96usize];
["Offset of field: WGPUExternalTextureDescriptor::mirrored"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, mirrored) - 104usize];
["Offset of field: WGPUExternalTextureDescriptor::rotation"]
[::std::mem::offset_of!(WGPUExternalTextureDescriptor, rotation) - 108usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUFutureWaitInfo {
pub future: WGPUFuture,
pub completed: WGPUBool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUFutureWaitInfo"][::std::mem::size_of::<WGPUFutureWaitInfo>() - 16usize];
["Alignment of WGPUFutureWaitInfo"][::std::mem::align_of::<WGPUFutureWaitInfo>() - 8usize];
["Offset of field: WGPUFutureWaitInfo::future"]
[::std::mem::offset_of!(WGPUFutureWaitInfo, future) - 0usize];
["Offset of field: WGPUFutureWaitInfo::completed"]
[::std::mem::offset_of!(WGPUFutureWaitInfo, completed) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUImageCopyExternalTexture {
pub nextInChain: *mut WGPUChainedStruct,
pub externalTexture: WGPUExternalTexture,
pub origin: WGPUOrigin3D,
pub naturalSize: WGPUExtent2D,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUImageCopyExternalTexture"]
[::std::mem::size_of::<WGPUImageCopyExternalTexture>() - 40usize];
["Alignment of WGPUImageCopyExternalTexture"]
[::std::mem::align_of::<WGPUImageCopyExternalTexture>() - 8usize];
["Offset of field: WGPUImageCopyExternalTexture::nextInChain"]
[::std::mem::offset_of!(WGPUImageCopyExternalTexture, nextInChain) - 0usize];
["Offset of field: WGPUImageCopyExternalTexture::externalTexture"]
[::std::mem::offset_of!(WGPUImageCopyExternalTexture, externalTexture) - 8usize];
["Offset of field: WGPUImageCopyExternalTexture::origin"]
[::std::mem::offset_of!(WGPUImageCopyExternalTexture, origin) - 16usize];
["Offset of field: WGPUImageCopyExternalTexture::naturalSize"]
[::std::mem::offset_of!(WGPUImageCopyExternalTexture, naturalSize) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUInstanceDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub requiredFeatureCount: usize,
pub requiredFeatures: *const WGPUInstanceFeatureName,
pub requiredLimits: *const WGPUInstanceLimits,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUInstanceDescriptor"][::std::mem::size_of::<WGPUInstanceDescriptor>() - 32usize];
["Alignment of WGPUInstanceDescriptor"]
[::std::mem::align_of::<WGPUInstanceDescriptor>() - 8usize];
["Offset of field: WGPUInstanceDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUInstanceDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUInstanceDescriptor::requiredFeatureCount"]
[::std::mem::offset_of!(WGPUInstanceDescriptor, requiredFeatureCount) - 8usize];
["Offset of field: WGPUInstanceDescriptor::requiredFeatures"]
[::std::mem::offset_of!(WGPUInstanceDescriptor, requiredFeatures) - 16usize];
["Offset of field: WGPUInstanceDescriptor::requiredLimits"]
[::std::mem::offset_of!(WGPUInstanceDescriptor, requiredLimits) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPULimits {
pub nextInChain: *mut WGPUChainedStruct,
pub maxTextureDimension1D: u32,
pub maxTextureDimension2D: u32,
pub maxTextureDimension3D: u32,
pub maxTextureArrayLayers: u32,
pub maxBindGroups: u32,
pub maxBindGroupsPlusVertexBuffers: u32,
pub maxBindingsPerBindGroup: u32,
pub maxDynamicUniformBuffersPerPipelineLayout: u32,
pub maxDynamicStorageBuffersPerPipelineLayout: u32,
pub maxSampledTexturesPerShaderStage: u32,
pub maxSamplersPerShaderStage: u32,
pub maxStorageBuffersPerShaderStage: u32,
pub maxStorageTexturesPerShaderStage: u32,
pub maxUniformBuffersPerShaderStage: u32,
pub maxUniformBufferBindingSize: u64,
pub maxStorageBufferBindingSize: u64,
pub minUniformBufferOffsetAlignment: u32,
pub minStorageBufferOffsetAlignment: u32,
pub maxVertexBuffers: u32,
pub maxBufferSize: u64,
pub maxVertexAttributes: u32,
pub maxVertexBufferArrayStride: u32,
pub maxInterStageShaderVariables: u32,
pub maxColorAttachments: u32,
pub maxColorAttachmentBytesPerSample: u32,
pub maxComputeWorkgroupStorageSize: u32,
pub maxComputeInvocationsPerWorkgroup: u32,
pub maxComputeWorkgroupSizeX: u32,
pub maxComputeWorkgroupSizeY: u32,
pub maxComputeWorkgroupSizeZ: u32,
pub maxComputeWorkgroupsPerDimension: u32,
pub maxImmediateSize: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPULimits"][::std::mem::size_of::<WGPULimits>() - 152usize];
["Alignment of WGPULimits"][::std::mem::align_of::<WGPULimits>() - 8usize];
["Offset of field: WGPULimits::nextInChain"]
[::std::mem::offset_of!(WGPULimits, nextInChain) - 0usize];
["Offset of field: WGPULimits::maxTextureDimension1D"]
[::std::mem::offset_of!(WGPULimits, maxTextureDimension1D) - 8usize];
["Offset of field: WGPULimits::maxTextureDimension2D"]
[::std::mem::offset_of!(WGPULimits, maxTextureDimension2D) - 12usize];
["Offset of field: WGPULimits::maxTextureDimension3D"]
[::std::mem::offset_of!(WGPULimits, maxTextureDimension3D) - 16usize];
["Offset of field: WGPULimits::maxTextureArrayLayers"]
[::std::mem::offset_of!(WGPULimits, maxTextureArrayLayers) - 20usize];
["Offset of field: WGPULimits::maxBindGroups"]
[::std::mem::offset_of!(WGPULimits, maxBindGroups) - 24usize];
["Offset of field: WGPULimits::maxBindGroupsPlusVertexBuffers"]
[::std::mem::offset_of!(WGPULimits, maxBindGroupsPlusVertexBuffers) - 28usize];
["Offset of field: WGPULimits::maxBindingsPerBindGroup"]
[::std::mem::offset_of!(WGPULimits, maxBindingsPerBindGroup) - 32usize];
["Offset of field: WGPULimits::maxDynamicUniformBuffersPerPipelineLayout"]
[::std::mem::offset_of!(WGPULimits, maxDynamicUniformBuffersPerPipelineLayout) - 36usize];
["Offset of field: WGPULimits::maxDynamicStorageBuffersPerPipelineLayout"]
[::std::mem::offset_of!(WGPULimits, maxDynamicStorageBuffersPerPipelineLayout) - 40usize];
["Offset of field: WGPULimits::maxSampledTexturesPerShaderStage"]
[::std::mem::offset_of!(WGPULimits, maxSampledTexturesPerShaderStage) - 44usize];
["Offset of field: WGPULimits::maxSamplersPerShaderStage"]
[::std::mem::offset_of!(WGPULimits, maxSamplersPerShaderStage) - 48usize];
["Offset of field: WGPULimits::maxStorageBuffersPerShaderStage"]
[::std::mem::offset_of!(WGPULimits, maxStorageBuffersPerShaderStage) - 52usize];
["Offset of field: WGPULimits::maxStorageTexturesPerShaderStage"]
[::std::mem::offset_of!(WGPULimits, maxStorageTexturesPerShaderStage) - 56usize];
["Offset of field: WGPULimits::maxUniformBuffersPerShaderStage"]
[::std::mem::offset_of!(WGPULimits, maxUniformBuffersPerShaderStage) - 60usize];
["Offset of field: WGPULimits::maxUniformBufferBindingSize"]
[::std::mem::offset_of!(WGPULimits, maxUniformBufferBindingSize) - 64usize];
["Offset of field: WGPULimits::maxStorageBufferBindingSize"]
[::std::mem::offset_of!(WGPULimits, maxStorageBufferBindingSize) - 72usize];
["Offset of field: WGPULimits::minUniformBufferOffsetAlignment"]
[::std::mem::offset_of!(WGPULimits, minUniformBufferOffsetAlignment) - 80usize];
["Offset of field: WGPULimits::minStorageBufferOffsetAlignment"]
[::std::mem::offset_of!(WGPULimits, minStorageBufferOffsetAlignment) - 84usize];
["Offset of field: WGPULimits::maxVertexBuffers"]
[::std::mem::offset_of!(WGPULimits, maxVertexBuffers) - 88usize];
["Offset of field: WGPULimits::maxBufferSize"]
[::std::mem::offset_of!(WGPULimits, maxBufferSize) - 96usize];
["Offset of field: WGPULimits::maxVertexAttributes"]
[::std::mem::offset_of!(WGPULimits, maxVertexAttributes) - 104usize];
["Offset of field: WGPULimits::maxVertexBufferArrayStride"]
[::std::mem::offset_of!(WGPULimits, maxVertexBufferArrayStride) - 108usize];
["Offset of field: WGPULimits::maxInterStageShaderVariables"]
[::std::mem::offset_of!(WGPULimits, maxInterStageShaderVariables) - 112usize];
["Offset of field: WGPULimits::maxColorAttachments"]
[::std::mem::offset_of!(WGPULimits, maxColorAttachments) - 116usize];
["Offset of field: WGPULimits::maxColorAttachmentBytesPerSample"]
[::std::mem::offset_of!(WGPULimits, maxColorAttachmentBytesPerSample) - 120usize];
["Offset of field: WGPULimits::maxComputeWorkgroupStorageSize"]
[::std::mem::offset_of!(WGPULimits, maxComputeWorkgroupStorageSize) - 124usize];
["Offset of field: WGPULimits::maxComputeInvocationsPerWorkgroup"]
[::std::mem::offset_of!(WGPULimits, maxComputeInvocationsPerWorkgroup) - 128usize];
["Offset of field: WGPULimits::maxComputeWorkgroupSizeX"]
[::std::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeX) - 132usize];
["Offset of field: WGPULimits::maxComputeWorkgroupSizeY"]
[::std::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeY) - 136usize];
["Offset of field: WGPULimits::maxComputeWorkgroupSizeZ"]
[::std::mem::offset_of!(WGPULimits, maxComputeWorkgroupSizeZ) - 140usize];
["Offset of field: WGPULimits::maxComputeWorkgroupsPerDimension"]
[::std::mem::offset_of!(WGPULimits, maxComputeWorkgroupsPerDimension) - 144usize];
["Offset of field: WGPULimits::maxImmediateSize"]
[::std::mem::offset_of!(WGPULimits, maxImmediateSize) - 148usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPipelineLayoutPixelLocalStorage {
pub chain: WGPUChainedStruct,
pub totalPixelLocalStorageSize: u64,
pub storageAttachmentCount: usize,
pub storageAttachments: *const WGPUPipelineLayoutStorageAttachment,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUPipelineLayoutPixelLocalStorage"]
[::std::mem::size_of::<WGPUPipelineLayoutPixelLocalStorage>() - 40usize];
["Alignment of WGPUPipelineLayoutPixelLocalStorage"]
[::std::mem::align_of::<WGPUPipelineLayoutPixelLocalStorage>() - 8usize];
["Offset of field: WGPUPipelineLayoutPixelLocalStorage::chain"]
[::std::mem::offset_of!(WGPUPipelineLayoutPixelLocalStorage, chain) - 0usize];
["Offset of field: WGPUPipelineLayoutPixelLocalStorage::totalPixelLocalStorageSize"][::std::mem::offset_of!(
WGPUPipelineLayoutPixelLocalStorage,
totalPixelLocalStorageSize
)
- 16usize];
["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachmentCount"][::std::mem::offset_of!(
WGPUPipelineLayoutPixelLocalStorage,
storageAttachmentCount
) - 24usize];
["Offset of field: WGPUPipelineLayoutPixelLocalStorage::storageAttachments"]
[::std::mem::offset_of!(WGPUPipelineLayoutPixelLocalStorage, storageAttachments) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassColorAttachment {
pub nextInChain: *mut WGPUChainedStruct,
pub view: WGPUTextureView,
pub depthSlice: u32,
pub resolveTarget: WGPUTextureView,
pub loadOp: WGPULoadOp,
pub storeOp: WGPUStoreOp,
pub clearValue: WGPUColor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassColorAttachment"]
[::std::mem::size_of::<WGPURenderPassColorAttachment>() - 72usize];
["Alignment of WGPURenderPassColorAttachment"]
[::std::mem::align_of::<WGPURenderPassColorAttachment>() - 8usize];
["Offset of field: WGPURenderPassColorAttachment::nextInChain"]
[::std::mem::offset_of!(WGPURenderPassColorAttachment, nextInChain) - 0usize];
["Offset of field: WGPURenderPassColorAttachment::view"]
[::std::mem::offset_of!(WGPURenderPassColorAttachment, view) - 8usize];
["Offset of field: WGPURenderPassColorAttachment::depthSlice"]
[::std::mem::offset_of!(WGPURenderPassColorAttachment, depthSlice) - 16usize];
["Offset of field: WGPURenderPassColorAttachment::resolveTarget"]
[::std::mem::offset_of!(WGPURenderPassColorAttachment, resolveTarget) - 24usize];
["Offset of field: WGPURenderPassColorAttachment::loadOp"]
[::std::mem::offset_of!(WGPURenderPassColorAttachment, loadOp) - 32usize];
["Offset of field: WGPURenderPassColorAttachment::storeOp"]
[::std::mem::offset_of!(WGPURenderPassColorAttachment, storeOp) - 36usize];
["Offset of field: WGPURenderPassColorAttachment::clearValue"]
[::std::mem::offset_of!(WGPURenderPassColorAttachment, clearValue) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassRenderAreaRect {
pub chain: WGPUChainedStruct,
pub origin: WGPUOrigin2D,
pub size: WGPUExtent2D,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassRenderAreaRect"]
[::std::mem::size_of::<WGPURenderPassRenderAreaRect>() - 32usize];
["Alignment of WGPURenderPassRenderAreaRect"]
[::std::mem::align_of::<WGPURenderPassRenderAreaRect>() - 8usize];
["Offset of field: WGPURenderPassRenderAreaRect::chain"]
[::std::mem::offset_of!(WGPURenderPassRenderAreaRect, chain) - 0usize];
["Offset of field: WGPURenderPassRenderAreaRect::origin"]
[::std::mem::offset_of!(WGPURenderPassRenderAreaRect, origin) - 16usize];
["Offset of field: WGPURenderPassRenderAreaRect::size"]
[::std::mem::offset_of!(WGPURenderPassRenderAreaRect, size) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassStorageAttachment {
pub nextInChain: *mut WGPUChainedStruct,
pub offset: u64,
pub storage: WGPUTextureView,
pub loadOp: WGPULoadOp,
pub storeOp: WGPUStoreOp,
pub clearValue: WGPUColor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassStorageAttachment"]
[::std::mem::size_of::<WGPURenderPassStorageAttachment>() - 64usize];
["Alignment of WGPURenderPassStorageAttachment"]
[::std::mem::align_of::<WGPURenderPassStorageAttachment>() - 8usize];
["Offset of field: WGPURenderPassStorageAttachment::nextInChain"]
[::std::mem::offset_of!(WGPURenderPassStorageAttachment, nextInChain) - 0usize];
["Offset of field: WGPURenderPassStorageAttachment::offset"]
[::std::mem::offset_of!(WGPURenderPassStorageAttachment, offset) - 8usize];
["Offset of field: WGPURenderPassStorageAttachment::storage"]
[::std::mem::offset_of!(WGPURenderPassStorageAttachment, storage) - 16usize];
["Offset of field: WGPURenderPassStorageAttachment::loadOp"]
[::std::mem::offset_of!(WGPURenderPassStorageAttachment, loadOp) - 24usize];
["Offset of field: WGPURenderPassStorageAttachment::storeOp"]
[::std::mem::offset_of!(WGPURenderPassStorageAttachment, storeOp) - 28usize];
["Offset of field: WGPURenderPassStorageAttachment::clearValue"]
[::std::mem::offset_of!(WGPURenderPassStorageAttachment, clearValue) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURequestAdapterOptions {
pub nextInChain: *mut WGPUChainedStruct,
pub featureLevel: WGPUFeatureLevel,
pub powerPreference: WGPUPowerPreference,
pub forceFallbackAdapter: WGPUBool,
pub backendType: WGPUBackendType,
pub compatibleSurface: WGPUSurface,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURequestAdapterOptions"]
[::std::mem::size_of::<WGPURequestAdapterOptions>() - 32usize];
["Alignment of WGPURequestAdapterOptions"]
[::std::mem::align_of::<WGPURequestAdapterOptions>() - 8usize];
["Offset of field: WGPURequestAdapterOptions::nextInChain"]
[::std::mem::offset_of!(WGPURequestAdapterOptions, nextInChain) - 0usize];
["Offset of field: WGPURequestAdapterOptions::featureLevel"]
[::std::mem::offset_of!(WGPURequestAdapterOptions, featureLevel) - 8usize];
["Offset of field: WGPURequestAdapterOptions::powerPreference"]
[::std::mem::offset_of!(WGPURequestAdapterOptions, powerPreference) - 12usize];
["Offset of field: WGPURequestAdapterOptions::forceFallbackAdapter"]
[::std::mem::offset_of!(WGPURequestAdapterOptions, forceFallbackAdapter) - 16usize];
["Offset of field: WGPURequestAdapterOptions::backendType"]
[::std::mem::offset_of!(WGPURequestAdapterOptions, backendType) - 20usize];
["Offset of field: WGPURequestAdapterOptions::compatibleSurface"]
[::std::mem::offset_of!(WGPURequestAdapterOptions, compatibleSurface) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSamplerDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub addressModeU: WGPUAddressMode,
pub addressModeV: WGPUAddressMode,
pub addressModeW: WGPUAddressMode,
pub magFilter: WGPUFilterMode,
pub minFilter: WGPUFilterMode,
pub mipmapFilter: WGPUMipmapFilterMode,
pub lodMinClamp: f32,
pub lodMaxClamp: f32,
pub compare: WGPUCompareFunction,
pub maxAnisotropy: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSamplerDescriptor"][::std::mem::size_of::<WGPUSamplerDescriptor>() - 64usize];
["Alignment of WGPUSamplerDescriptor"]
[::std::mem::align_of::<WGPUSamplerDescriptor>() - 8usize];
["Offset of field: WGPUSamplerDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUSamplerDescriptor::label"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, label) - 8usize];
["Offset of field: WGPUSamplerDescriptor::addressModeU"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, addressModeU) - 24usize];
["Offset of field: WGPUSamplerDescriptor::addressModeV"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, addressModeV) - 28usize];
["Offset of field: WGPUSamplerDescriptor::addressModeW"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, addressModeW) - 32usize];
["Offset of field: WGPUSamplerDescriptor::magFilter"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, magFilter) - 36usize];
["Offset of field: WGPUSamplerDescriptor::minFilter"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, minFilter) - 40usize];
["Offset of field: WGPUSamplerDescriptor::mipmapFilter"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, mipmapFilter) - 44usize];
["Offset of field: WGPUSamplerDescriptor::lodMinClamp"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, lodMinClamp) - 48usize];
["Offset of field: WGPUSamplerDescriptor::lodMaxClamp"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, lodMaxClamp) - 52usize];
["Offset of field: WGPUSamplerDescriptor::compare"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, compare) - 56usize];
["Offset of field: WGPUSamplerDescriptor::maxAnisotropy"]
[::std::mem::offset_of!(WGPUSamplerDescriptor, maxAnisotropy) - 60usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUShaderModuleDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUShaderModuleDescriptor"]
[::std::mem::size_of::<WGPUShaderModuleDescriptor>() - 24usize];
["Alignment of WGPUShaderModuleDescriptor"]
[::std::mem::align_of::<WGPUShaderModuleDescriptor>() - 8usize];
["Offset of field: WGPUShaderModuleDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUShaderModuleDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUShaderModuleDescriptor::label"]
[::std::mem::offset_of!(WGPUShaderModuleDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedBufferMemoryDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedBufferMemoryDescriptor"]
[::std::mem::size_of::<WGPUSharedBufferMemoryDescriptor>() - 24usize];
["Alignment of WGPUSharedBufferMemoryDescriptor"]
[::std::mem::align_of::<WGPUSharedBufferMemoryDescriptor>() - 8usize];
["Offset of field: WGPUSharedBufferMemoryDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUSharedBufferMemoryDescriptor::label"]
[::std::mem::offset_of!(WGPUSharedBufferMemoryDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceDescriptor"]
[::std::mem::size_of::<WGPUSharedFenceDescriptor>() - 24usize];
["Alignment of WGPUSharedFenceDescriptor"]
[::std::mem::align_of::<WGPUSharedFenceDescriptor>() - 8usize];
["Offset of field: WGPUSharedFenceDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUSharedFenceDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUSharedFenceDescriptor::label"]
[::std::mem::offset_of!(WGPUSharedFenceDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedFenceExportInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub type_: WGPUSharedFenceType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedFenceExportInfo"]
[::std::mem::size_of::<WGPUSharedFenceExportInfo>() - 16usize];
["Alignment of WGPUSharedFenceExportInfo"]
[::std::mem::align_of::<WGPUSharedFenceExportInfo>() - 8usize];
["Offset of field: WGPUSharedFenceExportInfo::nextInChain"]
[::std::mem::offset_of!(WGPUSharedFenceExportInfo, nextInChain) - 0usize];
["Offset of field: WGPUSharedFenceExportInfo::type_"]
[::std::mem::offset_of!(WGPUSharedFenceExportInfo, type_) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryAHardwareBufferProperties {
pub chain: WGPUChainedStruct,
pub yCbCrInfo: WGPUYCbCrVkDescriptor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryAHardwareBufferProperties"]
[::std::mem::size_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 88usize];
["Alignment of WGPUSharedTextureMemoryAHardwareBufferProperties"]
[::std::mem::align_of::<WGPUSharedTextureMemoryAHardwareBufferProperties>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryAHardwareBufferProperties, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryAHardwareBufferProperties::yCbCrInfo"][::std::mem::offset_of!(
WGPUSharedTextureMemoryAHardwareBufferProperties,
yCbCrInfo
) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryBeginAccessDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub concurrentRead: WGPUBool,
pub initialized: WGPUBool,
pub fenceCount: usize,
pub fences: *const WGPUSharedFence,
pub signaledValues: *const u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryBeginAccessDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 40usize];
["Alignment of WGPUSharedTextureMemoryBeginAccessDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryBeginAccessDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::nextInChain"][::std::mem::offset_of!(
WGPUSharedTextureMemoryBeginAccessDescriptor,
nextInChain
) - 0usize];
["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::concurrentRead"][::std::mem::offset_of!(
WGPUSharedTextureMemoryBeginAccessDescriptor,
concurrentRead
) - 8usize];
["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::initialized"][::std::mem::offset_of!(
WGPUSharedTextureMemoryBeginAccessDescriptor,
initialized
) - 12usize];
["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fenceCount"][::std::mem::offset_of!(
WGPUSharedTextureMemoryBeginAccessDescriptor,
fenceCount
) - 16usize];
["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::fences"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryBeginAccessDescriptor, fences) - 24usize];
["Offset of field: WGPUSharedTextureMemoryBeginAccessDescriptor::signaledValues"][::std::mem::offset_of!(
WGPUSharedTextureMemoryBeginAccessDescriptor,
signaledValues
) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryDmaBufDescriptor {
pub chain: WGPUChainedStruct,
pub size: WGPUExtent3D,
pub drmFormat: u32,
pub drmModifier: u64,
pub planeCount: usize,
pub planes: *const WGPUSharedTextureMemoryDmaBufPlane,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryDmaBufDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 56usize];
["Alignment of WGPUSharedTextureMemoryDmaBufDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryDmaBufDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::size"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, size) - 16usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmFormat"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmFormat) - 28usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::drmModifier"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, drmModifier) - 32usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planeCount"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planeCount) - 40usize];
["Offset of field: WGPUSharedTextureMemoryDmaBufDescriptor::planes"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDmaBufDescriptor, planes) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryMetalEndAccessState {
pub chain: WGPUChainedStruct,
pub commandsScheduledFuture: WGPUFuture,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryMetalEndAccessState"]
[::std::mem::size_of::<WGPUSharedTextureMemoryMetalEndAccessState>() - 24usize];
["Alignment of WGPUSharedTextureMemoryMetalEndAccessState"]
[::std::mem::align_of::<WGPUSharedTextureMemoryMetalEndAccessState>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryMetalEndAccessState::chain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryMetalEndAccessState, chain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryMetalEndAccessState::commandsScheduledFuture"][::std::mem::offset_of!(
WGPUSharedTextureMemoryMetalEndAccessState,
commandsScheduledFuture
)
- 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSurfaceDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSurfaceDescriptor"][::std::mem::size_of::<WGPUSurfaceDescriptor>() - 24usize];
["Alignment of WGPUSurfaceDescriptor"]
[::std::mem::align_of::<WGPUSurfaceDescriptor>() - 8usize];
["Offset of field: WGPUSurfaceDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUSurfaceDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUSurfaceDescriptor::label"]
[::std::mem::offset_of!(WGPUSurfaceDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTexelCopyBufferInfo {
pub layout: WGPUTexelCopyBufferLayout,
pub buffer: WGPUBuffer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTexelCopyBufferInfo"][::std::mem::size_of::<WGPUTexelCopyBufferInfo>() - 24usize];
["Alignment of WGPUTexelCopyBufferInfo"]
[::std::mem::align_of::<WGPUTexelCopyBufferInfo>() - 8usize];
["Offset of field: WGPUTexelCopyBufferInfo::layout"]
[::std::mem::offset_of!(WGPUTexelCopyBufferInfo, layout) - 0usize];
["Offset of field: WGPUTexelCopyBufferInfo::buffer"]
[::std::mem::offset_of!(WGPUTexelCopyBufferInfo, buffer) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTexelCopyTextureInfo {
pub texture: WGPUTexture,
pub mipLevel: u32,
pub origin: WGPUOrigin3D,
pub aspect: WGPUTextureAspect,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTexelCopyTextureInfo"]
[::std::mem::size_of::<WGPUTexelCopyTextureInfo>() - 32usize];
["Alignment of WGPUTexelCopyTextureInfo"]
[::std::mem::align_of::<WGPUTexelCopyTextureInfo>() - 8usize];
["Offset of field: WGPUTexelCopyTextureInfo::texture"]
[::std::mem::offset_of!(WGPUTexelCopyTextureInfo, texture) - 0usize];
["Offset of field: WGPUTexelCopyTextureInfo::mipLevel"]
[::std::mem::offset_of!(WGPUTexelCopyTextureInfo, mipLevel) - 8usize];
["Offset of field: WGPUTexelCopyTextureInfo::origin"]
[::std::mem::offset_of!(WGPUTexelCopyTextureInfo, origin) - 12usize];
["Offset of field: WGPUTexelCopyTextureInfo::aspect"]
[::std::mem::offset_of!(WGPUTexelCopyTextureInfo, aspect) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureComponentSwizzleDescriptor {
pub chain: WGPUChainedStruct,
pub swizzle: WGPUTextureComponentSwizzle,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTextureComponentSwizzleDescriptor"]
[::std::mem::size_of::<WGPUTextureComponentSwizzleDescriptor>() - 32usize];
["Alignment of WGPUTextureComponentSwizzleDescriptor"]
[::std::mem::align_of::<WGPUTextureComponentSwizzleDescriptor>() - 8usize];
["Offset of field: WGPUTextureComponentSwizzleDescriptor::chain"]
[::std::mem::offset_of!(WGPUTextureComponentSwizzleDescriptor, chain) - 0usize];
["Offset of field: WGPUTextureComponentSwizzleDescriptor::swizzle"]
[::std::mem::offset_of!(WGPUTextureComponentSwizzleDescriptor, swizzle) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub usage: WGPUTextureUsage,
pub dimension: WGPUTextureDimension,
pub size: WGPUExtent3D,
pub format: WGPUTextureFormat,
pub mipLevelCount: u32,
pub sampleCount: u32,
pub viewFormatCount: usize,
pub viewFormats: *const WGPUTextureFormat,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTextureDescriptor"][::std::mem::size_of::<WGPUTextureDescriptor>() - 80usize];
["Alignment of WGPUTextureDescriptor"]
[::std::mem::align_of::<WGPUTextureDescriptor>() - 8usize];
["Offset of field: WGPUTextureDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUTextureDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUTextureDescriptor::label"]
[::std::mem::offset_of!(WGPUTextureDescriptor, label) - 8usize];
["Offset of field: WGPUTextureDescriptor::usage"]
[::std::mem::offset_of!(WGPUTextureDescriptor, usage) - 24usize];
["Offset of field: WGPUTextureDescriptor::dimension"]
[::std::mem::offset_of!(WGPUTextureDescriptor, dimension) - 32usize];
["Offset of field: WGPUTextureDescriptor::size"]
[::std::mem::offset_of!(WGPUTextureDescriptor, size) - 36usize];
["Offset of field: WGPUTextureDescriptor::format"]
[::std::mem::offset_of!(WGPUTextureDescriptor, format) - 48usize];
["Offset of field: WGPUTextureDescriptor::mipLevelCount"]
[::std::mem::offset_of!(WGPUTextureDescriptor, mipLevelCount) - 52usize];
["Offset of field: WGPUTextureDescriptor::sampleCount"]
[::std::mem::offset_of!(WGPUTextureDescriptor, sampleCount) - 56usize];
["Offset of field: WGPUTextureDescriptor::viewFormatCount"]
[::std::mem::offset_of!(WGPUTextureDescriptor, viewFormatCount) - 64usize];
["Offset of field: WGPUTextureDescriptor::viewFormats"]
[::std::mem::offset_of!(WGPUTextureDescriptor, viewFormats) - 72usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUVertexBufferLayout {
pub nextInChain: *mut WGPUChainedStruct,
pub stepMode: WGPUVertexStepMode,
pub arrayStride: u64,
pub attributeCount: usize,
pub attributes: *const WGPUVertexAttribute,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUVertexBufferLayout"][::std::mem::size_of::<WGPUVertexBufferLayout>() - 40usize];
["Alignment of WGPUVertexBufferLayout"]
[::std::mem::align_of::<WGPUVertexBufferLayout>() - 8usize];
["Offset of field: WGPUVertexBufferLayout::nextInChain"]
[::std::mem::offset_of!(WGPUVertexBufferLayout, nextInChain) - 0usize];
["Offset of field: WGPUVertexBufferLayout::stepMode"]
[::std::mem::offset_of!(WGPUVertexBufferLayout, stepMode) - 8usize];
["Offset of field: WGPUVertexBufferLayout::arrayStride"]
[::std::mem::offset_of!(WGPUVertexBufferLayout, arrayStride) - 16usize];
["Offset of field: WGPUVertexBufferLayout::attributeCount"]
[::std::mem::offset_of!(WGPUVertexBufferLayout, attributeCount) - 24usize];
["Offset of field: WGPUVertexBufferLayout::attributes"]
[::std::mem::offset_of!(WGPUVertexBufferLayout, attributes) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUAdapterInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub vendor: WGPUStringView,
pub architecture: WGPUStringView,
pub device: WGPUStringView,
pub description: WGPUStringView,
pub backendType: WGPUBackendType,
pub adapterType: WGPUAdapterType,
pub vendorID: u32,
pub deviceID: u32,
pub subgroupMinSize: u32,
pub subgroupMaxSize: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUAdapterInfo"][::std::mem::size_of::<WGPUAdapterInfo>() - 96usize];
["Alignment of WGPUAdapterInfo"][::std::mem::align_of::<WGPUAdapterInfo>() - 8usize];
["Offset of field: WGPUAdapterInfo::nextInChain"]
[::std::mem::offset_of!(WGPUAdapterInfo, nextInChain) - 0usize];
["Offset of field: WGPUAdapterInfo::vendor"]
[::std::mem::offset_of!(WGPUAdapterInfo, vendor) - 8usize];
["Offset of field: WGPUAdapterInfo::architecture"]
[::std::mem::offset_of!(WGPUAdapterInfo, architecture) - 24usize];
["Offset of field: WGPUAdapterInfo::device"]
[::std::mem::offset_of!(WGPUAdapterInfo, device) - 40usize];
["Offset of field: WGPUAdapterInfo::description"]
[::std::mem::offset_of!(WGPUAdapterInfo, description) - 56usize];
["Offset of field: WGPUAdapterInfo::backendType"]
[::std::mem::offset_of!(WGPUAdapterInfo, backendType) - 72usize];
["Offset of field: WGPUAdapterInfo::adapterType"]
[::std::mem::offset_of!(WGPUAdapterInfo, adapterType) - 76usize];
["Offset of field: WGPUAdapterInfo::vendorID"]
[::std::mem::offset_of!(WGPUAdapterInfo, vendorID) - 80usize];
["Offset of field: WGPUAdapterInfo::deviceID"]
[::std::mem::offset_of!(WGPUAdapterInfo, deviceID) - 84usize];
["Offset of field: WGPUAdapterInfo::subgroupMinSize"]
[::std::mem::offset_of!(WGPUAdapterInfo, subgroupMinSize) - 88usize];
["Offset of field: WGPUAdapterInfo::subgroupMaxSize"]
[::std::mem::offset_of!(WGPUAdapterInfo, subgroupMaxSize) - 92usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBindGroupDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub layout: WGPUBindGroupLayout,
pub entryCount: usize,
pub entries: *const WGPUBindGroupEntry,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBindGroupDescriptor"][::std::mem::size_of::<WGPUBindGroupDescriptor>() - 48usize];
["Alignment of WGPUBindGroupDescriptor"]
[::std::mem::align_of::<WGPUBindGroupDescriptor>() - 8usize];
["Offset of field: WGPUBindGroupDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUBindGroupDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUBindGroupDescriptor::label"]
[::std::mem::offset_of!(WGPUBindGroupDescriptor, label) - 8usize];
["Offset of field: WGPUBindGroupDescriptor::layout"]
[::std::mem::offset_of!(WGPUBindGroupDescriptor, layout) - 24usize];
["Offset of field: WGPUBindGroupDescriptor::entryCount"]
[::std::mem::offset_of!(WGPUBindGroupDescriptor, entryCount) - 32usize];
["Offset of field: WGPUBindGroupDescriptor::entries"]
[::std::mem::offset_of!(WGPUBindGroupDescriptor, entries) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUBindGroupLayoutDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub entryCount: usize,
pub entries: *const WGPUBindGroupLayoutEntry,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUBindGroupLayoutDescriptor"]
[::std::mem::size_of::<WGPUBindGroupLayoutDescriptor>() - 40usize];
["Alignment of WGPUBindGroupLayoutDescriptor"]
[::std::mem::align_of::<WGPUBindGroupLayoutDescriptor>() - 8usize];
["Offset of field: WGPUBindGroupLayoutDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUBindGroupLayoutDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUBindGroupLayoutDescriptor::label"]
[::std::mem::offset_of!(WGPUBindGroupLayoutDescriptor, label) - 8usize];
["Offset of field: WGPUBindGroupLayoutDescriptor::entryCount"]
[::std::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entryCount) - 24usize];
["Offset of field: WGPUBindGroupLayoutDescriptor::entries"]
[::std::mem::offset_of!(WGPUBindGroupLayoutDescriptor, entries) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUColorTargetState {
pub nextInChain: *mut WGPUChainedStruct,
pub format: WGPUTextureFormat,
pub blend: *const WGPUBlendState,
pub writeMask: WGPUColorWriteMask,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUColorTargetState"][::std::mem::size_of::<WGPUColorTargetState>() - 32usize];
["Alignment of WGPUColorTargetState"][::std::mem::align_of::<WGPUColorTargetState>() - 8usize];
["Offset of field: WGPUColorTargetState::nextInChain"]
[::std::mem::offset_of!(WGPUColorTargetState, nextInChain) - 0usize];
["Offset of field: WGPUColorTargetState::format"]
[::std::mem::offset_of!(WGPUColorTargetState, format) - 8usize];
["Offset of field: WGPUColorTargetState::blend"]
[::std::mem::offset_of!(WGPUColorTargetState, blend) - 16usize];
["Offset of field: WGPUColorTargetState::writeMask"]
[::std::mem::offset_of!(WGPUColorTargetState, writeMask) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUCompilationInfo {
pub nextInChain: *mut WGPUChainedStruct,
pub messageCount: usize,
pub messages: *const WGPUCompilationMessage,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUCompilationInfo"][::std::mem::size_of::<WGPUCompilationInfo>() - 24usize];
["Alignment of WGPUCompilationInfo"][::std::mem::align_of::<WGPUCompilationInfo>() - 8usize];
["Offset of field: WGPUCompilationInfo::nextInChain"]
[::std::mem::offset_of!(WGPUCompilationInfo, nextInChain) - 0usize];
["Offset of field: WGPUCompilationInfo::messageCount"]
[::std::mem::offset_of!(WGPUCompilationInfo, messageCount) - 8usize];
["Offset of field: WGPUCompilationInfo::messages"]
[::std::mem::offset_of!(WGPUCompilationInfo, messages) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUComputePipelineDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub layout: WGPUPipelineLayout,
pub compute: WGPUComputeState,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUComputePipelineDescriptor"]
[::std::mem::size_of::<WGPUComputePipelineDescriptor>() - 80usize];
["Alignment of WGPUComputePipelineDescriptor"]
[::std::mem::align_of::<WGPUComputePipelineDescriptor>() - 8usize];
["Offset of field: WGPUComputePipelineDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUComputePipelineDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUComputePipelineDescriptor::label"]
[::std::mem::offset_of!(WGPUComputePipelineDescriptor, label) - 8usize];
["Offset of field: WGPUComputePipelineDescriptor::layout"]
[::std::mem::offset_of!(WGPUComputePipelineDescriptor, layout) - 24usize];
["Offset of field: WGPUComputePipelineDescriptor::compute"]
[::std::mem::offset_of!(WGPUComputePipelineDescriptor, compute) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDawnFormatCapabilities {
pub nextInChain: *mut WGPUChainedStruct,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDawnFormatCapabilities"]
[::std::mem::size_of::<WGPUDawnFormatCapabilities>() - 8usize];
["Alignment of WGPUDawnFormatCapabilities"]
[::std::mem::align_of::<WGPUDawnFormatCapabilities>() - 8usize];
["Offset of field: WGPUDawnFormatCapabilities::nextInChain"]
[::std::mem::offset_of!(WGPUDawnFormatCapabilities, nextInChain) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUDeviceDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub requiredFeatureCount: usize,
pub requiredFeatures: *const WGPUFeatureName,
pub requiredLimits: *const WGPULimits,
pub defaultQueue: WGPUQueueDescriptor,
pub deviceLostCallbackInfo: WGPUDeviceLostCallbackInfo,
pub uncapturedErrorCallbackInfo: WGPUUncapturedErrorCallbackInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUDeviceDescriptor"][::std::mem::size_of::<WGPUDeviceDescriptor>() - 144usize];
["Alignment of WGPUDeviceDescriptor"][::std::mem::align_of::<WGPUDeviceDescriptor>() - 8usize];
["Offset of field: WGPUDeviceDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUDeviceDescriptor::label"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, label) - 8usize];
["Offset of field: WGPUDeviceDescriptor::requiredFeatureCount"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatureCount) - 24usize];
["Offset of field: WGPUDeviceDescriptor::requiredFeatures"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, requiredFeatures) - 32usize];
["Offset of field: WGPUDeviceDescriptor::requiredLimits"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, requiredLimits) - 40usize];
["Offset of field: WGPUDeviceDescriptor::defaultQueue"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, defaultQueue) - 48usize];
["Offset of field: WGPUDeviceDescriptor::deviceLostCallbackInfo"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, deviceLostCallbackInfo) - 72usize];
["Offset of field: WGPUDeviceDescriptor::uncapturedErrorCallbackInfo"]
[::std::mem::offset_of!(WGPUDeviceDescriptor, uncapturedErrorCallbackInfo) - 112usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUPipelineLayoutDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub bindGroupLayoutCount: usize,
pub bindGroupLayouts: *const WGPUBindGroupLayout,
pub immediateSize: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUPipelineLayoutDescriptor"]
[::std::mem::size_of::<WGPUPipelineLayoutDescriptor>() - 48usize];
["Alignment of WGPUPipelineLayoutDescriptor"]
[::std::mem::align_of::<WGPUPipelineLayoutDescriptor>() - 8usize];
["Offset of field: WGPUPipelineLayoutDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUPipelineLayoutDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUPipelineLayoutDescriptor::label"]
[::std::mem::offset_of!(WGPUPipelineLayoutDescriptor, label) - 8usize];
["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayoutCount"]
[::std::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayoutCount) - 24usize];
["Offset of field: WGPUPipelineLayoutDescriptor::bindGroupLayouts"]
[::std::mem::offset_of!(WGPUPipelineLayoutDescriptor, bindGroupLayouts) - 32usize];
["Offset of field: WGPUPipelineLayoutDescriptor::immediateSize"]
[::std::mem::offset_of!(WGPUPipelineLayoutDescriptor, immediateSize) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassPixelLocalStorage {
pub chain: WGPUChainedStruct,
pub totalPixelLocalStorageSize: u64,
pub storageAttachmentCount: usize,
pub storageAttachments: *const WGPURenderPassStorageAttachment,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassPixelLocalStorage"]
[::std::mem::size_of::<WGPURenderPassPixelLocalStorage>() - 40usize];
["Alignment of WGPURenderPassPixelLocalStorage"]
[::std::mem::align_of::<WGPURenderPassPixelLocalStorage>() - 8usize];
["Offset of field: WGPURenderPassPixelLocalStorage::chain"]
[::std::mem::offset_of!(WGPURenderPassPixelLocalStorage, chain) - 0usize];
["Offset of field: WGPURenderPassPixelLocalStorage::totalPixelLocalStorageSize"][::std::mem::offset_of!(
WGPURenderPassPixelLocalStorage,
totalPixelLocalStorageSize
) - 16usize];
["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachmentCount"]
[::std::mem::offset_of!(WGPURenderPassPixelLocalStorage, storageAttachmentCount) - 24usize];
["Offset of field: WGPURenderPassPixelLocalStorage::storageAttachments"]
[::std::mem::offset_of!(WGPURenderPassPixelLocalStorage, storageAttachments) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryDescriptor"]
[::std::mem::size_of::<WGPUSharedTextureMemoryDescriptor>() - 24usize];
["Alignment of WGPUSharedTextureMemoryDescriptor"]
[::std::mem::align_of::<WGPUSharedTextureMemoryDescriptor>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryDescriptor::label"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryDescriptor, label) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryEndAccessState {
pub nextInChain: *mut WGPUChainedStruct,
pub initialized: WGPUBool,
pub fenceCount: usize,
pub fences: *const WGPUSharedFence,
pub signaledValues: *const u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryEndAccessState"]
[::std::mem::size_of::<WGPUSharedTextureMemoryEndAccessState>() - 40usize];
["Alignment of WGPUSharedTextureMemoryEndAccessState"]
[::std::mem::align_of::<WGPUSharedTextureMemoryEndAccessState>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryEndAccessState::nextInChain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, nextInChain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryEndAccessState::initialized"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, initialized) - 8usize];
["Offset of field: WGPUSharedTextureMemoryEndAccessState::fenceCount"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fenceCount) - 16usize];
["Offset of field: WGPUSharedTextureMemoryEndAccessState::fences"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, fences) - 24usize];
["Offset of field: WGPUSharedTextureMemoryEndAccessState::signaledValues"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryEndAccessState, signaledValues) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUSharedTextureMemoryProperties {
pub nextInChain: *mut WGPUChainedStruct,
pub usage: WGPUTextureUsage,
pub size: WGPUExtent3D,
pub format: WGPUTextureFormat,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUSharedTextureMemoryProperties"]
[::std::mem::size_of::<WGPUSharedTextureMemoryProperties>() - 32usize];
["Alignment of WGPUSharedTextureMemoryProperties"]
[::std::mem::align_of::<WGPUSharedTextureMemoryProperties>() - 8usize];
["Offset of field: WGPUSharedTextureMemoryProperties::nextInChain"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryProperties, nextInChain) - 0usize];
["Offset of field: WGPUSharedTextureMemoryProperties::usage"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryProperties, usage) - 8usize];
["Offset of field: WGPUSharedTextureMemoryProperties::size"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryProperties, size) - 16usize];
["Offset of field: WGPUSharedTextureMemoryProperties::format"]
[::std::mem::offset_of!(WGPUSharedTextureMemoryProperties, format) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUTextureViewDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub format: WGPUTextureFormat,
pub dimension: WGPUTextureViewDimension,
pub baseMipLevel: u32,
pub mipLevelCount: u32,
pub baseArrayLayer: u32,
pub arrayLayerCount: u32,
pub aspect: WGPUTextureAspect,
pub usage: WGPUTextureUsage,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUTextureViewDescriptor"]
[::std::mem::size_of::<WGPUTextureViewDescriptor>() - 64usize];
["Alignment of WGPUTextureViewDescriptor"]
[::std::mem::align_of::<WGPUTextureViewDescriptor>() - 8usize];
["Offset of field: WGPUTextureViewDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, nextInChain) - 0usize];
["Offset of field: WGPUTextureViewDescriptor::label"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, label) - 8usize];
["Offset of field: WGPUTextureViewDescriptor::format"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, format) - 24usize];
["Offset of field: WGPUTextureViewDescriptor::dimension"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, dimension) - 28usize];
["Offset of field: WGPUTextureViewDescriptor::baseMipLevel"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, baseMipLevel) - 32usize];
["Offset of field: WGPUTextureViewDescriptor::mipLevelCount"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, mipLevelCount) - 36usize];
["Offset of field: WGPUTextureViewDescriptor::baseArrayLayer"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, baseArrayLayer) - 40usize];
["Offset of field: WGPUTextureViewDescriptor::arrayLayerCount"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, arrayLayerCount) - 44usize];
["Offset of field: WGPUTextureViewDescriptor::aspect"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, aspect) - 48usize];
["Offset of field: WGPUTextureViewDescriptor::usage"]
[::std::mem::offset_of!(WGPUTextureViewDescriptor, usage) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUVertexState {
pub nextInChain: *mut WGPUChainedStruct,
pub module: WGPUShaderModule,
pub entryPoint: WGPUStringView,
pub constantCount: usize,
pub constants: *const WGPUConstantEntry,
pub bufferCount: usize,
pub buffers: *const WGPUVertexBufferLayout,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUVertexState"][::std::mem::size_of::<WGPUVertexState>() - 64usize];
["Alignment of WGPUVertexState"][::std::mem::align_of::<WGPUVertexState>() - 8usize];
["Offset of field: WGPUVertexState::nextInChain"]
[::std::mem::offset_of!(WGPUVertexState, nextInChain) - 0usize];
["Offset of field: WGPUVertexState::module"]
[::std::mem::offset_of!(WGPUVertexState, module) - 8usize];
["Offset of field: WGPUVertexState::entryPoint"]
[::std::mem::offset_of!(WGPUVertexState, entryPoint) - 16usize];
["Offset of field: WGPUVertexState::constantCount"]
[::std::mem::offset_of!(WGPUVertexState, constantCount) - 32usize];
["Offset of field: WGPUVertexState::constants"]
[::std::mem::offset_of!(WGPUVertexState, constants) - 40usize];
["Offset of field: WGPUVertexState::bufferCount"]
[::std::mem::offset_of!(WGPUVertexState, bufferCount) - 48usize];
["Offset of field: WGPUVertexState::buffers"]
[::std::mem::offset_of!(WGPUVertexState, buffers) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPUFragmentState {
pub nextInChain: *mut WGPUChainedStruct,
pub module: WGPUShaderModule,
pub entryPoint: WGPUStringView,
pub constantCount: usize,
pub constants: *const WGPUConstantEntry,
pub targetCount: usize,
pub targets: *const WGPUColorTargetState,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPUFragmentState"][::std::mem::size_of::<WGPUFragmentState>() - 64usize];
["Alignment of WGPUFragmentState"][::std::mem::align_of::<WGPUFragmentState>() - 8usize];
["Offset of field: WGPUFragmentState::nextInChain"]
[::std::mem::offset_of!(WGPUFragmentState, nextInChain) - 0usize];
["Offset of field: WGPUFragmentState::module"]
[::std::mem::offset_of!(WGPUFragmentState, module) - 8usize];
["Offset of field: WGPUFragmentState::entryPoint"]
[::std::mem::offset_of!(WGPUFragmentState, entryPoint) - 16usize];
["Offset of field: WGPUFragmentState::constantCount"]
[::std::mem::offset_of!(WGPUFragmentState, constantCount) - 32usize];
["Offset of field: WGPUFragmentState::constants"]
[::std::mem::offset_of!(WGPUFragmentState, constants) - 40usize];
["Offset of field: WGPUFragmentState::targetCount"]
[::std::mem::offset_of!(WGPUFragmentState, targetCount) - 48usize];
["Offset of field: WGPUFragmentState::targets"]
[::std::mem::offset_of!(WGPUFragmentState, targets) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPassDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub colorAttachmentCount: usize,
pub colorAttachments: *const WGPURenderPassColorAttachment,
pub depthStencilAttachment: *const WGPURenderPassDepthStencilAttachment,
pub occlusionQuerySet: WGPUQuerySet,
pub timestampWrites: *const WGPUPassTimestampWrites,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPassDescriptor"]
[::std::mem::size_of::<WGPURenderPassDescriptor>() - 64usize];
["Alignment of WGPURenderPassDescriptor"]
[::std::mem::align_of::<WGPURenderPassDescriptor>() - 8usize];
["Offset of field: WGPURenderPassDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPURenderPassDescriptor, nextInChain) - 0usize];
["Offset of field: WGPURenderPassDescriptor::label"]
[::std::mem::offset_of!(WGPURenderPassDescriptor, label) - 8usize];
["Offset of field: WGPURenderPassDescriptor::colorAttachmentCount"]
[::std::mem::offset_of!(WGPURenderPassDescriptor, colorAttachmentCount) - 24usize];
["Offset of field: WGPURenderPassDescriptor::colorAttachments"]
[::std::mem::offset_of!(WGPURenderPassDescriptor, colorAttachments) - 32usize];
["Offset of field: WGPURenderPassDescriptor::depthStencilAttachment"]
[::std::mem::offset_of!(WGPURenderPassDescriptor, depthStencilAttachment) - 40usize];
["Offset of field: WGPURenderPassDescriptor::occlusionQuerySet"]
[::std::mem::offset_of!(WGPURenderPassDescriptor, occlusionQuerySet) - 48usize];
["Offset of field: WGPURenderPassDescriptor::timestampWrites"]
[::std::mem::offset_of!(WGPURenderPassDescriptor, timestampWrites) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WGPURenderPipelineDescriptor {
pub nextInChain: *mut WGPUChainedStruct,
pub label: WGPUStringView,
pub layout: WGPUPipelineLayout,
pub vertex: WGPUVertexState,
pub primitive: WGPUPrimitiveState,
pub depthStencil: *const WGPUDepthStencilState,
pub multisample: WGPUMultisampleState,
pub fragment: *const WGPUFragmentState,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of WGPURenderPipelineDescriptor"]
[::std::mem::size_of::<WGPURenderPipelineDescriptor>() - 168usize];
["Alignment of WGPURenderPipelineDescriptor"]
[::std::mem::align_of::<WGPURenderPipelineDescriptor>() - 8usize];
["Offset of field: WGPURenderPipelineDescriptor::nextInChain"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, nextInChain) - 0usize];
["Offset of field: WGPURenderPipelineDescriptor::label"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, label) - 8usize];
["Offset of field: WGPURenderPipelineDescriptor::layout"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, layout) - 24usize];
["Offset of field: WGPURenderPipelineDescriptor::vertex"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, vertex) - 32usize];
["Offset of field: WGPURenderPipelineDescriptor::primitive"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, primitive) - 96usize];
["Offset of field: WGPURenderPipelineDescriptor::depthStencil"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, depthStencil) - 128usize];
["Offset of field: WGPURenderPipelineDescriptor::multisample"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, multisample) - 136usize];
["Offset of field: WGPURenderPipelineDescriptor::fragment"]
[::std::mem::offset_of!(WGPURenderPipelineDescriptor, fragment) - 160usize];
};
pub type WGPUProcCreateInstance = ::std::option::Option<
unsafe extern "C" fn(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance,
>;
pub type WGPUProcGetInstanceFeatures =
::std::option::Option<unsafe extern "C" fn(features: *mut WGPUSupportedInstanceFeatures)>;
pub type WGPUProcGetInstanceLimits =
::std::option::Option<unsafe extern "C" fn(limits: *mut WGPUInstanceLimits) -> WGPUStatus>;
pub type WGPUProcHasInstanceFeature =
::std::option::Option<unsafe extern "C" fn(feature: WGPUInstanceFeatureName) -> WGPUBool>;
pub type WGPUProcGetProcAddress =
::std::option::Option<unsafe extern "C" fn(procName: WGPUStringView) -> WGPUProc>;
pub type WGPUProcAdapterCreateDevice = ::std::option::Option<
unsafe extern "C" fn(
adapter: WGPUAdapter,
descriptor: *const WGPUDeviceDescriptor,
) -> WGPUDevice,
>;
pub type WGPUProcAdapterGetFeatures = ::std::option::Option<
unsafe extern "C" fn(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures),
>;
pub type WGPUProcAdapterGetFormatCapabilities = ::std::option::Option<
unsafe extern "C" fn(
adapter: WGPUAdapter,
format: WGPUTextureFormat,
capabilities: *mut WGPUDawnFormatCapabilities,
) -> WGPUStatus,
>;
pub type WGPUProcAdapterGetInfo = ::std::option::Option<
unsafe extern "C" fn(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus,
>;
pub type WGPUProcAdapterGetInstance =
::std::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter) -> WGPUInstance>;
pub type WGPUProcAdapterGetLimits = ::std::option::Option<
unsafe extern "C" fn(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus,
>;
pub type WGPUProcAdapterHasFeature = ::std::option::Option<
unsafe extern "C" fn(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool,
>;
pub type WGPUProcAdapterRequestDevice = ::std::option::Option<
unsafe extern "C" fn(
adapter: WGPUAdapter,
descriptor: *const WGPUDeviceDescriptor,
callbackInfo: WGPURequestDeviceCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcAdapterAddRef = ::std::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
pub type WGPUProcAdapterRelease = ::std::option::Option<unsafe extern "C" fn(adapter: WGPUAdapter)>;
pub type WGPUProcAdapterInfoFreeMembers =
::std::option::Option<unsafe extern "C" fn(adapterInfo: WGPUAdapterInfo)>;
pub type WGPUProcAdapterPropertiesMemoryHeapsFreeMembers = ::std::option::Option<
unsafe extern "C" fn(adapterPropertiesMemoryHeaps: WGPUAdapterPropertiesMemoryHeaps),
>;
pub type WGPUProcAdapterPropertiesSubgroupMatrixConfigsFreeMembers = ::std::option::Option<
unsafe extern "C" fn(
adapterPropertiesSubgroupMatrixConfigs: WGPUAdapterPropertiesSubgroupMatrixConfigs,
),
>;
pub type WGPUProcBindGroupSetLabel =
::std::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup, label: WGPUStringView)>;
pub type WGPUProcBindGroupAddRef =
::std::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
pub type WGPUProcBindGroupRelease =
::std::option::Option<unsafe extern "C" fn(bindGroup: WGPUBindGroup)>;
pub type WGPUProcBindGroupLayoutSetLabel = ::std::option::Option<
unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView),
>;
pub type WGPUProcBindGroupLayoutAddRef =
::std::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
pub type WGPUProcBindGroupLayoutRelease =
::std::option::Option<unsafe extern "C" fn(bindGroupLayout: WGPUBindGroupLayout)>;
pub type WGPUProcBufferCreateTexelView = ::std::option::Option<
unsafe extern "C" fn(
buffer: WGPUBuffer,
descriptor: *const WGPUTexelBufferViewDescriptor,
) -> WGPUTexelBufferView,
>;
pub type WGPUProcBufferDestroy = ::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
pub type WGPUProcBufferGetConstMappedRange = ::std::option::Option<
unsafe extern "C" fn(
buffer: WGPUBuffer,
offset: usize,
size: usize,
) -> *const ::std::os::raw::c_void,
>;
pub type WGPUProcBufferGetMappedRange = ::std::option::Option<
unsafe extern "C" fn(
buffer: WGPUBuffer,
offset: usize,
size: usize,
) -> *mut ::std::os::raw::c_void,
>;
pub type WGPUProcBufferGetMapState =
::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferMapState>;
pub type WGPUProcBufferGetSize =
::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> u64>;
pub type WGPUProcBufferGetUsage =
::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer) -> WGPUBufferUsage>;
pub type WGPUProcBufferMapAsync = ::std::option::Option<
unsafe extern "C" fn(
buffer: WGPUBuffer,
mode: WGPUMapMode,
offset: usize,
size: usize,
callbackInfo: WGPUBufferMapCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcBufferReadMappedRange = ::std::option::Option<
unsafe extern "C" fn(
buffer: WGPUBuffer,
offset: usize,
data: *mut ::std::os::raw::c_void,
size: usize,
) -> WGPUStatus,
>;
pub type WGPUProcBufferSetLabel =
::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer, label: WGPUStringView)>;
pub type WGPUProcBufferUnmap = ::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
pub type WGPUProcBufferWriteMappedRange = ::std::option::Option<
unsafe extern "C" fn(
buffer: WGPUBuffer,
offset: usize,
data: *const ::std::os::raw::c_void,
size: usize,
) -> WGPUStatus,
>;
pub type WGPUProcBufferAddRef = ::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
pub type WGPUProcBufferRelease = ::std::option::Option<unsafe extern "C" fn(buffer: WGPUBuffer)>;
pub type WGPUProcCommandBufferSetLabel = ::std::option::Option<
unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer, label: WGPUStringView),
>;
pub type WGPUProcCommandBufferAddRef =
::std::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
pub type WGPUProcCommandBufferRelease =
::std::option::Option<unsafe extern "C" fn(commandBuffer: WGPUCommandBuffer)>;
pub type WGPUProcCommandEncoderBeginComputePass = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
descriptor: *const WGPUComputePassDescriptor,
) -> WGPUComputePassEncoder,
>;
pub type WGPUProcCommandEncoderBeginRenderPass = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
descriptor: *const WGPURenderPassDescriptor,
) -> WGPURenderPassEncoder,
>;
pub type WGPUProcCommandEncoderClearBuffer = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
buffer: WGPUBuffer,
offset: u64,
size: u64,
),
>;
pub type WGPUProcCommandEncoderCopyBufferToBuffer = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
source: WGPUBuffer,
sourceOffset: u64,
destination: WGPUBuffer,
destinationOffset: u64,
size: u64,
),
>;
pub type WGPUProcCommandEncoderCopyBufferToTexture = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
source: *const WGPUTexelCopyBufferInfo,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
),
>;
pub type WGPUProcCommandEncoderCopyTextureToBuffer = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
source: *const WGPUTexelCopyTextureInfo,
destination: *const WGPUTexelCopyBufferInfo,
copySize: *const WGPUExtent3D,
),
>;
pub type WGPUProcCommandEncoderCopyTextureToTexture = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
source: *const WGPUTexelCopyTextureInfo,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
),
>;
pub type WGPUProcCommandEncoderFinish = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
descriptor: *const WGPUCommandBufferDescriptor,
) -> WGPUCommandBuffer,
>;
pub type WGPUProcCommandEncoderInjectValidationError = ::std::option::Option<
unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, message: WGPUStringView),
>;
pub type WGPUProcCommandEncoderInsertDebugMarker = ::std::option::Option<
unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, markerLabel: WGPUStringView),
>;
pub type WGPUProcCommandEncoderPopDebugGroup =
::std::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
pub type WGPUProcCommandEncoderPushDebugGroup = ::std::option::Option<
unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, groupLabel: WGPUStringView),
>;
pub type WGPUProcCommandEncoderResolveQuerySet = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
querySet: WGPUQuerySet,
firstQuery: u32,
queryCount: u32,
destination: WGPUBuffer,
destinationOffset: u64,
),
>;
pub type WGPUProcCommandEncoderSetLabel = ::std::option::Option<
unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder, label: WGPUStringView),
>;
pub type WGPUProcCommandEncoderWriteBuffer = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
buffer: WGPUBuffer,
bufferOffset: u64,
data: *const u8,
size: u64,
),
>;
pub type WGPUProcCommandEncoderWriteTimestamp = ::std::option::Option<
unsafe extern "C" fn(
commandEncoder: WGPUCommandEncoder,
querySet: WGPUQuerySet,
queryIndex: u32,
),
>;
pub type WGPUProcCommandEncoderAddRef =
::std::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
pub type WGPUProcCommandEncoderRelease =
::std::option::Option<unsafe extern "C" fn(commandEncoder: WGPUCommandEncoder)>;
pub type WGPUProcComputePassEncoderDispatchWorkgroups = ::std::option::Option<
unsafe extern "C" fn(
computePassEncoder: WGPUComputePassEncoder,
workgroupCountX: u32,
workgroupCountY: u32,
workgroupCountZ: u32,
),
>;
pub type WGPUProcComputePassEncoderDispatchWorkgroupsIndirect = ::std::option::Option<
unsafe extern "C" fn(
computePassEncoder: WGPUComputePassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
),
>;
pub type WGPUProcComputePassEncoderEnd =
::std::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
pub type WGPUProcComputePassEncoderInsertDebugMarker = ::std::option::Option<
unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, markerLabel: WGPUStringView),
>;
pub type WGPUProcComputePassEncoderPopDebugGroup =
::std::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
pub type WGPUProcComputePassEncoderPushDebugGroup = ::std::option::Option<
unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, groupLabel: WGPUStringView),
>;
pub type WGPUProcComputePassEncoderSetBindGroup = ::std::option::Option<
unsafe extern "C" fn(
computePassEncoder: WGPUComputePassEncoder,
groupIndex: u32,
group: WGPUBindGroup,
dynamicOffsetCount: usize,
dynamicOffsets: *const u32,
),
>;
pub type WGPUProcComputePassEncoderSetImmediates = ::std::option::Option<
unsafe extern "C" fn(
computePassEncoder: WGPUComputePassEncoder,
offset: u32,
data: *const ::std::os::raw::c_void,
size: usize,
),
>;
pub type WGPUProcComputePassEncoderSetLabel = ::std::option::Option<
unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, label: WGPUStringView),
>;
pub type WGPUProcComputePassEncoderSetPipeline = ::std::option::Option<
unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, pipeline: WGPUComputePipeline),
>;
pub type WGPUProcComputePassEncoderSetResourceTable = ::std::option::Option<
unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder, table: WGPUResourceTable),
>;
pub type WGPUProcComputePassEncoderWriteTimestamp = ::std::option::Option<
unsafe extern "C" fn(
computePassEncoder: WGPUComputePassEncoder,
querySet: WGPUQuerySet,
queryIndex: u32,
),
>;
pub type WGPUProcComputePassEncoderAddRef =
::std::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
pub type WGPUProcComputePassEncoderRelease =
::std::option::Option<unsafe extern "C" fn(computePassEncoder: WGPUComputePassEncoder)>;
pub type WGPUProcComputePipelineGetBindGroupLayout = ::std::option::Option<
unsafe extern "C" fn(
computePipeline: WGPUComputePipeline,
groupIndex: u32,
) -> WGPUBindGroupLayout,
>;
pub type WGPUProcComputePipelineSetLabel = ::std::option::Option<
unsafe extern "C" fn(computePipeline: WGPUComputePipeline, label: WGPUStringView),
>;
pub type WGPUProcComputePipelineAddRef =
::std::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
pub type WGPUProcComputePipelineRelease =
::std::option::Option<unsafe extern "C" fn(computePipeline: WGPUComputePipeline)>;
pub type WGPUProcDawnDrmFormatCapabilitiesFreeMembers = ::std::option::Option<
unsafe extern "C" fn(dawnDrmFormatCapabilities: WGPUDawnDrmFormatCapabilities),
>;
pub type WGPUProcDeviceCreateBindGroup = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUBindGroupDescriptor,
) -> WGPUBindGroup,
>;
pub type WGPUProcDeviceCreateBindGroupLayout = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUBindGroupLayoutDescriptor,
) -> WGPUBindGroupLayout,
>;
pub type WGPUProcDeviceCreateBuffer = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
>;
pub type WGPUProcDeviceCreateCommandEncoder = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUCommandEncoderDescriptor,
) -> WGPUCommandEncoder,
>;
pub type WGPUProcDeviceCreateComputePipeline = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUComputePipelineDescriptor,
) -> WGPUComputePipeline,
>;
pub type WGPUProcDeviceCreateComputePipelineAsync = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUComputePipelineDescriptor,
callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcDeviceCreateErrorBuffer = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUBufferDescriptor) -> WGPUBuffer,
>;
pub type WGPUProcDeviceCreateErrorExternalTexture =
::std::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUExternalTexture>;
pub type WGPUProcDeviceCreateErrorShaderModule = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUShaderModuleDescriptor,
errorMessage: WGPUStringView,
) -> WGPUShaderModule,
>;
pub type WGPUProcDeviceCreateErrorTexture = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUTextureDescriptor,
) -> WGPUTexture,
>;
pub type WGPUProcDeviceCreateExternalTexture = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
) -> WGPUExternalTexture,
>;
pub type WGPUProcDeviceCreatePipelineLayout = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUPipelineLayoutDescriptor,
) -> WGPUPipelineLayout,
>;
pub type WGPUProcDeviceCreateQuerySet = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUQuerySetDescriptor,
) -> WGPUQuerySet,
>;
pub type WGPUProcDeviceCreateRenderBundleEncoder = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPURenderBundleEncoderDescriptor,
) -> WGPURenderBundleEncoder,
>;
pub type WGPUProcDeviceCreateRenderPipeline = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPURenderPipelineDescriptor,
) -> WGPURenderPipeline,
>;
pub type WGPUProcDeviceCreateRenderPipelineAsync = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPURenderPipelineDescriptor,
callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcDeviceCreateResourceTable = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUResourceTableDescriptor,
) -> WGPUResourceTable,
>;
pub type WGPUProcDeviceCreateSampler = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUSamplerDescriptor,
) -> WGPUSampler,
>;
pub type WGPUProcDeviceCreateShaderModule = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUShaderModuleDescriptor,
) -> WGPUShaderModule,
>;
pub type WGPUProcDeviceCreateTexture = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUTextureDescriptor,
) -> WGPUTexture,
>;
pub type WGPUProcDeviceDestroy = ::std::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
pub type WGPUProcDeviceForceLoss = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, type_: WGPUDeviceLostReason, message: WGPUStringView),
>;
pub type WGPUProcDeviceGetAdapter =
::std::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUAdapter>;
pub type WGPUProcDeviceGetAdapterInfo = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, adapterInfo: *mut WGPUAdapterInfo) -> WGPUStatus,
>;
pub type WGPUProcDeviceGetAHardwareBufferProperties = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
handle: *mut ::std::os::raw::c_void,
properties: *mut WGPUAHardwareBufferProperties,
) -> WGPUStatus,
>;
pub type WGPUProcDeviceGetFeatures = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, features: *mut WGPUSupportedFeatures),
>;
pub type WGPUProcDeviceGetLimits = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus,
>;
pub type WGPUProcDeviceGetLostFuture =
::std::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUFuture>;
pub type WGPUProcDeviceGetQueue =
::std::option::Option<unsafe extern "C" fn(device: WGPUDevice) -> WGPUQueue>;
pub type WGPUProcDeviceHasFeature = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool,
>;
pub type WGPUProcDeviceImportSharedBufferMemory = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUSharedBufferMemoryDescriptor,
) -> WGPUSharedBufferMemory,
>;
pub type WGPUProcDeviceImportSharedFence = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUSharedFenceDescriptor,
) -> WGPUSharedFence,
>;
pub type WGPUProcDeviceImportSharedTextureMemory = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
descriptor: *const WGPUSharedTextureMemoryDescriptor,
) -> WGPUSharedTextureMemory,
>;
pub type WGPUProcDeviceInjectError = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView),
>;
pub type WGPUProcDevicePopErrorScope = ::std::option::Option<
unsafe extern "C" fn(
device: WGPUDevice,
callbackInfo: WGPUPopErrorScopeCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcDevicePushErrorScope =
::std::option::Option<unsafe extern "C" fn(device: WGPUDevice, filter: WGPUErrorFilter)>;
pub type WGPUProcDeviceSetLabel =
::std::option::Option<unsafe extern "C" fn(device: WGPUDevice, label: WGPUStringView)>;
pub type WGPUProcDeviceSetLoggingCallback = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo),
>;
pub type WGPUProcDeviceTick = ::std::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
pub type WGPUProcDeviceValidateTextureDescriptor = ::std::option::Option<
unsafe extern "C" fn(device: WGPUDevice, descriptor: *const WGPUTextureDescriptor),
>;
pub type WGPUProcDeviceAddRef = ::std::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
pub type WGPUProcDeviceRelease = ::std::option::Option<unsafe extern "C" fn(device: WGPUDevice)>;
pub type WGPUProcExternalTextureDestroy =
::std::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
pub type WGPUProcExternalTextureExpire =
::std::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
pub type WGPUProcExternalTextureRefresh =
::std::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
pub type WGPUProcExternalTextureSetLabel = ::std::option::Option<
unsafe extern "C" fn(externalTexture: WGPUExternalTexture, label: WGPUStringView),
>;
pub type WGPUProcExternalTextureAddRef =
::std::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
pub type WGPUProcExternalTextureRelease =
::std::option::Option<unsafe extern "C" fn(externalTexture: WGPUExternalTexture)>;
pub type WGPUProcInstanceCreateSurface = ::std::option::Option<
unsafe extern "C" fn(
instance: WGPUInstance,
descriptor: *const WGPUSurfaceDescriptor,
) -> WGPUSurface,
>;
pub type WGPUProcInstanceGetWGSLLanguageFeatures = ::std::option::Option<
unsafe extern "C" fn(instance: WGPUInstance, features: *mut WGPUSupportedWGSLLanguageFeatures),
>;
pub type WGPUProcInstanceHasWGSLLanguageFeature = ::std::option::Option<
unsafe extern "C" fn(instance: WGPUInstance, feature: WGPUWGSLLanguageFeatureName) -> WGPUBool,
>;
pub type WGPUProcInstanceProcessEvents =
::std::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
pub type WGPUProcInstanceRequestAdapter = ::std::option::Option<
unsafe extern "C" fn(
instance: WGPUInstance,
options: *const WGPURequestAdapterOptions,
callbackInfo: WGPURequestAdapterCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcInstanceWaitAny = ::std::option::Option<
unsafe extern "C" fn(
instance: WGPUInstance,
futureCount: usize,
futures: *mut WGPUFutureWaitInfo,
timeoutNS: u64,
) -> WGPUWaitStatus,
>;
pub type WGPUProcInstanceAddRef =
::std::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
pub type WGPUProcInstanceRelease =
::std::option::Option<unsafe extern "C" fn(instance: WGPUInstance)>;
pub type WGPUProcPipelineLayoutSetLabel = ::std::option::Option<
unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView),
>;
pub type WGPUProcPipelineLayoutAddRef =
::std::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
pub type WGPUProcPipelineLayoutRelease =
::std::option::Option<unsafe extern "C" fn(pipelineLayout: WGPUPipelineLayout)>;
pub type WGPUProcQuerySetDestroy =
::std::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
pub type WGPUProcQuerySetGetCount =
::std::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> u32>;
pub type WGPUProcQuerySetGetType =
::std::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet) -> WGPUQueryType>;
pub type WGPUProcQuerySetSetLabel =
::std::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet, label: WGPUStringView)>;
pub type WGPUProcQuerySetAddRef =
::std::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
pub type WGPUProcQuerySetRelease =
::std::option::Option<unsafe extern "C" fn(querySet: WGPUQuerySet)>;
pub type WGPUProcQueueCopyExternalTextureForBrowser = ::std::option::Option<
unsafe extern "C" fn(
queue: WGPUQueue,
source: *const WGPUImageCopyExternalTexture,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
options: *const WGPUCopyTextureForBrowserOptions,
),
>;
pub type WGPUProcQueueCopyTextureForBrowser = ::std::option::Option<
unsafe extern "C" fn(
queue: WGPUQueue,
source: *const WGPUTexelCopyTextureInfo,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
options: *const WGPUCopyTextureForBrowserOptions,
),
>;
pub type WGPUProcQueueOnSubmittedWorkDone = ::std::option::Option<
unsafe extern "C" fn(
queue: WGPUQueue,
callbackInfo: WGPUQueueWorkDoneCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcQueueSetLabel =
::std::option::Option<unsafe extern "C" fn(queue: WGPUQueue, label: WGPUStringView)>;
pub type WGPUProcQueueSubmit = ::std::option::Option<
unsafe extern "C" fn(queue: WGPUQueue, commandCount: usize, commands: *const WGPUCommandBuffer),
>;
pub type WGPUProcQueueWriteBuffer = ::std::option::Option<
unsafe extern "C" fn(
queue: WGPUQueue,
buffer: WGPUBuffer,
bufferOffset: u64,
data: *const ::std::os::raw::c_void,
size: usize,
),
>;
pub type WGPUProcQueueWriteTexture = ::std::option::Option<
unsafe extern "C" fn(
queue: WGPUQueue,
destination: *const WGPUTexelCopyTextureInfo,
data: *const ::std::os::raw::c_void,
dataSize: usize,
dataLayout: *const WGPUTexelCopyBufferLayout,
writeSize: *const WGPUExtent3D,
),
>;
pub type WGPUProcQueueAddRef = ::std::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
pub type WGPUProcQueueRelease = ::std::option::Option<unsafe extern "C" fn(queue: WGPUQueue)>;
pub type WGPUProcRenderBundleSetLabel = ::std::option::Option<
unsafe extern "C" fn(renderBundle: WGPURenderBundle, label: WGPUStringView),
>;
pub type WGPUProcRenderBundleAddRef =
::std::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
pub type WGPUProcRenderBundleRelease =
::std::option::Option<unsafe extern "C" fn(renderBundle: WGPURenderBundle)>;
pub type WGPUProcRenderBundleEncoderDraw = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
vertexCount: u32,
instanceCount: u32,
firstVertex: u32,
firstInstance: u32,
),
>;
pub type WGPUProcRenderBundleEncoderDrawIndexed = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
indexCount: u32,
instanceCount: u32,
firstIndex: u32,
baseVertex: i32,
firstInstance: u32,
),
>;
pub type WGPUProcRenderBundleEncoderDrawIndexedIndirect = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
),
>;
pub type WGPUProcRenderBundleEncoderDrawIndirect = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
),
>;
pub type WGPUProcRenderBundleEncoderFinish = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
descriptor: *const WGPURenderBundleDescriptor,
) -> WGPURenderBundle,
>;
pub type WGPUProcRenderBundleEncoderInsertDebugMarker = ::std::option::Option<
unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, markerLabel: WGPUStringView),
>;
pub type WGPUProcRenderBundleEncoderPopDebugGroup =
::std::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
pub type WGPUProcRenderBundleEncoderPushDebugGroup = ::std::option::Option<
unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, groupLabel: WGPUStringView),
>;
pub type WGPUProcRenderBundleEncoderSetBindGroup = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
groupIndex: u32,
group: WGPUBindGroup,
dynamicOffsetCount: usize,
dynamicOffsets: *const u32,
),
>;
pub type WGPUProcRenderBundleEncoderSetImmediates = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
offset: u32,
data: *const ::std::os::raw::c_void,
size: usize,
),
>;
pub type WGPUProcRenderBundleEncoderSetIndexBuffer = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
buffer: WGPUBuffer,
format: WGPUIndexFormat,
offset: u64,
size: u64,
),
>;
pub type WGPUProcRenderBundleEncoderSetLabel = ::std::option::Option<
unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, label: WGPUStringView),
>;
pub type WGPUProcRenderBundleEncoderSetPipeline = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
pipeline: WGPURenderPipeline,
),
>;
pub type WGPUProcRenderBundleEncoderSetResourceTable = ::std::option::Option<
unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder, table: WGPUResourceTable),
>;
pub type WGPUProcRenderBundleEncoderSetVertexBuffer = ::std::option::Option<
unsafe extern "C" fn(
renderBundleEncoder: WGPURenderBundleEncoder,
slot: u32,
buffer: WGPUBuffer,
offset: u64,
size: u64,
),
>;
pub type WGPUProcRenderBundleEncoderAddRef =
::std::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
pub type WGPUProcRenderBundleEncoderRelease =
::std::option::Option<unsafe extern "C" fn(renderBundleEncoder: WGPURenderBundleEncoder)>;
pub type WGPUProcRenderPassEncoderBeginOcclusionQuery = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, queryIndex: u32),
>;
pub type WGPUProcRenderPassEncoderDraw = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
vertexCount: u32,
instanceCount: u32,
firstVertex: u32,
firstInstance: u32,
),
>;
pub type WGPUProcRenderPassEncoderDrawIndexed = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
indexCount: u32,
instanceCount: u32,
firstIndex: u32,
baseVertex: i32,
firstInstance: u32,
),
>;
pub type WGPUProcRenderPassEncoderDrawIndexedIndirect = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
),
>;
pub type WGPUProcRenderPassEncoderDrawIndirect = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
),
>;
pub type WGPUProcRenderPassEncoderEnd =
::std::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
pub type WGPUProcRenderPassEncoderEndOcclusionQuery =
::std::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
pub type WGPUProcRenderPassEncoderExecuteBundles = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
bundleCount: usize,
bundles: *const WGPURenderBundle,
),
>;
pub type WGPUProcRenderPassEncoderInsertDebugMarker = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, markerLabel: WGPUStringView),
>;
pub type WGPUProcRenderPassEncoderMultiDrawIndexedIndirect = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
maxDrawCount: u32,
drawCountBuffer: WGPUBuffer,
drawCountBufferOffset: u64,
),
>;
pub type WGPUProcRenderPassEncoderMultiDrawIndirect = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
maxDrawCount: u32,
drawCountBuffer: WGPUBuffer,
drawCountBufferOffset: u64,
),
>;
pub type WGPUProcRenderPassEncoderPixelLocalStorageBarrier =
::std::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
pub type WGPUProcRenderPassEncoderPopDebugGroup =
::std::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
pub type WGPUProcRenderPassEncoderPushDebugGroup = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, groupLabel: WGPUStringView),
>;
pub type WGPUProcRenderPassEncoderSetBindGroup = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
groupIndex: u32,
group: WGPUBindGroup,
dynamicOffsetCount: usize,
dynamicOffsets: *const u32,
),
>;
pub type WGPUProcRenderPassEncoderSetBlendConstant = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, color: *const WGPUColor),
>;
pub type WGPUProcRenderPassEncoderSetImmediates = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
offset: u32,
data: *const ::std::os::raw::c_void,
size: usize,
),
>;
pub type WGPUProcRenderPassEncoderSetIndexBuffer = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
buffer: WGPUBuffer,
format: WGPUIndexFormat,
offset: u64,
size: u64,
),
>;
pub type WGPUProcRenderPassEncoderSetLabel = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, label: WGPUStringView),
>;
pub type WGPUProcRenderPassEncoderSetPipeline = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, pipeline: WGPURenderPipeline),
>;
pub type WGPUProcRenderPassEncoderSetResourceTable = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, table: WGPUResourceTable),
>;
pub type WGPUProcRenderPassEncoderSetScissorRect = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
x: u32,
y: u32,
width: u32,
height: u32,
),
>;
pub type WGPUProcRenderPassEncoderSetStencilReference = ::std::option::Option<
unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder, reference: u32),
>;
pub type WGPUProcRenderPassEncoderSetVertexBuffer = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
slot: u32,
buffer: WGPUBuffer,
offset: u64,
size: u64,
),
>;
pub type WGPUProcRenderPassEncoderSetViewport = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
x: f32,
y: f32,
width: f32,
height: f32,
minDepth: f32,
maxDepth: f32,
),
>;
pub type WGPUProcRenderPassEncoderWriteTimestamp = ::std::option::Option<
unsafe extern "C" fn(
renderPassEncoder: WGPURenderPassEncoder,
querySet: WGPUQuerySet,
queryIndex: u32,
),
>;
pub type WGPUProcRenderPassEncoderAddRef =
::std::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
pub type WGPUProcRenderPassEncoderRelease =
::std::option::Option<unsafe extern "C" fn(renderPassEncoder: WGPURenderPassEncoder)>;
pub type WGPUProcRenderPipelineGetBindGroupLayout = ::std::option::Option<
unsafe extern "C" fn(
renderPipeline: WGPURenderPipeline,
groupIndex: u32,
) -> WGPUBindGroupLayout,
>;
pub type WGPUProcRenderPipelineSetLabel = ::std::option::Option<
unsafe extern "C" fn(renderPipeline: WGPURenderPipeline, label: WGPUStringView),
>;
pub type WGPUProcRenderPipelineAddRef =
::std::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
pub type WGPUProcRenderPipelineRelease =
::std::option::Option<unsafe extern "C" fn(renderPipeline: WGPURenderPipeline)>;
pub type WGPUProcResourceTableDestroy =
::std::option::Option<unsafe extern "C" fn(resourceTable: WGPUResourceTable)>;
pub type WGPUProcResourceTableGetSize =
::std::option::Option<unsafe extern "C" fn(resourceTable: WGPUResourceTable) -> u32>;
pub type WGPUProcResourceTableInsertBinding = ::std::option::Option<
unsafe extern "C" fn(
resourceTable: WGPUResourceTable,
resource: *const WGPUBindingResource,
) -> u32,
>;
pub type WGPUProcResourceTableRemoveBinding = ::std::option::Option<
unsafe extern "C" fn(resourceTable: WGPUResourceTable, slot: u32) -> WGPUStatus,
>;
pub type WGPUProcResourceTableUpdate = ::std::option::Option<
unsafe extern "C" fn(
resourceTable: WGPUResourceTable,
slot: u32,
resource: *const WGPUBindingResource,
) -> WGPUStatus,
>;
pub type WGPUProcResourceTableAddRef =
::std::option::Option<unsafe extern "C" fn(resourceTable: WGPUResourceTable)>;
pub type WGPUProcResourceTableRelease =
::std::option::Option<unsafe extern "C" fn(resourceTable: WGPUResourceTable)>;
pub type WGPUProcSamplerSetLabel =
::std::option::Option<unsafe extern "C" fn(sampler: WGPUSampler, label: WGPUStringView)>;
pub type WGPUProcSamplerAddRef = ::std::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
pub type WGPUProcSamplerRelease = ::std::option::Option<unsafe extern "C" fn(sampler: WGPUSampler)>;
pub type WGPUProcShaderModuleGetCompilationInfo = ::std::option::Option<
unsafe extern "C" fn(
shaderModule: WGPUShaderModule,
callbackInfo: WGPUCompilationInfoCallbackInfo,
) -> WGPUFuture,
>;
pub type WGPUProcShaderModuleSetLabel = ::std::option::Option<
unsafe extern "C" fn(shaderModule: WGPUShaderModule, label: WGPUStringView),
>;
pub type WGPUProcShaderModuleAddRef =
::std::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
pub type WGPUProcShaderModuleRelease =
::std::option::Option<unsafe extern "C" fn(shaderModule: WGPUShaderModule)>;
pub type WGPUProcSharedBufferMemoryBeginAccess = ::std::option::Option<
unsafe extern "C" fn(
sharedBufferMemory: WGPUSharedBufferMemory,
buffer: WGPUBuffer,
descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
) -> WGPUStatus,
>;
pub type WGPUProcSharedBufferMemoryCreateBuffer = ::std::option::Option<
unsafe extern "C" fn(
sharedBufferMemory: WGPUSharedBufferMemory,
descriptor: *const WGPUBufferDescriptor,
) -> WGPUBuffer,
>;
pub type WGPUProcSharedBufferMemoryEndAccess = ::std::option::Option<
unsafe extern "C" fn(
sharedBufferMemory: WGPUSharedBufferMemory,
buffer: WGPUBuffer,
descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
) -> WGPUStatus,
>;
pub type WGPUProcSharedBufferMemoryGetProperties = ::std::option::Option<
unsafe extern "C" fn(
sharedBufferMemory: WGPUSharedBufferMemory,
properties: *mut WGPUSharedBufferMemoryProperties,
) -> WGPUStatus,
>;
pub type WGPUProcSharedBufferMemoryIsDeviceLost = ::std::option::Option<
unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory) -> WGPUBool,
>;
pub type WGPUProcSharedBufferMemorySetLabel = ::std::option::Option<
unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory, label: WGPUStringView),
>;
pub type WGPUProcSharedBufferMemoryAddRef =
::std::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
pub type WGPUProcSharedBufferMemoryRelease =
::std::option::Option<unsafe extern "C" fn(sharedBufferMemory: WGPUSharedBufferMemory)>;
pub type WGPUProcSharedBufferMemoryEndAccessStateFreeMembers = ::std::option::Option<
unsafe extern "C" fn(sharedBufferMemoryEndAccessState: WGPUSharedBufferMemoryEndAccessState),
>;
pub type WGPUProcSharedFenceExportInfo = ::std::option::Option<
unsafe extern "C" fn(sharedFence: WGPUSharedFence, info: *mut WGPUSharedFenceExportInfo),
>;
pub type WGPUProcSharedFenceSetLabel = ::std::option::Option<
unsafe extern "C" fn(sharedFence: WGPUSharedFence, label: WGPUStringView),
>;
pub type WGPUProcSharedFenceAddRef =
::std::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
pub type WGPUProcSharedFenceRelease =
::std::option::Option<unsafe extern "C" fn(sharedFence: WGPUSharedFence)>;
pub type WGPUProcSharedTextureMemoryBeginAccess = ::std::option::Option<
unsafe extern "C" fn(
sharedTextureMemory: WGPUSharedTextureMemory,
texture: WGPUTexture,
descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
) -> WGPUStatus,
>;
pub type WGPUProcSharedTextureMemoryCreateTexture = ::std::option::Option<
unsafe extern "C" fn(
sharedTextureMemory: WGPUSharedTextureMemory,
descriptor: *const WGPUTextureDescriptor,
) -> WGPUTexture,
>;
pub type WGPUProcSharedTextureMemoryEndAccess = ::std::option::Option<
unsafe extern "C" fn(
sharedTextureMemory: WGPUSharedTextureMemory,
texture: WGPUTexture,
descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
) -> WGPUStatus,
>;
pub type WGPUProcSharedTextureMemoryGetProperties = ::std::option::Option<
unsafe extern "C" fn(
sharedTextureMemory: WGPUSharedTextureMemory,
properties: *mut WGPUSharedTextureMemoryProperties,
) -> WGPUStatus,
>;
pub type WGPUProcSharedTextureMemoryIsDeviceLost = ::std::option::Option<
unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory) -> WGPUBool,
>;
pub type WGPUProcSharedTextureMemorySetLabel = ::std::option::Option<
unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory, label: WGPUStringView),
>;
pub type WGPUProcSharedTextureMemoryAddRef =
::std::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
pub type WGPUProcSharedTextureMemoryRelease =
::std::option::Option<unsafe extern "C" fn(sharedTextureMemory: WGPUSharedTextureMemory)>;
pub type WGPUProcSharedTextureMemoryEndAccessStateFreeMembers = ::std::option::Option<
unsafe extern "C" fn(sharedTextureMemoryEndAccessState: WGPUSharedTextureMemoryEndAccessState),
>;
pub type WGPUProcSupportedFeaturesFreeMembers =
::std::option::Option<unsafe extern "C" fn(supportedFeatures: WGPUSupportedFeatures)>;
pub type WGPUProcSupportedInstanceFeaturesFreeMembers = ::std::option::Option<
unsafe extern "C" fn(supportedInstanceFeatures: WGPUSupportedInstanceFeatures),
>;
pub type WGPUProcSupportedWGSLLanguageFeaturesFreeMembers = ::std::option::Option<
unsafe extern "C" fn(supportedWGSLLanguageFeatures: WGPUSupportedWGSLLanguageFeatures),
>;
pub type WGPUProcSurfaceConfigure = ::std::option::Option<
unsafe extern "C" fn(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration),
>;
pub type WGPUProcSurfaceGetCapabilities = ::std::option::Option<
unsafe extern "C" fn(
surface: WGPUSurface,
adapter: WGPUAdapter,
capabilities: *mut WGPUSurfaceCapabilities,
) -> WGPUStatus,
>;
pub type WGPUProcSurfaceGetCurrentTexture = ::std::option::Option<
unsafe extern "C" fn(surface: WGPUSurface, surfaceTexture: *mut WGPUSurfaceTexture),
>;
pub type WGPUProcSurfacePresent =
::std::option::Option<unsafe extern "C" fn(surface: WGPUSurface) -> WGPUStatus>;
pub type WGPUProcSurfaceSetLabel =
::std::option::Option<unsafe extern "C" fn(surface: WGPUSurface, label: WGPUStringView)>;
pub type WGPUProcSurfaceUnconfigure =
::std::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
pub type WGPUProcSurfaceAddRef = ::std::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
pub type WGPUProcSurfaceRelease = ::std::option::Option<unsafe extern "C" fn(surface: WGPUSurface)>;
pub type WGPUProcSurfaceCapabilitiesFreeMembers =
::std::option::Option<unsafe extern "C" fn(surfaceCapabilities: WGPUSurfaceCapabilities)>;
pub type WGPUProcTexelBufferViewSetLabel = ::std::option::Option<
unsafe extern "C" fn(texelBufferView: WGPUTexelBufferView, label: WGPUStringView),
>;
pub type WGPUProcTexelBufferViewAddRef =
::std::option::Option<unsafe extern "C" fn(texelBufferView: WGPUTexelBufferView)>;
pub type WGPUProcTexelBufferViewRelease =
::std::option::Option<unsafe extern "C" fn(texelBufferView: WGPUTexelBufferView)>;
pub type WGPUProcTextureCreateErrorView = ::std::option::Option<
unsafe extern "C" fn(
texture: WGPUTexture,
descriptor: *const WGPUTextureViewDescriptor,
) -> WGPUTextureView,
>;
pub type WGPUProcTextureCreateView = ::std::option::Option<
unsafe extern "C" fn(
texture: WGPUTexture,
descriptor: *const WGPUTextureViewDescriptor,
) -> WGPUTextureView,
>;
pub type WGPUProcTextureDestroy = ::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
pub type WGPUProcTextureGetDepthOrArrayLayers =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
pub type WGPUProcTextureGetDimension =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureDimension>;
pub type WGPUProcTextureGetFormat =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureFormat>;
pub type WGPUProcTextureGetHeight =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
pub type WGPUProcTextureGetMipLevelCount =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
pub type WGPUProcTextureGetSampleCount =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
pub type WGPUProcTextureGetTextureBindingViewDimension =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureViewDimension>;
pub type WGPUProcTextureGetUsage =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> WGPUTextureUsage>;
pub type WGPUProcTextureGetWidth =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture) -> u32>;
pub type WGPUProcTexturePin =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture, usage: WGPUTextureUsage)>;
pub type WGPUProcTextureSetLabel =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture, label: WGPUStringView)>;
pub type WGPUProcTextureSetOwnershipForMemoryDump =
::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture, ownerGuid: u64)>;
pub type WGPUProcTextureUnpin = ::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
pub type WGPUProcTextureAddRef = ::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
pub type WGPUProcTextureRelease = ::std::option::Option<unsafe extern "C" fn(texture: WGPUTexture)>;
pub type WGPUProcTextureViewSetLabel = ::std::option::Option<
unsafe extern "C" fn(textureView: WGPUTextureView, label: WGPUStringView),
>;
pub type WGPUProcTextureViewAddRef =
::std::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
pub type WGPUProcTextureViewRelease =
::std::option::Option<unsafe extern "C" fn(textureView: WGPUTextureView)>;
unsafe extern "C" {
pub fn wgpuCreateInstance(descriptor: *const WGPUInstanceDescriptor) -> WGPUInstance;
}
unsafe extern "C" {
pub fn wgpuGetInstanceFeatures(features: *mut WGPUSupportedInstanceFeatures);
}
unsafe extern "C" {
pub fn wgpuGetInstanceLimits(limits: *mut WGPUInstanceLimits) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuHasInstanceFeature(feature: WGPUInstanceFeatureName) -> WGPUBool;
}
unsafe extern "C" {
pub fn wgpuGetProcAddress(procName: WGPUStringView) -> WGPUProc;
}
unsafe extern "C" {
pub fn wgpuAdapterCreateDevice(
adapter: WGPUAdapter,
descriptor: *const WGPUDeviceDescriptor,
) -> WGPUDevice;
}
unsafe extern "C" {
pub fn wgpuAdapterGetFeatures(adapter: WGPUAdapter, features: *mut WGPUSupportedFeatures);
}
unsafe extern "C" {
pub fn wgpuAdapterGetFormatCapabilities(
adapter: WGPUAdapter,
format: WGPUTextureFormat,
capabilities: *mut WGPUDawnFormatCapabilities,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuAdapterGetInfo(adapter: WGPUAdapter, info: *mut WGPUAdapterInfo) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuAdapterGetInstance(adapter: WGPUAdapter) -> WGPUInstance;
}
unsafe extern "C" {
pub fn wgpuAdapterGetLimits(adapter: WGPUAdapter, limits: *mut WGPULimits) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuAdapterHasFeature(adapter: WGPUAdapter, feature: WGPUFeatureName) -> WGPUBool;
}
unsafe extern "C" {
pub fn wgpuAdapterRequestDevice(
adapter: WGPUAdapter,
descriptor: *const WGPUDeviceDescriptor,
callbackInfo: WGPURequestDeviceCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuAdapterAddRef(adapter: WGPUAdapter);
}
unsafe extern "C" {
pub fn wgpuAdapterRelease(adapter: WGPUAdapter);
}
unsafe extern "C" {
pub fn wgpuAdapterInfoFreeMembers(adapterInfo: WGPUAdapterInfo);
}
unsafe extern "C" {
pub fn wgpuAdapterPropertiesMemoryHeapsFreeMembers(
adapterPropertiesMemoryHeaps: WGPUAdapterPropertiesMemoryHeaps,
);
}
unsafe extern "C" {
pub fn wgpuAdapterPropertiesSubgroupMatrixConfigsFreeMembers(
adapterPropertiesSubgroupMatrixConfigs: WGPUAdapterPropertiesSubgroupMatrixConfigs,
);
}
unsafe extern "C" {
pub fn wgpuBindGroupSetLabel(bindGroup: WGPUBindGroup, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuBindGroupAddRef(bindGroup: WGPUBindGroup);
}
unsafe extern "C" {
pub fn wgpuBindGroupRelease(bindGroup: WGPUBindGroup);
}
unsafe extern "C" {
pub fn wgpuBindGroupLayoutSetLabel(bindGroupLayout: WGPUBindGroupLayout, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuBindGroupLayoutAddRef(bindGroupLayout: WGPUBindGroupLayout);
}
unsafe extern "C" {
pub fn wgpuBindGroupLayoutRelease(bindGroupLayout: WGPUBindGroupLayout);
}
unsafe extern "C" {
pub fn wgpuBufferCreateTexelView(
buffer: WGPUBuffer,
descriptor: *const WGPUTexelBufferViewDescriptor,
) -> WGPUTexelBufferView;
}
unsafe extern "C" {
pub fn wgpuBufferDestroy(buffer: WGPUBuffer);
}
unsafe extern "C" {
pub fn wgpuBufferGetConstMappedRange(
buffer: WGPUBuffer,
offset: usize,
size: usize,
) -> *const ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn wgpuBufferGetMappedRange(
buffer: WGPUBuffer,
offset: usize,
size: usize,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn wgpuBufferGetMapState(buffer: WGPUBuffer) -> WGPUBufferMapState;
}
unsafe extern "C" {
pub fn wgpuBufferGetSize(buffer: WGPUBuffer) -> u64;
}
unsafe extern "C" {
pub fn wgpuBufferGetUsage(buffer: WGPUBuffer) -> WGPUBufferUsage;
}
unsafe extern "C" {
pub fn wgpuBufferMapAsync(
buffer: WGPUBuffer,
mode: WGPUMapMode,
offset: usize,
size: usize,
callbackInfo: WGPUBufferMapCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuBufferReadMappedRange(
buffer: WGPUBuffer,
offset: usize,
data: *mut ::std::os::raw::c_void,
size: usize,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuBufferSetLabel(buffer: WGPUBuffer, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuBufferUnmap(buffer: WGPUBuffer);
}
unsafe extern "C" {
pub fn wgpuBufferWriteMappedRange(
buffer: WGPUBuffer,
offset: usize,
data: *const ::std::os::raw::c_void,
size: usize,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuBufferAddRef(buffer: WGPUBuffer);
}
unsafe extern "C" {
pub fn wgpuBufferRelease(buffer: WGPUBuffer);
}
unsafe extern "C" {
pub fn wgpuCommandBufferSetLabel(commandBuffer: WGPUCommandBuffer, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuCommandBufferAddRef(commandBuffer: WGPUCommandBuffer);
}
unsafe extern "C" {
pub fn wgpuCommandBufferRelease(commandBuffer: WGPUCommandBuffer);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderBeginComputePass(
commandEncoder: WGPUCommandEncoder,
descriptor: *const WGPUComputePassDescriptor,
) -> WGPUComputePassEncoder;
}
unsafe extern "C" {
pub fn wgpuCommandEncoderBeginRenderPass(
commandEncoder: WGPUCommandEncoder,
descriptor: *const WGPURenderPassDescriptor,
) -> WGPURenderPassEncoder;
}
unsafe extern "C" {
pub fn wgpuCommandEncoderClearBuffer(
commandEncoder: WGPUCommandEncoder,
buffer: WGPUBuffer,
offset: u64,
size: u64,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderCopyBufferToBuffer(
commandEncoder: WGPUCommandEncoder,
source: WGPUBuffer,
sourceOffset: u64,
destination: WGPUBuffer,
destinationOffset: u64,
size: u64,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderCopyBufferToTexture(
commandEncoder: WGPUCommandEncoder,
source: *const WGPUTexelCopyBufferInfo,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderCopyTextureToBuffer(
commandEncoder: WGPUCommandEncoder,
source: *const WGPUTexelCopyTextureInfo,
destination: *const WGPUTexelCopyBufferInfo,
copySize: *const WGPUExtent3D,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderCopyTextureToTexture(
commandEncoder: WGPUCommandEncoder,
source: *const WGPUTexelCopyTextureInfo,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderFinish(
commandEncoder: WGPUCommandEncoder,
descriptor: *const WGPUCommandBufferDescriptor,
) -> WGPUCommandBuffer;
}
unsafe extern "C" {
pub fn wgpuCommandEncoderInjectValidationError(
commandEncoder: WGPUCommandEncoder,
message: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderInsertDebugMarker(
commandEncoder: WGPUCommandEncoder,
markerLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderPopDebugGroup(commandEncoder: WGPUCommandEncoder);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderPushDebugGroup(
commandEncoder: WGPUCommandEncoder,
groupLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderResolveQuerySet(
commandEncoder: WGPUCommandEncoder,
querySet: WGPUQuerySet,
firstQuery: u32,
queryCount: u32,
destination: WGPUBuffer,
destinationOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderSetLabel(commandEncoder: WGPUCommandEncoder, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderWriteBuffer(
commandEncoder: WGPUCommandEncoder,
buffer: WGPUBuffer,
bufferOffset: u64,
data: *const u8,
size: u64,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderWriteTimestamp(
commandEncoder: WGPUCommandEncoder,
querySet: WGPUQuerySet,
queryIndex: u32,
);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderAddRef(commandEncoder: WGPUCommandEncoder);
}
unsafe extern "C" {
pub fn wgpuCommandEncoderRelease(commandEncoder: WGPUCommandEncoder);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderDispatchWorkgroups(
computePassEncoder: WGPUComputePassEncoder,
workgroupCountX: u32,
workgroupCountY: u32,
workgroupCountZ: u32,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderDispatchWorkgroupsIndirect(
computePassEncoder: WGPUComputePassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderEnd(computePassEncoder: WGPUComputePassEncoder);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderInsertDebugMarker(
computePassEncoder: WGPUComputePassEncoder,
markerLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderPopDebugGroup(computePassEncoder: WGPUComputePassEncoder);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderPushDebugGroup(
computePassEncoder: WGPUComputePassEncoder,
groupLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderSetBindGroup(
computePassEncoder: WGPUComputePassEncoder,
groupIndex: u32,
group: WGPUBindGroup,
dynamicOffsetCount: usize,
dynamicOffsets: *const u32,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderSetImmediates(
computePassEncoder: WGPUComputePassEncoder,
offset: u32,
data: *const ::std::os::raw::c_void,
size: usize,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderSetLabel(
computePassEncoder: WGPUComputePassEncoder,
label: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderSetPipeline(
computePassEncoder: WGPUComputePassEncoder,
pipeline: WGPUComputePipeline,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderSetResourceTable(
computePassEncoder: WGPUComputePassEncoder,
table: WGPUResourceTable,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderWriteTimestamp(
computePassEncoder: WGPUComputePassEncoder,
querySet: WGPUQuerySet,
queryIndex: u32,
);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderAddRef(computePassEncoder: WGPUComputePassEncoder);
}
unsafe extern "C" {
pub fn wgpuComputePassEncoderRelease(computePassEncoder: WGPUComputePassEncoder);
}
unsafe extern "C" {
pub fn wgpuComputePipelineGetBindGroupLayout(
computePipeline: WGPUComputePipeline,
groupIndex: u32,
) -> WGPUBindGroupLayout;
}
unsafe extern "C" {
pub fn wgpuComputePipelineSetLabel(computePipeline: WGPUComputePipeline, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuComputePipelineAddRef(computePipeline: WGPUComputePipeline);
}
unsafe extern "C" {
pub fn wgpuComputePipelineRelease(computePipeline: WGPUComputePipeline);
}
unsafe extern "C" {
pub fn wgpuDawnDrmFormatCapabilitiesFreeMembers(
dawnDrmFormatCapabilities: WGPUDawnDrmFormatCapabilities,
);
}
unsafe extern "C" {
pub fn wgpuDeviceCreateBindGroup(
device: WGPUDevice,
descriptor: *const WGPUBindGroupDescriptor,
) -> WGPUBindGroup;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateBindGroupLayout(
device: WGPUDevice,
descriptor: *const WGPUBindGroupLayoutDescriptor,
) -> WGPUBindGroupLayout;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateBuffer(
device: WGPUDevice,
descriptor: *const WGPUBufferDescriptor,
) -> WGPUBuffer;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateCommandEncoder(
device: WGPUDevice,
descriptor: *const WGPUCommandEncoderDescriptor,
) -> WGPUCommandEncoder;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateComputePipeline(
device: WGPUDevice,
descriptor: *const WGPUComputePipelineDescriptor,
) -> WGPUComputePipeline;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateComputePipelineAsync(
device: WGPUDevice,
descriptor: *const WGPUComputePipelineDescriptor,
callbackInfo: WGPUCreateComputePipelineAsyncCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateErrorBuffer(
device: WGPUDevice,
descriptor: *const WGPUBufferDescriptor,
) -> WGPUBuffer;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateErrorExternalTexture(device: WGPUDevice) -> WGPUExternalTexture;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateErrorShaderModule(
device: WGPUDevice,
descriptor: *const WGPUShaderModuleDescriptor,
errorMessage: WGPUStringView,
) -> WGPUShaderModule;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateErrorTexture(
device: WGPUDevice,
descriptor: *const WGPUTextureDescriptor,
) -> WGPUTexture;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateExternalTexture(
device: WGPUDevice,
externalTextureDescriptor: *const WGPUExternalTextureDescriptor,
) -> WGPUExternalTexture;
}
unsafe extern "C" {
pub fn wgpuDeviceCreatePipelineLayout(
device: WGPUDevice,
descriptor: *const WGPUPipelineLayoutDescriptor,
) -> WGPUPipelineLayout;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateQuerySet(
device: WGPUDevice,
descriptor: *const WGPUQuerySetDescriptor,
) -> WGPUQuerySet;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateRenderBundleEncoder(
device: WGPUDevice,
descriptor: *const WGPURenderBundleEncoderDescriptor,
) -> WGPURenderBundleEncoder;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateRenderPipeline(
device: WGPUDevice,
descriptor: *const WGPURenderPipelineDescriptor,
) -> WGPURenderPipeline;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateRenderPipelineAsync(
device: WGPUDevice,
descriptor: *const WGPURenderPipelineDescriptor,
callbackInfo: WGPUCreateRenderPipelineAsyncCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateResourceTable(
device: WGPUDevice,
descriptor: *const WGPUResourceTableDescriptor,
) -> WGPUResourceTable;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateSampler(
device: WGPUDevice,
descriptor: *const WGPUSamplerDescriptor,
) -> WGPUSampler;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateShaderModule(
device: WGPUDevice,
descriptor: *const WGPUShaderModuleDescriptor,
) -> WGPUShaderModule;
}
unsafe extern "C" {
pub fn wgpuDeviceCreateTexture(
device: WGPUDevice,
descriptor: *const WGPUTextureDescriptor,
) -> WGPUTexture;
}
unsafe extern "C" {
pub fn wgpuDeviceDestroy(device: WGPUDevice);
}
unsafe extern "C" {
pub fn wgpuDeviceForceLoss(
device: WGPUDevice,
type_: WGPUDeviceLostReason,
message: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuDeviceGetAdapter(device: WGPUDevice) -> WGPUAdapter;
}
unsafe extern "C" {
pub fn wgpuDeviceGetAdapterInfo(
device: WGPUDevice,
adapterInfo: *mut WGPUAdapterInfo,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuDeviceGetAHardwareBufferProperties(
device: WGPUDevice,
handle: *mut ::std::os::raw::c_void,
properties: *mut WGPUAHardwareBufferProperties,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuDeviceGetFeatures(device: WGPUDevice, features: *mut WGPUSupportedFeatures);
}
unsafe extern "C" {
pub fn wgpuDeviceGetLimits(device: WGPUDevice, limits: *mut WGPULimits) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuDeviceGetLostFuture(device: WGPUDevice) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuDeviceGetQueue(device: WGPUDevice) -> WGPUQueue;
}
unsafe extern "C" {
pub fn wgpuDeviceHasFeature(device: WGPUDevice, feature: WGPUFeatureName) -> WGPUBool;
}
unsafe extern "C" {
pub fn wgpuDeviceImportSharedBufferMemory(
device: WGPUDevice,
descriptor: *const WGPUSharedBufferMemoryDescriptor,
) -> WGPUSharedBufferMemory;
}
unsafe extern "C" {
pub fn wgpuDeviceImportSharedFence(
device: WGPUDevice,
descriptor: *const WGPUSharedFenceDescriptor,
) -> WGPUSharedFence;
}
unsafe extern "C" {
pub fn wgpuDeviceImportSharedTextureMemory(
device: WGPUDevice,
descriptor: *const WGPUSharedTextureMemoryDescriptor,
) -> WGPUSharedTextureMemory;
}
unsafe extern "C" {
pub fn wgpuDeviceInjectError(device: WGPUDevice, type_: WGPUErrorType, message: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuDevicePopErrorScope(
device: WGPUDevice,
callbackInfo: WGPUPopErrorScopeCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuDevicePushErrorScope(device: WGPUDevice, filter: WGPUErrorFilter);
}
unsafe extern "C" {
pub fn wgpuDeviceSetLabel(device: WGPUDevice, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuDeviceSetLoggingCallback(device: WGPUDevice, callbackInfo: WGPULoggingCallbackInfo);
}
unsafe extern "C" {
pub fn wgpuDeviceTick(device: WGPUDevice);
}
unsafe extern "C" {
pub fn wgpuDeviceValidateTextureDescriptor(
device: WGPUDevice,
descriptor: *const WGPUTextureDescriptor,
);
}
unsafe extern "C" {
pub fn wgpuDeviceAddRef(device: WGPUDevice);
}
unsafe extern "C" {
pub fn wgpuDeviceRelease(device: WGPUDevice);
}
unsafe extern "C" {
pub fn wgpuExternalTextureDestroy(externalTexture: WGPUExternalTexture);
}
unsafe extern "C" {
pub fn wgpuExternalTextureExpire(externalTexture: WGPUExternalTexture);
}
unsafe extern "C" {
pub fn wgpuExternalTextureRefresh(externalTexture: WGPUExternalTexture);
}
unsafe extern "C" {
pub fn wgpuExternalTextureSetLabel(externalTexture: WGPUExternalTexture, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuExternalTextureAddRef(externalTexture: WGPUExternalTexture);
}
unsafe extern "C" {
pub fn wgpuExternalTextureRelease(externalTexture: WGPUExternalTexture);
}
unsafe extern "C" {
pub fn wgpuInstanceCreateSurface(
instance: WGPUInstance,
descriptor: *const WGPUSurfaceDescriptor,
) -> WGPUSurface;
}
unsafe extern "C" {
pub fn wgpuInstanceGetWGSLLanguageFeatures(
instance: WGPUInstance,
features: *mut WGPUSupportedWGSLLanguageFeatures,
);
}
unsafe extern "C" {
pub fn wgpuInstanceHasWGSLLanguageFeature(
instance: WGPUInstance,
feature: WGPUWGSLLanguageFeatureName,
) -> WGPUBool;
}
unsafe extern "C" {
pub fn wgpuInstanceProcessEvents(instance: WGPUInstance);
}
unsafe extern "C" {
pub fn wgpuInstanceRequestAdapter(
instance: WGPUInstance,
options: *const WGPURequestAdapterOptions,
callbackInfo: WGPURequestAdapterCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuInstanceWaitAny(
instance: WGPUInstance,
futureCount: usize,
futures: *mut WGPUFutureWaitInfo,
timeoutNS: u64,
) -> WGPUWaitStatus;
}
unsafe extern "C" {
pub fn wgpuInstanceAddRef(instance: WGPUInstance);
}
unsafe extern "C" {
pub fn wgpuInstanceRelease(instance: WGPUInstance);
}
unsafe extern "C" {
pub fn wgpuPipelineLayoutSetLabel(pipelineLayout: WGPUPipelineLayout, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuPipelineLayoutAddRef(pipelineLayout: WGPUPipelineLayout);
}
unsafe extern "C" {
pub fn wgpuPipelineLayoutRelease(pipelineLayout: WGPUPipelineLayout);
}
unsafe extern "C" {
pub fn wgpuQuerySetDestroy(querySet: WGPUQuerySet);
}
unsafe extern "C" {
pub fn wgpuQuerySetGetCount(querySet: WGPUQuerySet) -> u32;
}
unsafe extern "C" {
pub fn wgpuQuerySetGetType(querySet: WGPUQuerySet) -> WGPUQueryType;
}
unsafe extern "C" {
pub fn wgpuQuerySetSetLabel(querySet: WGPUQuerySet, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuQuerySetAddRef(querySet: WGPUQuerySet);
}
unsafe extern "C" {
pub fn wgpuQuerySetRelease(querySet: WGPUQuerySet);
}
unsafe extern "C" {
pub fn wgpuQueueCopyExternalTextureForBrowser(
queue: WGPUQueue,
source: *const WGPUImageCopyExternalTexture,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
options: *const WGPUCopyTextureForBrowserOptions,
);
}
unsafe extern "C" {
pub fn wgpuQueueCopyTextureForBrowser(
queue: WGPUQueue,
source: *const WGPUTexelCopyTextureInfo,
destination: *const WGPUTexelCopyTextureInfo,
copySize: *const WGPUExtent3D,
options: *const WGPUCopyTextureForBrowserOptions,
);
}
unsafe extern "C" {
pub fn wgpuQueueOnSubmittedWorkDone(
queue: WGPUQueue,
callbackInfo: WGPUQueueWorkDoneCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuQueueSetLabel(queue: WGPUQueue, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuQueueSubmit(
queue: WGPUQueue,
commandCount: usize,
commands: *const WGPUCommandBuffer,
);
}
unsafe extern "C" {
pub fn wgpuQueueWriteBuffer(
queue: WGPUQueue,
buffer: WGPUBuffer,
bufferOffset: u64,
data: *const ::std::os::raw::c_void,
size: usize,
);
}
unsafe extern "C" {
pub fn wgpuQueueWriteTexture(
queue: WGPUQueue,
destination: *const WGPUTexelCopyTextureInfo,
data: *const ::std::os::raw::c_void,
dataSize: usize,
dataLayout: *const WGPUTexelCopyBufferLayout,
writeSize: *const WGPUExtent3D,
);
}
unsafe extern "C" {
pub fn wgpuQueueAddRef(queue: WGPUQueue);
}
unsafe extern "C" {
pub fn wgpuQueueRelease(queue: WGPUQueue);
}
unsafe extern "C" {
pub fn wgpuRenderBundleSetLabel(renderBundle: WGPURenderBundle, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuRenderBundleAddRef(renderBundle: WGPURenderBundle);
}
unsafe extern "C" {
pub fn wgpuRenderBundleRelease(renderBundle: WGPURenderBundle);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderDraw(
renderBundleEncoder: WGPURenderBundleEncoder,
vertexCount: u32,
instanceCount: u32,
firstVertex: u32,
firstInstance: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderDrawIndexed(
renderBundleEncoder: WGPURenderBundleEncoder,
indexCount: u32,
instanceCount: u32,
firstIndex: u32,
baseVertex: i32,
firstInstance: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderDrawIndexedIndirect(
renderBundleEncoder: WGPURenderBundleEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderDrawIndirect(
renderBundleEncoder: WGPURenderBundleEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderFinish(
renderBundleEncoder: WGPURenderBundleEncoder,
descriptor: *const WGPURenderBundleDescriptor,
) -> WGPURenderBundle;
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderInsertDebugMarker(
renderBundleEncoder: WGPURenderBundleEncoder,
markerLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderPopDebugGroup(renderBundleEncoder: WGPURenderBundleEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderPushDebugGroup(
renderBundleEncoder: WGPURenderBundleEncoder,
groupLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderSetBindGroup(
renderBundleEncoder: WGPURenderBundleEncoder,
groupIndex: u32,
group: WGPUBindGroup,
dynamicOffsetCount: usize,
dynamicOffsets: *const u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderSetImmediates(
renderBundleEncoder: WGPURenderBundleEncoder,
offset: u32,
data: *const ::std::os::raw::c_void,
size: usize,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderSetIndexBuffer(
renderBundleEncoder: WGPURenderBundleEncoder,
buffer: WGPUBuffer,
format: WGPUIndexFormat,
offset: u64,
size: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderSetLabel(
renderBundleEncoder: WGPURenderBundleEncoder,
label: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderSetPipeline(
renderBundleEncoder: WGPURenderBundleEncoder,
pipeline: WGPURenderPipeline,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderSetResourceTable(
renderBundleEncoder: WGPURenderBundleEncoder,
table: WGPUResourceTable,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderSetVertexBuffer(
renderBundleEncoder: WGPURenderBundleEncoder,
slot: u32,
buffer: WGPUBuffer,
offset: u64,
size: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderAddRef(renderBundleEncoder: WGPURenderBundleEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderBundleEncoderRelease(renderBundleEncoder: WGPURenderBundleEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderBeginOcclusionQuery(
renderPassEncoder: WGPURenderPassEncoder,
queryIndex: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderDraw(
renderPassEncoder: WGPURenderPassEncoder,
vertexCount: u32,
instanceCount: u32,
firstVertex: u32,
firstInstance: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderDrawIndexed(
renderPassEncoder: WGPURenderPassEncoder,
indexCount: u32,
instanceCount: u32,
firstIndex: u32,
baseVertex: i32,
firstInstance: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderDrawIndexedIndirect(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderDrawIndirect(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderEnd(renderPassEncoder: WGPURenderPassEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderEndOcclusionQuery(renderPassEncoder: WGPURenderPassEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderExecuteBundles(
renderPassEncoder: WGPURenderPassEncoder,
bundleCount: usize,
bundles: *const WGPURenderBundle,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderInsertDebugMarker(
renderPassEncoder: WGPURenderPassEncoder,
markerLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderMultiDrawIndexedIndirect(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
maxDrawCount: u32,
drawCountBuffer: WGPUBuffer,
drawCountBufferOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderMultiDrawIndirect(
renderPassEncoder: WGPURenderPassEncoder,
indirectBuffer: WGPUBuffer,
indirectOffset: u64,
maxDrawCount: u32,
drawCountBuffer: WGPUBuffer,
drawCountBufferOffset: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderPixelLocalStorageBarrier(renderPassEncoder: WGPURenderPassEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderPopDebugGroup(renderPassEncoder: WGPURenderPassEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderPushDebugGroup(
renderPassEncoder: WGPURenderPassEncoder,
groupLabel: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetBindGroup(
renderPassEncoder: WGPURenderPassEncoder,
groupIndex: u32,
group: WGPUBindGroup,
dynamicOffsetCount: usize,
dynamicOffsets: *const u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetBlendConstant(
renderPassEncoder: WGPURenderPassEncoder,
color: *const WGPUColor,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetImmediates(
renderPassEncoder: WGPURenderPassEncoder,
offset: u32,
data: *const ::std::os::raw::c_void,
size: usize,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetIndexBuffer(
renderPassEncoder: WGPURenderPassEncoder,
buffer: WGPUBuffer,
format: WGPUIndexFormat,
offset: u64,
size: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetLabel(
renderPassEncoder: WGPURenderPassEncoder,
label: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetPipeline(
renderPassEncoder: WGPURenderPassEncoder,
pipeline: WGPURenderPipeline,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetResourceTable(
renderPassEncoder: WGPURenderPassEncoder,
table: WGPUResourceTable,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetScissorRect(
renderPassEncoder: WGPURenderPassEncoder,
x: u32,
y: u32,
width: u32,
height: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetStencilReference(
renderPassEncoder: WGPURenderPassEncoder,
reference: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetVertexBuffer(
renderPassEncoder: WGPURenderPassEncoder,
slot: u32,
buffer: WGPUBuffer,
offset: u64,
size: u64,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderSetViewport(
renderPassEncoder: WGPURenderPassEncoder,
x: f32,
y: f32,
width: f32,
height: f32,
minDepth: f32,
maxDepth: f32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderWriteTimestamp(
renderPassEncoder: WGPURenderPassEncoder,
querySet: WGPUQuerySet,
queryIndex: u32,
);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderAddRef(renderPassEncoder: WGPURenderPassEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderPassEncoderRelease(renderPassEncoder: WGPURenderPassEncoder);
}
unsafe extern "C" {
pub fn wgpuRenderPipelineGetBindGroupLayout(
renderPipeline: WGPURenderPipeline,
groupIndex: u32,
) -> WGPUBindGroupLayout;
}
unsafe extern "C" {
pub fn wgpuRenderPipelineSetLabel(renderPipeline: WGPURenderPipeline, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuRenderPipelineAddRef(renderPipeline: WGPURenderPipeline);
}
unsafe extern "C" {
pub fn wgpuRenderPipelineRelease(renderPipeline: WGPURenderPipeline);
}
unsafe extern "C" {
pub fn wgpuResourceTableDestroy(resourceTable: WGPUResourceTable);
}
unsafe extern "C" {
pub fn wgpuResourceTableGetSize(resourceTable: WGPUResourceTable) -> u32;
}
unsafe extern "C" {
pub fn wgpuResourceTableInsertBinding(
resourceTable: WGPUResourceTable,
resource: *const WGPUBindingResource,
) -> u32;
}
unsafe extern "C" {
pub fn wgpuResourceTableRemoveBinding(
resourceTable: WGPUResourceTable,
slot: u32,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuResourceTableUpdate(
resourceTable: WGPUResourceTable,
slot: u32,
resource: *const WGPUBindingResource,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuResourceTableAddRef(resourceTable: WGPUResourceTable);
}
unsafe extern "C" {
pub fn wgpuResourceTableRelease(resourceTable: WGPUResourceTable);
}
unsafe extern "C" {
pub fn wgpuSamplerSetLabel(sampler: WGPUSampler, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuSamplerAddRef(sampler: WGPUSampler);
}
unsafe extern "C" {
pub fn wgpuSamplerRelease(sampler: WGPUSampler);
}
unsafe extern "C" {
pub fn wgpuShaderModuleGetCompilationInfo(
shaderModule: WGPUShaderModule,
callbackInfo: WGPUCompilationInfoCallbackInfo,
) -> WGPUFuture;
}
unsafe extern "C" {
pub fn wgpuShaderModuleSetLabel(shaderModule: WGPUShaderModule, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuShaderModuleAddRef(shaderModule: WGPUShaderModule);
}
unsafe extern "C" {
pub fn wgpuShaderModuleRelease(shaderModule: WGPUShaderModule);
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryBeginAccess(
sharedBufferMemory: WGPUSharedBufferMemory,
buffer: WGPUBuffer,
descriptor: *const WGPUSharedBufferMemoryBeginAccessDescriptor,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryCreateBuffer(
sharedBufferMemory: WGPUSharedBufferMemory,
descriptor: *const WGPUBufferDescriptor,
) -> WGPUBuffer;
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryEndAccess(
sharedBufferMemory: WGPUSharedBufferMemory,
buffer: WGPUBuffer,
descriptor: *mut WGPUSharedBufferMemoryEndAccessState,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryGetProperties(
sharedBufferMemory: WGPUSharedBufferMemory,
properties: *mut WGPUSharedBufferMemoryProperties,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryIsDeviceLost(
sharedBufferMemory: WGPUSharedBufferMemory,
) -> WGPUBool;
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemorySetLabel(
sharedBufferMemory: WGPUSharedBufferMemory,
label: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryAddRef(sharedBufferMemory: WGPUSharedBufferMemory);
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryRelease(sharedBufferMemory: WGPUSharedBufferMemory);
}
unsafe extern "C" {
pub fn wgpuSharedBufferMemoryEndAccessStateFreeMembers(
sharedBufferMemoryEndAccessState: WGPUSharedBufferMemoryEndAccessState,
);
}
unsafe extern "C" {
pub fn wgpuSharedFenceExportInfo(
sharedFence: WGPUSharedFence,
info: *mut WGPUSharedFenceExportInfo,
);
}
unsafe extern "C" {
pub fn wgpuSharedFenceSetLabel(sharedFence: WGPUSharedFence, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuSharedFenceAddRef(sharedFence: WGPUSharedFence);
}
unsafe extern "C" {
pub fn wgpuSharedFenceRelease(sharedFence: WGPUSharedFence);
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryBeginAccess(
sharedTextureMemory: WGPUSharedTextureMemory,
texture: WGPUTexture,
descriptor: *const WGPUSharedTextureMemoryBeginAccessDescriptor,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryCreateTexture(
sharedTextureMemory: WGPUSharedTextureMemory,
descriptor: *const WGPUTextureDescriptor,
) -> WGPUTexture;
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryEndAccess(
sharedTextureMemory: WGPUSharedTextureMemory,
texture: WGPUTexture,
descriptor: *mut WGPUSharedTextureMemoryEndAccessState,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryGetProperties(
sharedTextureMemory: WGPUSharedTextureMemory,
properties: *mut WGPUSharedTextureMemoryProperties,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryIsDeviceLost(
sharedTextureMemory: WGPUSharedTextureMemory,
) -> WGPUBool;
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemorySetLabel(
sharedTextureMemory: WGPUSharedTextureMemory,
label: WGPUStringView,
);
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryAddRef(sharedTextureMemory: WGPUSharedTextureMemory);
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryRelease(sharedTextureMemory: WGPUSharedTextureMemory);
}
unsafe extern "C" {
pub fn wgpuSharedTextureMemoryEndAccessStateFreeMembers(
sharedTextureMemoryEndAccessState: WGPUSharedTextureMemoryEndAccessState,
);
}
unsafe extern "C" {
pub fn wgpuSupportedFeaturesFreeMembers(supportedFeatures: WGPUSupportedFeatures);
}
unsafe extern "C" {
pub fn wgpuSupportedInstanceFeaturesFreeMembers(
supportedInstanceFeatures: WGPUSupportedInstanceFeatures,
);
}
unsafe extern "C" {
pub fn wgpuSupportedWGSLLanguageFeaturesFreeMembers(
supportedWGSLLanguageFeatures: WGPUSupportedWGSLLanguageFeatures,
);
}
unsafe extern "C" {
pub fn wgpuSurfaceConfigure(surface: WGPUSurface, config: *const WGPUSurfaceConfiguration);
}
unsafe extern "C" {
pub fn wgpuSurfaceGetCapabilities(
surface: WGPUSurface,
adapter: WGPUAdapter,
capabilities: *mut WGPUSurfaceCapabilities,
) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSurfaceGetCurrentTexture(
surface: WGPUSurface,
surfaceTexture: *mut WGPUSurfaceTexture,
);
}
unsafe extern "C" {
pub fn wgpuSurfacePresent(surface: WGPUSurface) -> WGPUStatus;
}
unsafe extern "C" {
pub fn wgpuSurfaceSetLabel(surface: WGPUSurface, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuSurfaceUnconfigure(surface: WGPUSurface);
}
unsafe extern "C" {
pub fn wgpuSurfaceAddRef(surface: WGPUSurface);
}
unsafe extern "C" {
pub fn wgpuSurfaceRelease(surface: WGPUSurface);
}
unsafe extern "C" {
pub fn wgpuSurfaceCapabilitiesFreeMembers(surfaceCapabilities: WGPUSurfaceCapabilities);
}
unsafe extern "C" {
pub fn wgpuTexelBufferViewSetLabel(texelBufferView: WGPUTexelBufferView, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuTexelBufferViewAddRef(texelBufferView: WGPUTexelBufferView);
}
unsafe extern "C" {
pub fn wgpuTexelBufferViewRelease(texelBufferView: WGPUTexelBufferView);
}
unsafe extern "C" {
pub fn wgpuTextureCreateErrorView(
texture: WGPUTexture,
descriptor: *const WGPUTextureViewDescriptor,
) -> WGPUTextureView;
}
unsafe extern "C" {
pub fn wgpuTextureCreateView(
texture: WGPUTexture,
descriptor: *const WGPUTextureViewDescriptor,
) -> WGPUTextureView;
}
unsafe extern "C" {
pub fn wgpuTextureDestroy(texture: WGPUTexture);
}
unsafe extern "C" {
pub fn wgpuTextureGetDepthOrArrayLayers(texture: WGPUTexture) -> u32;
}
unsafe extern "C" {
pub fn wgpuTextureGetDimension(texture: WGPUTexture) -> WGPUTextureDimension;
}
unsafe extern "C" {
pub fn wgpuTextureGetFormat(texture: WGPUTexture) -> WGPUTextureFormat;
}
unsafe extern "C" {
pub fn wgpuTextureGetHeight(texture: WGPUTexture) -> u32;
}
unsafe extern "C" {
pub fn wgpuTextureGetMipLevelCount(texture: WGPUTexture) -> u32;
}
unsafe extern "C" {
pub fn wgpuTextureGetSampleCount(texture: WGPUTexture) -> u32;
}
unsafe extern "C" {
pub fn wgpuTextureGetTextureBindingViewDimension(
texture: WGPUTexture,
) -> WGPUTextureViewDimension;
}
unsafe extern "C" {
pub fn wgpuTextureGetUsage(texture: WGPUTexture) -> WGPUTextureUsage;
}
unsafe extern "C" {
pub fn wgpuTextureGetWidth(texture: WGPUTexture) -> u32;
}
unsafe extern "C" {
pub fn wgpuTexturePin(texture: WGPUTexture, usage: WGPUTextureUsage);
}
unsafe extern "C" {
pub fn wgpuTextureSetLabel(texture: WGPUTexture, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuTextureSetOwnershipForMemoryDump(texture: WGPUTexture, ownerGuid: u64);
}
unsafe extern "C" {
pub fn wgpuTextureUnpin(texture: WGPUTexture);
}
unsafe extern "C" {
pub fn wgpuTextureAddRef(texture: WGPUTexture);
}
unsafe extern "C" {
pub fn wgpuTextureRelease(texture: WGPUTexture);
}
unsafe extern "C" {
pub fn wgpuTextureViewSetLabel(textureView: WGPUTextureView, label: WGPUStringView);
}
unsafe extern "C" {
pub fn wgpuTextureViewAddRef(textureView: WGPUTextureView);
}
unsafe extern "C" {
pub fn wgpuTextureViewRelease(textureView: WGPUTextureView);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DawnProcTable {
pub createInstance: WGPUProcCreateInstance,
pub getInstanceFeatures: WGPUProcGetInstanceFeatures,
pub getInstanceLimits: WGPUProcGetInstanceLimits,
pub hasInstanceFeature: WGPUProcHasInstanceFeature,
pub getProcAddress: WGPUProcGetProcAddress,
pub adapterCreateDevice: WGPUProcAdapterCreateDevice,
pub adapterGetFeatures: WGPUProcAdapterGetFeatures,
pub adapterGetFormatCapabilities: WGPUProcAdapterGetFormatCapabilities,
pub adapterGetInfo: WGPUProcAdapterGetInfo,
pub adapterGetInstance: WGPUProcAdapterGetInstance,
pub adapterGetLimits: WGPUProcAdapterGetLimits,
pub adapterHasFeature: WGPUProcAdapterHasFeature,
pub adapterRequestDevice: WGPUProcAdapterRequestDevice,
pub adapterAddRef: WGPUProcAdapterAddRef,
pub adapterRelease: WGPUProcAdapterRelease,
pub adapterInfoFreeMembers: WGPUProcAdapterInfoFreeMembers,
pub adapterPropertiesMemoryHeapsFreeMembers: WGPUProcAdapterPropertiesMemoryHeapsFreeMembers,
pub adapterPropertiesSubgroupMatrixConfigsFreeMembers:
WGPUProcAdapterPropertiesSubgroupMatrixConfigsFreeMembers,
pub bindGroupSetLabel: WGPUProcBindGroupSetLabel,
pub bindGroupAddRef: WGPUProcBindGroupAddRef,
pub bindGroupRelease: WGPUProcBindGroupRelease,
pub bindGroupLayoutSetLabel: WGPUProcBindGroupLayoutSetLabel,
pub bindGroupLayoutAddRef: WGPUProcBindGroupLayoutAddRef,
pub bindGroupLayoutRelease: WGPUProcBindGroupLayoutRelease,
pub bufferCreateTexelView: WGPUProcBufferCreateTexelView,
pub bufferDestroy: WGPUProcBufferDestroy,
pub bufferGetConstMappedRange: WGPUProcBufferGetConstMappedRange,
pub bufferGetMappedRange: WGPUProcBufferGetMappedRange,
pub bufferGetMapState: WGPUProcBufferGetMapState,
pub bufferGetSize: WGPUProcBufferGetSize,
pub bufferGetUsage: WGPUProcBufferGetUsage,
pub bufferMapAsync: WGPUProcBufferMapAsync,
pub bufferReadMappedRange: WGPUProcBufferReadMappedRange,
pub bufferSetLabel: WGPUProcBufferSetLabel,
pub bufferUnmap: WGPUProcBufferUnmap,
pub bufferWriteMappedRange: WGPUProcBufferWriteMappedRange,
pub bufferAddRef: WGPUProcBufferAddRef,
pub bufferRelease: WGPUProcBufferRelease,
pub commandBufferSetLabel: WGPUProcCommandBufferSetLabel,
pub commandBufferAddRef: WGPUProcCommandBufferAddRef,
pub commandBufferRelease: WGPUProcCommandBufferRelease,
pub commandEncoderBeginComputePass: WGPUProcCommandEncoderBeginComputePass,
pub commandEncoderBeginRenderPass: WGPUProcCommandEncoderBeginRenderPass,
pub commandEncoderClearBuffer: WGPUProcCommandEncoderClearBuffer,
pub commandEncoderCopyBufferToBuffer: WGPUProcCommandEncoderCopyBufferToBuffer,
pub commandEncoderCopyBufferToTexture: WGPUProcCommandEncoderCopyBufferToTexture,
pub commandEncoderCopyTextureToBuffer: WGPUProcCommandEncoderCopyTextureToBuffer,
pub commandEncoderCopyTextureToTexture: WGPUProcCommandEncoderCopyTextureToTexture,
pub commandEncoderFinish: WGPUProcCommandEncoderFinish,
pub commandEncoderInjectValidationError: WGPUProcCommandEncoderInjectValidationError,
pub commandEncoderInsertDebugMarker: WGPUProcCommandEncoderInsertDebugMarker,
pub commandEncoderPopDebugGroup: WGPUProcCommandEncoderPopDebugGroup,
pub commandEncoderPushDebugGroup: WGPUProcCommandEncoderPushDebugGroup,
pub commandEncoderResolveQuerySet: WGPUProcCommandEncoderResolveQuerySet,
pub commandEncoderSetLabel: WGPUProcCommandEncoderSetLabel,
pub commandEncoderWriteBuffer: WGPUProcCommandEncoderWriteBuffer,
pub commandEncoderWriteTimestamp: WGPUProcCommandEncoderWriteTimestamp,
pub commandEncoderAddRef: WGPUProcCommandEncoderAddRef,
pub commandEncoderRelease: WGPUProcCommandEncoderRelease,
pub computePassEncoderDispatchWorkgroups: WGPUProcComputePassEncoderDispatchWorkgroups,
pub computePassEncoderDispatchWorkgroupsIndirect:
WGPUProcComputePassEncoderDispatchWorkgroupsIndirect,
pub computePassEncoderEnd: WGPUProcComputePassEncoderEnd,
pub computePassEncoderInsertDebugMarker: WGPUProcComputePassEncoderInsertDebugMarker,
pub computePassEncoderPopDebugGroup: WGPUProcComputePassEncoderPopDebugGroup,
pub computePassEncoderPushDebugGroup: WGPUProcComputePassEncoderPushDebugGroup,
pub computePassEncoderSetBindGroup: WGPUProcComputePassEncoderSetBindGroup,
pub computePassEncoderSetImmediates: WGPUProcComputePassEncoderSetImmediates,
pub computePassEncoderSetLabel: WGPUProcComputePassEncoderSetLabel,
pub computePassEncoderSetPipeline: WGPUProcComputePassEncoderSetPipeline,
pub computePassEncoderSetResourceTable: WGPUProcComputePassEncoderSetResourceTable,
pub computePassEncoderWriteTimestamp: WGPUProcComputePassEncoderWriteTimestamp,
pub computePassEncoderAddRef: WGPUProcComputePassEncoderAddRef,
pub computePassEncoderRelease: WGPUProcComputePassEncoderRelease,
pub computePipelineGetBindGroupLayout: WGPUProcComputePipelineGetBindGroupLayout,
pub computePipelineSetLabel: WGPUProcComputePipelineSetLabel,
pub computePipelineAddRef: WGPUProcComputePipelineAddRef,
pub computePipelineRelease: WGPUProcComputePipelineRelease,
pub dawnDrmFormatCapabilitiesFreeMembers: WGPUProcDawnDrmFormatCapabilitiesFreeMembers,
pub deviceCreateBindGroup: WGPUProcDeviceCreateBindGroup,
pub deviceCreateBindGroupLayout: WGPUProcDeviceCreateBindGroupLayout,
pub deviceCreateBuffer: WGPUProcDeviceCreateBuffer,
pub deviceCreateCommandEncoder: WGPUProcDeviceCreateCommandEncoder,
pub deviceCreateComputePipeline: WGPUProcDeviceCreateComputePipeline,
pub deviceCreateComputePipelineAsync: WGPUProcDeviceCreateComputePipelineAsync,
pub deviceCreateErrorBuffer: WGPUProcDeviceCreateErrorBuffer,
pub deviceCreateErrorExternalTexture: WGPUProcDeviceCreateErrorExternalTexture,
pub deviceCreateErrorShaderModule: WGPUProcDeviceCreateErrorShaderModule,
pub deviceCreateErrorTexture: WGPUProcDeviceCreateErrorTexture,
pub deviceCreateExternalTexture: WGPUProcDeviceCreateExternalTexture,
pub deviceCreatePipelineLayout: WGPUProcDeviceCreatePipelineLayout,
pub deviceCreateQuerySet: WGPUProcDeviceCreateQuerySet,
pub deviceCreateRenderBundleEncoder: WGPUProcDeviceCreateRenderBundleEncoder,
pub deviceCreateRenderPipeline: WGPUProcDeviceCreateRenderPipeline,
pub deviceCreateRenderPipelineAsync: WGPUProcDeviceCreateRenderPipelineAsync,
pub deviceCreateResourceTable: WGPUProcDeviceCreateResourceTable,
pub deviceCreateSampler: WGPUProcDeviceCreateSampler,
pub deviceCreateShaderModule: WGPUProcDeviceCreateShaderModule,
pub deviceCreateTexture: WGPUProcDeviceCreateTexture,
pub deviceDestroy: WGPUProcDeviceDestroy,
pub deviceForceLoss: WGPUProcDeviceForceLoss,
pub deviceGetAdapter: WGPUProcDeviceGetAdapter,
pub deviceGetAdapterInfo: WGPUProcDeviceGetAdapterInfo,
pub deviceGetAHardwareBufferProperties: WGPUProcDeviceGetAHardwareBufferProperties,
pub deviceGetFeatures: WGPUProcDeviceGetFeatures,
pub deviceGetLimits: WGPUProcDeviceGetLimits,
pub deviceGetLostFuture: WGPUProcDeviceGetLostFuture,
pub deviceGetQueue: WGPUProcDeviceGetQueue,
pub deviceHasFeature: WGPUProcDeviceHasFeature,
pub deviceImportSharedBufferMemory: WGPUProcDeviceImportSharedBufferMemory,
pub deviceImportSharedFence: WGPUProcDeviceImportSharedFence,
pub deviceImportSharedTextureMemory: WGPUProcDeviceImportSharedTextureMemory,
pub deviceInjectError: WGPUProcDeviceInjectError,
pub devicePopErrorScope: WGPUProcDevicePopErrorScope,
pub devicePushErrorScope: WGPUProcDevicePushErrorScope,
pub deviceSetLabel: WGPUProcDeviceSetLabel,
pub deviceSetLoggingCallback: WGPUProcDeviceSetLoggingCallback,
pub deviceTick: WGPUProcDeviceTick,
pub deviceValidateTextureDescriptor: WGPUProcDeviceValidateTextureDescriptor,
pub deviceAddRef: WGPUProcDeviceAddRef,
pub deviceRelease: WGPUProcDeviceRelease,
pub externalTextureDestroy: WGPUProcExternalTextureDestroy,
pub externalTextureExpire: WGPUProcExternalTextureExpire,
pub externalTextureRefresh: WGPUProcExternalTextureRefresh,
pub externalTextureSetLabel: WGPUProcExternalTextureSetLabel,
pub externalTextureAddRef: WGPUProcExternalTextureAddRef,
pub externalTextureRelease: WGPUProcExternalTextureRelease,
pub instanceCreateSurface: WGPUProcInstanceCreateSurface,
pub instanceGetWGSLLanguageFeatures: WGPUProcInstanceGetWGSLLanguageFeatures,
pub instanceHasWGSLLanguageFeature: WGPUProcInstanceHasWGSLLanguageFeature,
pub instanceProcessEvents: WGPUProcInstanceProcessEvents,
pub instanceRequestAdapter: WGPUProcInstanceRequestAdapter,
pub instanceWaitAny: WGPUProcInstanceWaitAny,
pub instanceAddRef: WGPUProcInstanceAddRef,
pub instanceRelease: WGPUProcInstanceRelease,
pub pipelineLayoutSetLabel: WGPUProcPipelineLayoutSetLabel,
pub pipelineLayoutAddRef: WGPUProcPipelineLayoutAddRef,
pub pipelineLayoutRelease: WGPUProcPipelineLayoutRelease,
pub querySetDestroy: WGPUProcQuerySetDestroy,
pub querySetGetCount: WGPUProcQuerySetGetCount,
pub querySetGetType: WGPUProcQuerySetGetType,
pub querySetSetLabel: WGPUProcQuerySetSetLabel,
pub querySetAddRef: WGPUProcQuerySetAddRef,
pub querySetRelease: WGPUProcQuerySetRelease,
pub queueCopyExternalTextureForBrowser: WGPUProcQueueCopyExternalTextureForBrowser,
pub queueCopyTextureForBrowser: WGPUProcQueueCopyTextureForBrowser,
pub queueOnSubmittedWorkDone: WGPUProcQueueOnSubmittedWorkDone,
pub queueSetLabel: WGPUProcQueueSetLabel,
pub queueSubmit: WGPUProcQueueSubmit,
pub queueWriteBuffer: WGPUProcQueueWriteBuffer,
pub queueWriteTexture: WGPUProcQueueWriteTexture,
pub queueAddRef: WGPUProcQueueAddRef,
pub queueRelease: WGPUProcQueueRelease,
pub renderBundleSetLabel: WGPUProcRenderBundleSetLabel,
pub renderBundleAddRef: WGPUProcRenderBundleAddRef,
pub renderBundleRelease: WGPUProcRenderBundleRelease,
pub renderBundleEncoderDraw: WGPUProcRenderBundleEncoderDraw,
pub renderBundleEncoderDrawIndexed: WGPUProcRenderBundleEncoderDrawIndexed,
pub renderBundleEncoderDrawIndexedIndirect: WGPUProcRenderBundleEncoderDrawIndexedIndirect,
pub renderBundleEncoderDrawIndirect: WGPUProcRenderBundleEncoderDrawIndirect,
pub renderBundleEncoderFinish: WGPUProcRenderBundleEncoderFinish,
pub renderBundleEncoderInsertDebugMarker: WGPUProcRenderBundleEncoderInsertDebugMarker,
pub renderBundleEncoderPopDebugGroup: WGPUProcRenderBundleEncoderPopDebugGroup,
pub renderBundleEncoderPushDebugGroup: WGPUProcRenderBundleEncoderPushDebugGroup,
pub renderBundleEncoderSetBindGroup: WGPUProcRenderBundleEncoderSetBindGroup,
pub renderBundleEncoderSetImmediates: WGPUProcRenderBundleEncoderSetImmediates,
pub renderBundleEncoderSetIndexBuffer: WGPUProcRenderBundleEncoderSetIndexBuffer,
pub renderBundleEncoderSetLabel: WGPUProcRenderBundleEncoderSetLabel,
pub renderBundleEncoderSetPipeline: WGPUProcRenderBundleEncoderSetPipeline,
pub renderBundleEncoderSetResourceTable: WGPUProcRenderBundleEncoderSetResourceTable,
pub renderBundleEncoderSetVertexBuffer: WGPUProcRenderBundleEncoderSetVertexBuffer,
pub renderBundleEncoderAddRef: WGPUProcRenderBundleEncoderAddRef,
pub renderBundleEncoderRelease: WGPUProcRenderBundleEncoderRelease,
pub renderPassEncoderBeginOcclusionQuery: WGPUProcRenderPassEncoderBeginOcclusionQuery,
pub renderPassEncoderDraw: WGPUProcRenderPassEncoderDraw,
pub renderPassEncoderDrawIndexed: WGPUProcRenderPassEncoderDrawIndexed,
pub renderPassEncoderDrawIndexedIndirect: WGPUProcRenderPassEncoderDrawIndexedIndirect,
pub renderPassEncoderDrawIndirect: WGPUProcRenderPassEncoderDrawIndirect,
pub renderPassEncoderEnd: WGPUProcRenderPassEncoderEnd,
pub renderPassEncoderEndOcclusionQuery: WGPUProcRenderPassEncoderEndOcclusionQuery,
pub renderPassEncoderExecuteBundles: WGPUProcRenderPassEncoderExecuteBundles,
pub renderPassEncoderInsertDebugMarker: WGPUProcRenderPassEncoderInsertDebugMarker,
pub renderPassEncoderMultiDrawIndexedIndirect:
WGPUProcRenderPassEncoderMultiDrawIndexedIndirect,
pub renderPassEncoderMultiDrawIndirect: WGPUProcRenderPassEncoderMultiDrawIndirect,
pub renderPassEncoderPixelLocalStorageBarrier:
WGPUProcRenderPassEncoderPixelLocalStorageBarrier,
pub renderPassEncoderPopDebugGroup: WGPUProcRenderPassEncoderPopDebugGroup,
pub renderPassEncoderPushDebugGroup: WGPUProcRenderPassEncoderPushDebugGroup,
pub renderPassEncoderSetBindGroup: WGPUProcRenderPassEncoderSetBindGroup,
pub renderPassEncoderSetBlendConstant: WGPUProcRenderPassEncoderSetBlendConstant,
pub renderPassEncoderSetImmediates: WGPUProcRenderPassEncoderSetImmediates,
pub renderPassEncoderSetIndexBuffer: WGPUProcRenderPassEncoderSetIndexBuffer,
pub renderPassEncoderSetLabel: WGPUProcRenderPassEncoderSetLabel,
pub renderPassEncoderSetPipeline: WGPUProcRenderPassEncoderSetPipeline,
pub renderPassEncoderSetResourceTable: WGPUProcRenderPassEncoderSetResourceTable,
pub renderPassEncoderSetScissorRect: WGPUProcRenderPassEncoderSetScissorRect,
pub renderPassEncoderSetStencilReference: WGPUProcRenderPassEncoderSetStencilReference,
pub renderPassEncoderSetVertexBuffer: WGPUProcRenderPassEncoderSetVertexBuffer,
pub renderPassEncoderSetViewport: WGPUProcRenderPassEncoderSetViewport,
pub renderPassEncoderWriteTimestamp: WGPUProcRenderPassEncoderWriteTimestamp,
pub renderPassEncoderAddRef: WGPUProcRenderPassEncoderAddRef,
pub renderPassEncoderRelease: WGPUProcRenderPassEncoderRelease,
pub renderPipelineGetBindGroupLayout: WGPUProcRenderPipelineGetBindGroupLayout,
pub renderPipelineSetLabel: WGPUProcRenderPipelineSetLabel,
pub renderPipelineAddRef: WGPUProcRenderPipelineAddRef,
pub renderPipelineRelease: WGPUProcRenderPipelineRelease,
pub resourceTableDestroy: WGPUProcResourceTableDestroy,
pub resourceTableGetSize: WGPUProcResourceTableGetSize,
pub resourceTableInsertBinding: WGPUProcResourceTableInsertBinding,
pub resourceTableRemoveBinding: WGPUProcResourceTableRemoveBinding,
pub resourceTableUpdate: WGPUProcResourceTableUpdate,
pub resourceTableAddRef: WGPUProcResourceTableAddRef,
pub resourceTableRelease: WGPUProcResourceTableRelease,
pub samplerSetLabel: WGPUProcSamplerSetLabel,
pub samplerAddRef: WGPUProcSamplerAddRef,
pub samplerRelease: WGPUProcSamplerRelease,
pub shaderModuleGetCompilationInfo: WGPUProcShaderModuleGetCompilationInfo,
pub shaderModuleSetLabel: WGPUProcShaderModuleSetLabel,
pub shaderModuleAddRef: WGPUProcShaderModuleAddRef,
pub shaderModuleRelease: WGPUProcShaderModuleRelease,
pub sharedBufferMemoryBeginAccess: WGPUProcSharedBufferMemoryBeginAccess,
pub sharedBufferMemoryCreateBuffer: WGPUProcSharedBufferMemoryCreateBuffer,
pub sharedBufferMemoryEndAccess: WGPUProcSharedBufferMemoryEndAccess,
pub sharedBufferMemoryGetProperties: WGPUProcSharedBufferMemoryGetProperties,
pub sharedBufferMemoryIsDeviceLost: WGPUProcSharedBufferMemoryIsDeviceLost,
pub sharedBufferMemorySetLabel: WGPUProcSharedBufferMemorySetLabel,
pub sharedBufferMemoryAddRef: WGPUProcSharedBufferMemoryAddRef,
pub sharedBufferMemoryRelease: WGPUProcSharedBufferMemoryRelease,
pub sharedBufferMemoryEndAccessStateFreeMembers:
WGPUProcSharedBufferMemoryEndAccessStateFreeMembers,
pub sharedFenceExportInfo: WGPUProcSharedFenceExportInfo,
pub sharedFenceSetLabel: WGPUProcSharedFenceSetLabel,
pub sharedFenceAddRef: WGPUProcSharedFenceAddRef,
pub sharedFenceRelease: WGPUProcSharedFenceRelease,
pub sharedTextureMemoryBeginAccess: WGPUProcSharedTextureMemoryBeginAccess,
pub sharedTextureMemoryCreateTexture: WGPUProcSharedTextureMemoryCreateTexture,
pub sharedTextureMemoryEndAccess: WGPUProcSharedTextureMemoryEndAccess,
pub sharedTextureMemoryGetProperties: WGPUProcSharedTextureMemoryGetProperties,
pub sharedTextureMemoryIsDeviceLost: WGPUProcSharedTextureMemoryIsDeviceLost,
pub sharedTextureMemorySetLabel: WGPUProcSharedTextureMemorySetLabel,
pub sharedTextureMemoryAddRef: WGPUProcSharedTextureMemoryAddRef,
pub sharedTextureMemoryRelease: WGPUProcSharedTextureMemoryRelease,
pub sharedTextureMemoryEndAccessStateFreeMembers:
WGPUProcSharedTextureMemoryEndAccessStateFreeMembers,
pub supportedFeaturesFreeMembers: WGPUProcSupportedFeaturesFreeMembers,
pub supportedInstanceFeaturesFreeMembers: WGPUProcSupportedInstanceFeaturesFreeMembers,
pub supportedWGSLLanguageFeaturesFreeMembers: WGPUProcSupportedWGSLLanguageFeaturesFreeMembers,
pub surfaceConfigure: WGPUProcSurfaceConfigure,
pub surfaceGetCapabilities: WGPUProcSurfaceGetCapabilities,
pub surfaceGetCurrentTexture: WGPUProcSurfaceGetCurrentTexture,
pub surfacePresent: WGPUProcSurfacePresent,
pub surfaceSetLabel: WGPUProcSurfaceSetLabel,
pub surfaceUnconfigure: WGPUProcSurfaceUnconfigure,
pub surfaceAddRef: WGPUProcSurfaceAddRef,
pub surfaceRelease: WGPUProcSurfaceRelease,
pub surfaceCapabilitiesFreeMembers: WGPUProcSurfaceCapabilitiesFreeMembers,
pub texelBufferViewSetLabel: WGPUProcTexelBufferViewSetLabel,
pub texelBufferViewAddRef: WGPUProcTexelBufferViewAddRef,
pub texelBufferViewRelease: WGPUProcTexelBufferViewRelease,
pub textureCreateErrorView: WGPUProcTextureCreateErrorView,
pub textureCreateView: WGPUProcTextureCreateView,
pub textureDestroy: WGPUProcTextureDestroy,
pub textureGetDepthOrArrayLayers: WGPUProcTextureGetDepthOrArrayLayers,
pub textureGetDimension: WGPUProcTextureGetDimension,
pub textureGetFormat: WGPUProcTextureGetFormat,
pub textureGetHeight: WGPUProcTextureGetHeight,
pub textureGetMipLevelCount: WGPUProcTextureGetMipLevelCount,
pub textureGetSampleCount: WGPUProcTextureGetSampleCount,
pub textureGetTextureBindingViewDimension: WGPUProcTextureGetTextureBindingViewDimension,
pub textureGetUsage: WGPUProcTextureGetUsage,
pub textureGetWidth: WGPUProcTextureGetWidth,
pub texturePin: WGPUProcTexturePin,
pub textureSetLabel: WGPUProcTextureSetLabel,
pub textureSetOwnershipForMemoryDump: WGPUProcTextureSetOwnershipForMemoryDump,
pub textureUnpin: WGPUProcTextureUnpin,
pub textureAddRef: WGPUProcTextureAddRef,
pub textureRelease: WGPUProcTextureRelease,
pub textureViewSetLabel: WGPUProcTextureViewSetLabel,
pub textureViewAddRef: WGPUProcTextureViewAddRef,
pub textureViewRelease: WGPUProcTextureViewRelease,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of DawnProcTable"][::std::mem::size_of::<DawnProcTable>() - 2208usize];
["Alignment of DawnProcTable"][::std::mem::align_of::<DawnProcTable>() - 8usize];
["Offset of field: DawnProcTable::createInstance"]
[::std::mem::offset_of!(DawnProcTable, createInstance) - 0usize];
["Offset of field: DawnProcTable::getInstanceFeatures"]
[::std::mem::offset_of!(DawnProcTable, getInstanceFeatures) - 8usize];
["Offset of field: DawnProcTable::getInstanceLimits"]
[::std::mem::offset_of!(DawnProcTable, getInstanceLimits) - 16usize];
["Offset of field: DawnProcTable::hasInstanceFeature"]
[::std::mem::offset_of!(DawnProcTable, hasInstanceFeature) - 24usize];
["Offset of field: DawnProcTable::getProcAddress"]
[::std::mem::offset_of!(DawnProcTable, getProcAddress) - 32usize];
["Offset of field: DawnProcTable::adapterCreateDevice"]
[::std::mem::offset_of!(DawnProcTable, adapterCreateDevice) - 40usize];
["Offset of field: DawnProcTable::adapterGetFeatures"]
[::std::mem::offset_of!(DawnProcTable, adapterGetFeatures) - 48usize];
["Offset of field: DawnProcTable::adapterGetFormatCapabilities"]
[::std::mem::offset_of!(DawnProcTable, adapterGetFormatCapabilities) - 56usize];
["Offset of field: DawnProcTable::adapterGetInfo"]
[::std::mem::offset_of!(DawnProcTable, adapterGetInfo) - 64usize];
["Offset of field: DawnProcTable::adapterGetInstance"]
[::std::mem::offset_of!(DawnProcTable, adapterGetInstance) - 72usize];
["Offset of field: DawnProcTable::adapterGetLimits"]
[::std::mem::offset_of!(DawnProcTable, adapterGetLimits) - 80usize];
["Offset of field: DawnProcTable::adapterHasFeature"]
[::std::mem::offset_of!(DawnProcTable, adapterHasFeature) - 88usize];
["Offset of field: DawnProcTable::adapterRequestDevice"]
[::std::mem::offset_of!(DawnProcTable, adapterRequestDevice) - 96usize];
["Offset of field: DawnProcTable::adapterAddRef"]
[::std::mem::offset_of!(DawnProcTable, adapterAddRef) - 104usize];
["Offset of field: DawnProcTable::adapterRelease"]
[::std::mem::offset_of!(DawnProcTable, adapterRelease) - 112usize];
["Offset of field: DawnProcTable::adapterInfoFreeMembers"]
[::std::mem::offset_of!(DawnProcTable, adapterInfoFreeMembers) - 120usize];
["Offset of field: DawnProcTable::adapterPropertiesMemoryHeapsFreeMembers"]
[::std::mem::offset_of!(DawnProcTable, adapterPropertiesMemoryHeapsFreeMembers) - 128usize];
["Offset of field: DawnProcTable::adapterPropertiesSubgroupMatrixConfigsFreeMembers"][::std::mem::offset_of!(
DawnProcTable,
adapterPropertiesSubgroupMatrixConfigsFreeMembers
)
- 136usize];
["Offset of field: DawnProcTable::bindGroupSetLabel"]
[::std::mem::offset_of!(DawnProcTable, bindGroupSetLabel) - 144usize];
["Offset of field: DawnProcTable::bindGroupAddRef"]
[::std::mem::offset_of!(DawnProcTable, bindGroupAddRef) - 152usize];
["Offset of field: DawnProcTable::bindGroupRelease"]
[::std::mem::offset_of!(DawnProcTable, bindGroupRelease) - 160usize];
["Offset of field: DawnProcTable::bindGroupLayoutSetLabel"]
[::std::mem::offset_of!(DawnProcTable, bindGroupLayoutSetLabel) - 168usize];
["Offset of field: DawnProcTable::bindGroupLayoutAddRef"]
[::std::mem::offset_of!(DawnProcTable, bindGroupLayoutAddRef) - 176usize];
["Offset of field: DawnProcTable::bindGroupLayoutRelease"]
[::std::mem::offset_of!(DawnProcTable, bindGroupLayoutRelease) - 184usize];
["Offset of field: DawnProcTable::bufferCreateTexelView"]
[::std::mem::offset_of!(DawnProcTable, bufferCreateTexelView) - 192usize];
["Offset of field: DawnProcTable::bufferDestroy"]
[::std::mem::offset_of!(DawnProcTable, bufferDestroy) - 200usize];
["Offset of field: DawnProcTable::bufferGetConstMappedRange"]
[::std::mem::offset_of!(DawnProcTable, bufferGetConstMappedRange) - 208usize];
["Offset of field: DawnProcTable::bufferGetMappedRange"]
[::std::mem::offset_of!(DawnProcTable, bufferGetMappedRange) - 216usize];
["Offset of field: DawnProcTable::bufferGetMapState"]
[::std::mem::offset_of!(DawnProcTable, bufferGetMapState) - 224usize];
["Offset of field: DawnProcTable::bufferGetSize"]
[::std::mem::offset_of!(DawnProcTable, bufferGetSize) - 232usize];
["Offset of field: DawnProcTable::bufferGetUsage"]
[::std::mem::offset_of!(DawnProcTable, bufferGetUsage) - 240usize];
["Offset of field: DawnProcTable::bufferMapAsync"]
[::std::mem::offset_of!(DawnProcTable, bufferMapAsync) - 248usize];
["Offset of field: DawnProcTable::bufferReadMappedRange"]
[::std::mem::offset_of!(DawnProcTable, bufferReadMappedRange) - 256usize];
["Offset of field: DawnProcTable::bufferSetLabel"]
[::std::mem::offset_of!(DawnProcTable, bufferSetLabel) - 264usize];
["Offset of field: DawnProcTable::bufferUnmap"]
[::std::mem::offset_of!(DawnProcTable, bufferUnmap) - 272usize];
["Offset of field: DawnProcTable::bufferWriteMappedRange"]
[::std::mem::offset_of!(DawnProcTable, bufferWriteMappedRange) - 280usize];
["Offset of field: DawnProcTable::bufferAddRef"]
[::std::mem::offset_of!(DawnProcTable, bufferAddRef) - 288usize];
["Offset of field: DawnProcTable::bufferRelease"]
[::std::mem::offset_of!(DawnProcTable, bufferRelease) - 296usize];
["Offset of field: DawnProcTable::commandBufferSetLabel"]
[::std::mem::offset_of!(DawnProcTable, commandBufferSetLabel) - 304usize];
["Offset of field: DawnProcTable::commandBufferAddRef"]
[::std::mem::offset_of!(DawnProcTable, commandBufferAddRef) - 312usize];
["Offset of field: DawnProcTable::commandBufferRelease"]
[::std::mem::offset_of!(DawnProcTable, commandBufferRelease) - 320usize];
["Offset of field: DawnProcTable::commandEncoderBeginComputePass"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderBeginComputePass) - 328usize];
["Offset of field: DawnProcTable::commandEncoderBeginRenderPass"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderBeginRenderPass) - 336usize];
["Offset of field: DawnProcTable::commandEncoderClearBuffer"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderClearBuffer) - 344usize];
["Offset of field: DawnProcTable::commandEncoderCopyBufferToBuffer"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderCopyBufferToBuffer) - 352usize];
["Offset of field: DawnProcTable::commandEncoderCopyBufferToTexture"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderCopyBufferToTexture) - 360usize];
["Offset of field: DawnProcTable::commandEncoderCopyTextureToBuffer"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderCopyTextureToBuffer) - 368usize];
["Offset of field: DawnProcTable::commandEncoderCopyTextureToTexture"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderCopyTextureToTexture) - 376usize];
["Offset of field: DawnProcTable::commandEncoderFinish"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderFinish) - 384usize];
["Offset of field: DawnProcTable::commandEncoderInjectValidationError"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderInjectValidationError) - 392usize];
["Offset of field: DawnProcTable::commandEncoderInsertDebugMarker"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderInsertDebugMarker) - 400usize];
["Offset of field: DawnProcTable::commandEncoderPopDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderPopDebugGroup) - 408usize];
["Offset of field: DawnProcTable::commandEncoderPushDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderPushDebugGroup) - 416usize];
["Offset of field: DawnProcTable::commandEncoderResolveQuerySet"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderResolveQuerySet) - 424usize];
["Offset of field: DawnProcTable::commandEncoderSetLabel"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderSetLabel) - 432usize];
["Offset of field: DawnProcTable::commandEncoderWriteBuffer"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderWriteBuffer) - 440usize];
["Offset of field: DawnProcTable::commandEncoderWriteTimestamp"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderWriteTimestamp) - 448usize];
["Offset of field: DawnProcTable::commandEncoderAddRef"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderAddRef) - 456usize];
["Offset of field: DawnProcTable::commandEncoderRelease"]
[::std::mem::offset_of!(DawnProcTable, commandEncoderRelease) - 464usize];
["Offset of field: DawnProcTable::computePassEncoderDispatchWorkgroups"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderDispatchWorkgroups) - 472usize];
["Offset of field: DawnProcTable::computePassEncoderDispatchWorkgroupsIndirect"][::std::mem::offset_of!(
DawnProcTable,
computePassEncoderDispatchWorkgroupsIndirect
) - 480usize];
["Offset of field: DawnProcTable::computePassEncoderEnd"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderEnd) - 488usize];
["Offset of field: DawnProcTable::computePassEncoderInsertDebugMarker"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderInsertDebugMarker) - 496usize];
["Offset of field: DawnProcTable::computePassEncoderPopDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderPopDebugGroup) - 504usize];
["Offset of field: DawnProcTable::computePassEncoderPushDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderPushDebugGroup) - 512usize];
["Offset of field: DawnProcTable::computePassEncoderSetBindGroup"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderSetBindGroup) - 520usize];
["Offset of field: DawnProcTable::computePassEncoderSetImmediates"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderSetImmediates) - 528usize];
["Offset of field: DawnProcTable::computePassEncoderSetLabel"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderSetLabel) - 536usize];
["Offset of field: DawnProcTable::computePassEncoderSetPipeline"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderSetPipeline) - 544usize];
["Offset of field: DawnProcTable::computePassEncoderSetResourceTable"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderSetResourceTable) - 552usize];
["Offset of field: DawnProcTable::computePassEncoderWriteTimestamp"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderWriteTimestamp) - 560usize];
["Offset of field: DawnProcTable::computePassEncoderAddRef"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderAddRef) - 568usize];
["Offset of field: DawnProcTable::computePassEncoderRelease"]
[::std::mem::offset_of!(DawnProcTable, computePassEncoderRelease) - 576usize];
["Offset of field: DawnProcTable::computePipelineGetBindGroupLayout"]
[::std::mem::offset_of!(DawnProcTable, computePipelineGetBindGroupLayout) - 584usize];
["Offset of field: DawnProcTable::computePipelineSetLabel"]
[::std::mem::offset_of!(DawnProcTable, computePipelineSetLabel) - 592usize];
["Offset of field: DawnProcTable::computePipelineAddRef"]
[::std::mem::offset_of!(DawnProcTable, computePipelineAddRef) - 600usize];
["Offset of field: DawnProcTable::computePipelineRelease"]
[::std::mem::offset_of!(DawnProcTable, computePipelineRelease) - 608usize];
["Offset of field: DawnProcTable::dawnDrmFormatCapabilitiesFreeMembers"]
[::std::mem::offset_of!(DawnProcTable, dawnDrmFormatCapabilitiesFreeMembers) - 616usize];
["Offset of field: DawnProcTable::deviceCreateBindGroup"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateBindGroup) - 624usize];
["Offset of field: DawnProcTable::deviceCreateBindGroupLayout"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateBindGroupLayout) - 632usize];
["Offset of field: DawnProcTable::deviceCreateBuffer"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateBuffer) - 640usize];
["Offset of field: DawnProcTable::deviceCreateCommandEncoder"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateCommandEncoder) - 648usize];
["Offset of field: DawnProcTable::deviceCreateComputePipeline"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateComputePipeline) - 656usize];
["Offset of field: DawnProcTable::deviceCreateComputePipelineAsync"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateComputePipelineAsync) - 664usize];
["Offset of field: DawnProcTable::deviceCreateErrorBuffer"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateErrorBuffer) - 672usize];
["Offset of field: DawnProcTable::deviceCreateErrorExternalTexture"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateErrorExternalTexture) - 680usize];
["Offset of field: DawnProcTable::deviceCreateErrorShaderModule"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateErrorShaderModule) - 688usize];
["Offset of field: DawnProcTable::deviceCreateErrorTexture"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateErrorTexture) - 696usize];
["Offset of field: DawnProcTable::deviceCreateExternalTexture"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateExternalTexture) - 704usize];
["Offset of field: DawnProcTable::deviceCreatePipelineLayout"]
[::std::mem::offset_of!(DawnProcTable, deviceCreatePipelineLayout) - 712usize];
["Offset of field: DawnProcTable::deviceCreateQuerySet"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateQuerySet) - 720usize];
["Offset of field: DawnProcTable::deviceCreateRenderBundleEncoder"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateRenderBundleEncoder) - 728usize];
["Offset of field: DawnProcTable::deviceCreateRenderPipeline"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateRenderPipeline) - 736usize];
["Offset of field: DawnProcTable::deviceCreateRenderPipelineAsync"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateRenderPipelineAsync) - 744usize];
["Offset of field: DawnProcTable::deviceCreateResourceTable"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateResourceTable) - 752usize];
["Offset of field: DawnProcTable::deviceCreateSampler"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateSampler) - 760usize];
["Offset of field: DawnProcTable::deviceCreateShaderModule"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateShaderModule) - 768usize];
["Offset of field: DawnProcTable::deviceCreateTexture"]
[::std::mem::offset_of!(DawnProcTable, deviceCreateTexture) - 776usize];
["Offset of field: DawnProcTable::deviceDestroy"]
[::std::mem::offset_of!(DawnProcTable, deviceDestroy) - 784usize];
["Offset of field: DawnProcTable::deviceForceLoss"]
[::std::mem::offset_of!(DawnProcTable, deviceForceLoss) - 792usize];
["Offset of field: DawnProcTable::deviceGetAdapter"]
[::std::mem::offset_of!(DawnProcTable, deviceGetAdapter) - 800usize];
["Offset of field: DawnProcTable::deviceGetAdapterInfo"]
[::std::mem::offset_of!(DawnProcTable, deviceGetAdapterInfo) - 808usize];
["Offset of field: DawnProcTable::deviceGetAHardwareBufferProperties"]
[::std::mem::offset_of!(DawnProcTable, deviceGetAHardwareBufferProperties) - 816usize];
["Offset of field: DawnProcTable::deviceGetFeatures"]
[::std::mem::offset_of!(DawnProcTable, deviceGetFeatures) - 824usize];
["Offset of field: DawnProcTable::deviceGetLimits"]
[::std::mem::offset_of!(DawnProcTable, deviceGetLimits) - 832usize];
["Offset of field: DawnProcTable::deviceGetLostFuture"]
[::std::mem::offset_of!(DawnProcTable, deviceGetLostFuture) - 840usize];
["Offset of field: DawnProcTable::deviceGetQueue"]
[::std::mem::offset_of!(DawnProcTable, deviceGetQueue) - 848usize];
["Offset of field: DawnProcTable::deviceHasFeature"]
[::std::mem::offset_of!(DawnProcTable, deviceHasFeature) - 856usize];
["Offset of field: DawnProcTable::deviceImportSharedBufferMemory"]
[::std::mem::offset_of!(DawnProcTable, deviceImportSharedBufferMemory) - 864usize];
["Offset of field: DawnProcTable::deviceImportSharedFence"]
[::std::mem::offset_of!(DawnProcTable, deviceImportSharedFence) - 872usize];
["Offset of field: DawnProcTable::deviceImportSharedTextureMemory"]
[::std::mem::offset_of!(DawnProcTable, deviceImportSharedTextureMemory) - 880usize];
["Offset of field: DawnProcTable::deviceInjectError"]
[::std::mem::offset_of!(DawnProcTable, deviceInjectError) - 888usize];
["Offset of field: DawnProcTable::devicePopErrorScope"]
[::std::mem::offset_of!(DawnProcTable, devicePopErrorScope) - 896usize];
["Offset of field: DawnProcTable::devicePushErrorScope"]
[::std::mem::offset_of!(DawnProcTable, devicePushErrorScope) - 904usize];
["Offset of field: DawnProcTable::deviceSetLabel"]
[::std::mem::offset_of!(DawnProcTable, deviceSetLabel) - 912usize];
["Offset of field: DawnProcTable::deviceSetLoggingCallback"]
[::std::mem::offset_of!(DawnProcTable, deviceSetLoggingCallback) - 920usize];
["Offset of field: DawnProcTable::deviceTick"]
[::std::mem::offset_of!(DawnProcTable, deviceTick) - 928usize];
["Offset of field: DawnProcTable::deviceValidateTextureDescriptor"]
[::std::mem::offset_of!(DawnProcTable, deviceValidateTextureDescriptor) - 936usize];
["Offset of field: DawnProcTable::deviceAddRef"]
[::std::mem::offset_of!(DawnProcTable, deviceAddRef) - 944usize];
["Offset of field: DawnProcTable::deviceRelease"]
[::std::mem::offset_of!(DawnProcTable, deviceRelease) - 952usize];
["Offset of field: DawnProcTable::externalTextureDestroy"]
[::std::mem::offset_of!(DawnProcTable, externalTextureDestroy) - 960usize];
["Offset of field: DawnProcTable::externalTextureExpire"]
[::std::mem::offset_of!(DawnProcTable, externalTextureExpire) - 968usize];
["Offset of field: DawnProcTable::externalTextureRefresh"]
[::std::mem::offset_of!(DawnProcTable, externalTextureRefresh) - 976usize];
["Offset of field: DawnProcTable::externalTextureSetLabel"]
[::std::mem::offset_of!(DawnProcTable, externalTextureSetLabel) - 984usize];
["Offset of field: DawnProcTable::externalTextureAddRef"]
[::std::mem::offset_of!(DawnProcTable, externalTextureAddRef) - 992usize];
["Offset of field: DawnProcTable::externalTextureRelease"]
[::std::mem::offset_of!(DawnProcTable, externalTextureRelease) - 1000usize];
["Offset of field: DawnProcTable::instanceCreateSurface"]
[::std::mem::offset_of!(DawnProcTable, instanceCreateSurface) - 1008usize];
["Offset of field: DawnProcTable::instanceGetWGSLLanguageFeatures"]
[::std::mem::offset_of!(DawnProcTable, instanceGetWGSLLanguageFeatures) - 1016usize];
["Offset of field: DawnProcTable::instanceHasWGSLLanguageFeature"]
[::std::mem::offset_of!(DawnProcTable, instanceHasWGSLLanguageFeature) - 1024usize];
["Offset of field: DawnProcTable::instanceProcessEvents"]
[::std::mem::offset_of!(DawnProcTable, instanceProcessEvents) - 1032usize];
["Offset of field: DawnProcTable::instanceRequestAdapter"]
[::std::mem::offset_of!(DawnProcTable, instanceRequestAdapter) - 1040usize];
["Offset of field: DawnProcTable::instanceWaitAny"]
[::std::mem::offset_of!(DawnProcTable, instanceWaitAny) - 1048usize];
["Offset of field: DawnProcTable::instanceAddRef"]
[::std::mem::offset_of!(DawnProcTable, instanceAddRef) - 1056usize];
["Offset of field: DawnProcTable::instanceRelease"]
[::std::mem::offset_of!(DawnProcTable, instanceRelease) - 1064usize];
["Offset of field: DawnProcTable::pipelineLayoutSetLabel"]
[::std::mem::offset_of!(DawnProcTable, pipelineLayoutSetLabel) - 1072usize];
["Offset of field: DawnProcTable::pipelineLayoutAddRef"]
[::std::mem::offset_of!(DawnProcTable, pipelineLayoutAddRef) - 1080usize];
["Offset of field: DawnProcTable::pipelineLayoutRelease"]
[::std::mem::offset_of!(DawnProcTable, pipelineLayoutRelease) - 1088usize];
["Offset of field: DawnProcTable::querySetDestroy"]
[::std::mem::offset_of!(DawnProcTable, querySetDestroy) - 1096usize];
["Offset of field: DawnProcTable::querySetGetCount"]
[::std::mem::offset_of!(DawnProcTable, querySetGetCount) - 1104usize];
["Offset of field: DawnProcTable::querySetGetType"]
[::std::mem::offset_of!(DawnProcTable, querySetGetType) - 1112usize];
["Offset of field: DawnProcTable::querySetSetLabel"]
[::std::mem::offset_of!(DawnProcTable, querySetSetLabel) - 1120usize];
["Offset of field: DawnProcTable::querySetAddRef"]
[::std::mem::offset_of!(DawnProcTable, querySetAddRef) - 1128usize];
["Offset of field: DawnProcTable::querySetRelease"]
[::std::mem::offset_of!(DawnProcTable, querySetRelease) - 1136usize];
["Offset of field: DawnProcTable::queueCopyExternalTextureForBrowser"]
[::std::mem::offset_of!(DawnProcTable, queueCopyExternalTextureForBrowser) - 1144usize];
["Offset of field: DawnProcTable::queueCopyTextureForBrowser"]
[::std::mem::offset_of!(DawnProcTable, queueCopyTextureForBrowser) - 1152usize];
["Offset of field: DawnProcTable::queueOnSubmittedWorkDone"]
[::std::mem::offset_of!(DawnProcTable, queueOnSubmittedWorkDone) - 1160usize];
["Offset of field: DawnProcTable::queueSetLabel"]
[::std::mem::offset_of!(DawnProcTable, queueSetLabel) - 1168usize];
["Offset of field: DawnProcTable::queueSubmit"]
[::std::mem::offset_of!(DawnProcTable, queueSubmit) - 1176usize];
["Offset of field: DawnProcTable::queueWriteBuffer"]
[::std::mem::offset_of!(DawnProcTable, queueWriteBuffer) - 1184usize];
["Offset of field: DawnProcTable::queueWriteTexture"]
[::std::mem::offset_of!(DawnProcTable, queueWriteTexture) - 1192usize];
["Offset of field: DawnProcTable::queueAddRef"]
[::std::mem::offset_of!(DawnProcTable, queueAddRef) - 1200usize];
["Offset of field: DawnProcTable::queueRelease"]
[::std::mem::offset_of!(DawnProcTable, queueRelease) - 1208usize];
["Offset of field: DawnProcTable::renderBundleSetLabel"]
[::std::mem::offset_of!(DawnProcTable, renderBundleSetLabel) - 1216usize];
["Offset of field: DawnProcTable::renderBundleAddRef"]
[::std::mem::offset_of!(DawnProcTable, renderBundleAddRef) - 1224usize];
["Offset of field: DawnProcTable::renderBundleRelease"]
[::std::mem::offset_of!(DawnProcTable, renderBundleRelease) - 1232usize];
["Offset of field: DawnProcTable::renderBundleEncoderDraw"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderDraw) - 1240usize];
["Offset of field: DawnProcTable::renderBundleEncoderDrawIndexed"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderDrawIndexed) - 1248usize];
["Offset of field: DawnProcTable::renderBundleEncoderDrawIndexedIndirect"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderDrawIndexedIndirect) - 1256usize];
["Offset of field: DawnProcTable::renderBundleEncoderDrawIndirect"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderDrawIndirect) - 1264usize];
["Offset of field: DawnProcTable::renderBundleEncoderFinish"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderFinish) - 1272usize];
["Offset of field: DawnProcTable::renderBundleEncoderInsertDebugMarker"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderInsertDebugMarker) - 1280usize];
["Offset of field: DawnProcTable::renderBundleEncoderPopDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderPopDebugGroup) - 1288usize];
["Offset of field: DawnProcTable::renderBundleEncoderPushDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderPushDebugGroup) - 1296usize];
["Offset of field: DawnProcTable::renderBundleEncoderSetBindGroup"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderSetBindGroup) - 1304usize];
["Offset of field: DawnProcTable::renderBundleEncoderSetImmediates"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderSetImmediates) - 1312usize];
["Offset of field: DawnProcTable::renderBundleEncoderSetIndexBuffer"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderSetIndexBuffer) - 1320usize];
["Offset of field: DawnProcTable::renderBundleEncoderSetLabel"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderSetLabel) - 1328usize];
["Offset of field: DawnProcTable::renderBundleEncoderSetPipeline"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderSetPipeline) - 1336usize];
["Offset of field: DawnProcTable::renderBundleEncoderSetResourceTable"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderSetResourceTable) - 1344usize];
["Offset of field: DawnProcTable::renderBundleEncoderSetVertexBuffer"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderSetVertexBuffer) - 1352usize];
["Offset of field: DawnProcTable::renderBundleEncoderAddRef"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderAddRef) - 1360usize];
["Offset of field: DawnProcTable::renderBundleEncoderRelease"]
[::std::mem::offset_of!(DawnProcTable, renderBundleEncoderRelease) - 1368usize];
["Offset of field: DawnProcTable::renderPassEncoderBeginOcclusionQuery"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderBeginOcclusionQuery) - 1376usize];
["Offset of field: DawnProcTable::renderPassEncoderDraw"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderDraw) - 1384usize];
["Offset of field: DawnProcTable::renderPassEncoderDrawIndexed"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderDrawIndexed) - 1392usize];
["Offset of field: DawnProcTable::renderPassEncoderDrawIndexedIndirect"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderDrawIndexedIndirect) - 1400usize];
["Offset of field: DawnProcTable::renderPassEncoderDrawIndirect"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderDrawIndirect) - 1408usize];
["Offset of field: DawnProcTable::renderPassEncoderEnd"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderEnd) - 1416usize];
["Offset of field: DawnProcTable::renderPassEncoderEndOcclusionQuery"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderEndOcclusionQuery) - 1424usize];
["Offset of field: DawnProcTable::renderPassEncoderExecuteBundles"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderExecuteBundles) - 1432usize];
["Offset of field: DawnProcTable::renderPassEncoderInsertDebugMarker"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderInsertDebugMarker) - 1440usize];
["Offset of field: DawnProcTable::renderPassEncoderMultiDrawIndexedIndirect"][::std::mem::offset_of!(
DawnProcTable,
renderPassEncoderMultiDrawIndexedIndirect
) - 1448usize];
["Offset of field: DawnProcTable::renderPassEncoderMultiDrawIndirect"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderMultiDrawIndirect) - 1456usize];
["Offset of field: DawnProcTable::renderPassEncoderPixelLocalStorageBarrier"][::std::mem::offset_of!(
DawnProcTable,
renderPassEncoderPixelLocalStorageBarrier
) - 1464usize];
["Offset of field: DawnProcTable::renderPassEncoderPopDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderPopDebugGroup) - 1472usize];
["Offset of field: DawnProcTable::renderPassEncoderPushDebugGroup"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderPushDebugGroup) - 1480usize];
["Offset of field: DawnProcTable::renderPassEncoderSetBindGroup"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetBindGroup) - 1488usize];
["Offset of field: DawnProcTable::renderPassEncoderSetBlendConstant"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetBlendConstant) - 1496usize];
["Offset of field: DawnProcTable::renderPassEncoderSetImmediates"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetImmediates) - 1504usize];
["Offset of field: DawnProcTable::renderPassEncoderSetIndexBuffer"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetIndexBuffer) - 1512usize];
["Offset of field: DawnProcTable::renderPassEncoderSetLabel"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetLabel) - 1520usize];
["Offset of field: DawnProcTable::renderPassEncoderSetPipeline"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetPipeline) - 1528usize];
["Offset of field: DawnProcTable::renderPassEncoderSetResourceTable"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetResourceTable) - 1536usize];
["Offset of field: DawnProcTable::renderPassEncoderSetScissorRect"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetScissorRect) - 1544usize];
["Offset of field: DawnProcTable::renderPassEncoderSetStencilReference"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetStencilReference) - 1552usize];
["Offset of field: DawnProcTable::renderPassEncoderSetVertexBuffer"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetVertexBuffer) - 1560usize];
["Offset of field: DawnProcTable::renderPassEncoderSetViewport"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderSetViewport) - 1568usize];
["Offset of field: DawnProcTable::renderPassEncoderWriteTimestamp"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderWriteTimestamp) - 1576usize];
["Offset of field: DawnProcTable::renderPassEncoderAddRef"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderAddRef) - 1584usize];
["Offset of field: DawnProcTable::renderPassEncoderRelease"]
[::std::mem::offset_of!(DawnProcTable, renderPassEncoderRelease) - 1592usize];
["Offset of field: DawnProcTable::renderPipelineGetBindGroupLayout"]
[::std::mem::offset_of!(DawnProcTable, renderPipelineGetBindGroupLayout) - 1600usize];
["Offset of field: DawnProcTable::renderPipelineSetLabel"]
[::std::mem::offset_of!(DawnProcTable, renderPipelineSetLabel) - 1608usize];
["Offset of field: DawnProcTable::renderPipelineAddRef"]
[::std::mem::offset_of!(DawnProcTable, renderPipelineAddRef) - 1616usize];
["Offset of field: DawnProcTable::renderPipelineRelease"]
[::std::mem::offset_of!(DawnProcTable, renderPipelineRelease) - 1624usize];
["Offset of field: DawnProcTable::resourceTableDestroy"]
[::std::mem::offset_of!(DawnProcTable, resourceTableDestroy) - 1632usize];
["Offset of field: DawnProcTable::resourceTableGetSize"]
[::std::mem::offset_of!(DawnProcTable, resourceTableGetSize) - 1640usize];
["Offset of field: DawnProcTable::resourceTableInsertBinding"]
[::std::mem::offset_of!(DawnProcTable, resourceTableInsertBinding) - 1648usize];
["Offset of field: DawnProcTable::resourceTableRemoveBinding"]
[::std::mem::offset_of!(DawnProcTable, resourceTableRemoveBinding) - 1656usize];
["Offset of field: DawnProcTable::resourceTableUpdate"]
[::std::mem::offset_of!(DawnProcTable, resourceTableUpdate) - 1664usize];
["Offset of field: DawnProcTable::resourceTableAddRef"]
[::std::mem::offset_of!(DawnProcTable, resourceTableAddRef) - 1672usize];
["Offset of field: DawnProcTable::resourceTableRelease"]
[::std::mem::offset_of!(DawnProcTable, resourceTableRelease) - 1680usize];
["Offset of field: DawnProcTable::samplerSetLabel"]
[::std::mem::offset_of!(DawnProcTable, samplerSetLabel) - 1688usize];
["Offset of field: DawnProcTable::samplerAddRef"]
[::std::mem::offset_of!(DawnProcTable, samplerAddRef) - 1696usize];
["Offset of field: DawnProcTable::samplerRelease"]
[::std::mem::offset_of!(DawnProcTable, samplerRelease) - 1704usize];
["Offset of field: DawnProcTable::shaderModuleGetCompilationInfo"]
[::std::mem::offset_of!(DawnProcTable, shaderModuleGetCompilationInfo) - 1712usize];
["Offset of field: DawnProcTable::shaderModuleSetLabel"]
[::std::mem::offset_of!(DawnProcTable, shaderModuleSetLabel) - 1720usize];
["Offset of field: DawnProcTable::shaderModuleAddRef"]
[::std::mem::offset_of!(DawnProcTable, shaderModuleAddRef) - 1728usize];
["Offset of field: DawnProcTable::shaderModuleRelease"]
[::std::mem::offset_of!(DawnProcTable, shaderModuleRelease) - 1736usize];
["Offset of field: DawnProcTable::sharedBufferMemoryBeginAccess"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemoryBeginAccess) - 1744usize];
["Offset of field: DawnProcTable::sharedBufferMemoryCreateBuffer"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemoryCreateBuffer) - 1752usize];
["Offset of field: DawnProcTable::sharedBufferMemoryEndAccess"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemoryEndAccess) - 1760usize];
["Offset of field: DawnProcTable::sharedBufferMemoryGetProperties"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemoryGetProperties) - 1768usize];
["Offset of field: DawnProcTable::sharedBufferMemoryIsDeviceLost"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemoryIsDeviceLost) - 1776usize];
["Offset of field: DawnProcTable::sharedBufferMemorySetLabel"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemorySetLabel) - 1784usize];
["Offset of field: DawnProcTable::sharedBufferMemoryAddRef"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemoryAddRef) - 1792usize];
["Offset of field: DawnProcTable::sharedBufferMemoryRelease"]
[::std::mem::offset_of!(DawnProcTable, sharedBufferMemoryRelease) - 1800usize];
["Offset of field: DawnProcTable::sharedBufferMemoryEndAccessStateFreeMembers"][::std::mem::offset_of!(
DawnProcTable,
sharedBufferMemoryEndAccessStateFreeMembers
) - 1808usize];
["Offset of field: DawnProcTable::sharedFenceExportInfo"]
[::std::mem::offset_of!(DawnProcTable, sharedFenceExportInfo) - 1816usize];
["Offset of field: DawnProcTable::sharedFenceSetLabel"]
[::std::mem::offset_of!(DawnProcTable, sharedFenceSetLabel) - 1824usize];
["Offset of field: DawnProcTable::sharedFenceAddRef"]
[::std::mem::offset_of!(DawnProcTable, sharedFenceAddRef) - 1832usize];
["Offset of field: DawnProcTable::sharedFenceRelease"]
[::std::mem::offset_of!(DawnProcTable, sharedFenceRelease) - 1840usize];
["Offset of field: DawnProcTable::sharedTextureMemoryBeginAccess"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemoryBeginAccess) - 1848usize];
["Offset of field: DawnProcTable::sharedTextureMemoryCreateTexture"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemoryCreateTexture) - 1856usize];
["Offset of field: DawnProcTable::sharedTextureMemoryEndAccess"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemoryEndAccess) - 1864usize];
["Offset of field: DawnProcTable::sharedTextureMemoryGetProperties"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemoryGetProperties) - 1872usize];
["Offset of field: DawnProcTable::sharedTextureMemoryIsDeviceLost"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemoryIsDeviceLost) - 1880usize];
["Offset of field: DawnProcTable::sharedTextureMemorySetLabel"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemorySetLabel) - 1888usize];
["Offset of field: DawnProcTable::sharedTextureMemoryAddRef"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemoryAddRef) - 1896usize];
["Offset of field: DawnProcTable::sharedTextureMemoryRelease"]
[::std::mem::offset_of!(DawnProcTable, sharedTextureMemoryRelease) - 1904usize];
["Offset of field: DawnProcTable::sharedTextureMemoryEndAccessStateFreeMembers"][::std::mem::offset_of!(
DawnProcTable,
sharedTextureMemoryEndAccessStateFreeMembers
) - 1912usize];
["Offset of field: DawnProcTable::supportedFeaturesFreeMembers"]
[::std::mem::offset_of!(DawnProcTable, supportedFeaturesFreeMembers) - 1920usize];
["Offset of field: DawnProcTable::supportedInstanceFeaturesFreeMembers"]
[::std::mem::offset_of!(DawnProcTable, supportedInstanceFeaturesFreeMembers) - 1928usize];
["Offset of field: DawnProcTable::supportedWGSLLanguageFeaturesFreeMembers"][::std::mem::offset_of!(
DawnProcTable,
supportedWGSLLanguageFeaturesFreeMembers
) - 1936usize];
["Offset of field: DawnProcTable::surfaceConfigure"]
[::std::mem::offset_of!(DawnProcTable, surfaceConfigure) - 1944usize];
["Offset of field: DawnProcTable::surfaceGetCapabilities"]
[::std::mem::offset_of!(DawnProcTable, surfaceGetCapabilities) - 1952usize];
["Offset of field: DawnProcTable::surfaceGetCurrentTexture"]
[::std::mem::offset_of!(DawnProcTable, surfaceGetCurrentTexture) - 1960usize];
["Offset of field: DawnProcTable::surfacePresent"]
[::std::mem::offset_of!(DawnProcTable, surfacePresent) - 1968usize];
["Offset of field: DawnProcTable::surfaceSetLabel"]
[::std::mem::offset_of!(DawnProcTable, surfaceSetLabel) - 1976usize];
["Offset of field: DawnProcTable::surfaceUnconfigure"]
[::std::mem::offset_of!(DawnProcTable, surfaceUnconfigure) - 1984usize];
["Offset of field: DawnProcTable::surfaceAddRef"]
[::std::mem::offset_of!(DawnProcTable, surfaceAddRef) - 1992usize];
["Offset of field: DawnProcTable::surfaceRelease"]
[::std::mem::offset_of!(DawnProcTable, surfaceRelease) - 2000usize];
["Offset of field: DawnProcTable::surfaceCapabilitiesFreeMembers"]
[::std::mem::offset_of!(DawnProcTable, surfaceCapabilitiesFreeMembers) - 2008usize];
["Offset of field: DawnProcTable::texelBufferViewSetLabel"]
[::std::mem::offset_of!(DawnProcTable, texelBufferViewSetLabel) - 2016usize];
["Offset of field: DawnProcTable::texelBufferViewAddRef"]
[::std::mem::offset_of!(DawnProcTable, texelBufferViewAddRef) - 2024usize];
["Offset of field: DawnProcTable::texelBufferViewRelease"]
[::std::mem::offset_of!(DawnProcTable, texelBufferViewRelease) - 2032usize];
["Offset of field: DawnProcTable::textureCreateErrorView"]
[::std::mem::offset_of!(DawnProcTable, textureCreateErrorView) - 2040usize];
["Offset of field: DawnProcTable::textureCreateView"]
[::std::mem::offset_of!(DawnProcTable, textureCreateView) - 2048usize];
["Offset of field: DawnProcTable::textureDestroy"]
[::std::mem::offset_of!(DawnProcTable, textureDestroy) - 2056usize];
["Offset of field: DawnProcTable::textureGetDepthOrArrayLayers"]
[::std::mem::offset_of!(DawnProcTable, textureGetDepthOrArrayLayers) - 2064usize];
["Offset of field: DawnProcTable::textureGetDimension"]
[::std::mem::offset_of!(DawnProcTable, textureGetDimension) - 2072usize];
["Offset of field: DawnProcTable::textureGetFormat"]
[::std::mem::offset_of!(DawnProcTable, textureGetFormat) - 2080usize];
["Offset of field: DawnProcTable::textureGetHeight"]
[::std::mem::offset_of!(DawnProcTable, textureGetHeight) - 2088usize];
["Offset of field: DawnProcTable::textureGetMipLevelCount"]
[::std::mem::offset_of!(DawnProcTable, textureGetMipLevelCount) - 2096usize];
["Offset of field: DawnProcTable::textureGetSampleCount"]
[::std::mem::offset_of!(DawnProcTable, textureGetSampleCount) - 2104usize];
["Offset of field: DawnProcTable::textureGetTextureBindingViewDimension"]
[::std::mem::offset_of!(DawnProcTable, textureGetTextureBindingViewDimension) - 2112usize];
["Offset of field: DawnProcTable::textureGetUsage"]
[::std::mem::offset_of!(DawnProcTable, textureGetUsage) - 2120usize];
["Offset of field: DawnProcTable::textureGetWidth"]
[::std::mem::offset_of!(DawnProcTable, textureGetWidth) - 2128usize];
["Offset of field: DawnProcTable::texturePin"]
[::std::mem::offset_of!(DawnProcTable, texturePin) - 2136usize];
["Offset of field: DawnProcTable::textureSetLabel"]
[::std::mem::offset_of!(DawnProcTable, textureSetLabel) - 2144usize];
["Offset of field: DawnProcTable::textureSetOwnershipForMemoryDump"]
[::std::mem::offset_of!(DawnProcTable, textureSetOwnershipForMemoryDump) - 2152usize];
["Offset of field: DawnProcTable::textureUnpin"]
[::std::mem::offset_of!(DawnProcTable, textureUnpin) - 2160usize];
["Offset of field: DawnProcTable::textureAddRef"]
[::std::mem::offset_of!(DawnProcTable, textureAddRef) - 2168usize];
["Offset of field: DawnProcTable::textureRelease"]
[::std::mem::offset_of!(DawnProcTable, textureRelease) - 2176usize];
["Offset of field: DawnProcTable::textureViewSetLabel"]
[::std::mem::offset_of!(DawnProcTable, textureViewSetLabel) - 2184usize];
["Offset of field: DawnProcTable::textureViewAddRef"]
[::std::mem::offset_of!(DawnProcTable, textureViewAddRef) - 2192usize];
["Offset of field: DawnProcTable::textureViewRelease"]
[::std::mem::offset_of!(DawnProcTable, textureViewRelease) - 2200usize];
};