|
@@ -53,6 +53,9 @@
|
|
|
#include <stdbool.h>
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL)
|
|
#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL)
|
|
|
|
|
+// TODO(crbug.com/520): Remove WGPU_STRIDE_UNDEFINED in favor of WGPU_COPY_STRIDE_UNDEFINED.
|
|
|
|
|
+#define WGPU_STRIDE_UNDEFINED (0xffffffffUL)
|
|
|
|
|
+#define WGPU_COPY_STRIDE_UNDEFINED (0xffffffffUL)
|
|
|
|
|
|
|
|
typedef uint32_t WGPUFlags;
|
|
typedef uint32_t WGPUFlags;
|
|
|
|
|
|
|
@@ -67,6 +70,7 @@ typedef struct WGPUDeviceImpl* WGPUDevice;
|
|
|
typedef struct WGPUFenceImpl* WGPUFence;
|
|
typedef struct WGPUFenceImpl* WGPUFence;
|
|
|
typedef struct WGPUInstanceImpl* WGPUInstance;
|
|
typedef struct WGPUInstanceImpl* WGPUInstance;
|
|
|
typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout;
|
|
typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout;
|
|
|
|
|
+typedef struct WGPUQuerySetImpl* WGPUQuerySet;
|
|
|
typedef struct WGPUQueueImpl* WGPUQueue;
|
|
typedef struct WGPUQueueImpl* WGPUQueue;
|
|
|
typedef struct WGPURenderBundleImpl* WGPURenderBundle;
|
|
typedef struct WGPURenderBundleImpl* WGPURenderBundle;
|
|
|
typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder;
|
|
typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder;
|
|
@@ -106,15 +110,16 @@ typedef enum WGPUBackendType {
|
|
|
} WGPUBackendType;
|
|
} WGPUBackendType;
|
|
|
|
|
|
|
|
typedef enum WGPUBindingType {
|
|
typedef enum WGPUBindingType {
|
|
|
- WGPUBindingType_UniformBuffer = 0x00000000,
|
|
|
|
|
- WGPUBindingType_StorageBuffer = 0x00000001,
|
|
|
|
|
- WGPUBindingType_ReadonlyStorageBuffer = 0x00000002,
|
|
|
|
|
- WGPUBindingType_Sampler = 0x00000003,
|
|
|
|
|
- WGPUBindingType_ComparisonSampler = 0x00000004,
|
|
|
|
|
- WGPUBindingType_SampledTexture = 0x00000005,
|
|
|
|
|
- WGPUBindingType_StorageTexture = 0x00000006,
|
|
|
|
|
- WGPUBindingType_ReadonlyStorageTexture = 0x00000007,
|
|
|
|
|
- WGPUBindingType_WriteonlyStorageTexture = 0x00000008,
|
|
|
|
|
|
|
+ WGPUBindingType_Undefined = 0x00000000,
|
|
|
|
|
+ WGPUBindingType_UniformBuffer = 0x00000001,
|
|
|
|
|
+ WGPUBindingType_StorageBuffer = 0x00000002,
|
|
|
|
|
+ WGPUBindingType_ReadonlyStorageBuffer = 0x00000003,
|
|
|
|
|
+ WGPUBindingType_Sampler = 0x00000004,
|
|
|
|
|
+ WGPUBindingType_ComparisonSampler = 0x00000005,
|
|
|
|
|
+ WGPUBindingType_SampledTexture = 0x00000006,
|
|
|
|
|
+ WGPUBindingType_MultisampledTexture = 0x00000007,
|
|
|
|
|
+ WGPUBindingType_ReadonlyStorageTexture = 0x00000008,
|
|
|
|
|
+ WGPUBindingType_WriteonlyStorageTexture = 0x00000009,
|
|
|
WGPUBindingType_Force32 = 0x7FFFFFFF
|
|
WGPUBindingType_Force32 = 0x7FFFFFFF
|
|
|
} WGPUBindingType;
|
|
} WGPUBindingType;
|
|
|
|
|
|
|
@@ -144,11 +149,21 @@ typedef enum WGPUBlendOperation {
|
|
|
WGPUBlendOperation_Force32 = 0x7FFFFFFF
|
|
WGPUBlendOperation_Force32 = 0x7FFFFFFF
|
|
|
} WGPUBlendOperation;
|
|
} WGPUBlendOperation;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUBufferBindingType {
|
|
|
|
|
+ WGPUBufferBindingType_Undefined = 0x00000000,
|
|
|
|
|
+ WGPUBufferBindingType_Uniform = 0x00000001,
|
|
|
|
|
+ WGPUBufferBindingType_Storage = 0x00000002,
|
|
|
|
|
+ WGPUBufferBindingType_ReadOnlyStorage = 0x00000003,
|
|
|
|
|
+ WGPUBufferBindingType_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUBufferBindingType;
|
|
|
|
|
+
|
|
|
typedef enum WGPUBufferMapAsyncStatus {
|
|
typedef enum WGPUBufferMapAsyncStatus {
|
|
|
WGPUBufferMapAsyncStatus_Success = 0x00000000,
|
|
WGPUBufferMapAsyncStatus_Success = 0x00000000,
|
|
|
WGPUBufferMapAsyncStatus_Error = 0x00000001,
|
|
WGPUBufferMapAsyncStatus_Error = 0x00000001,
|
|
|
WGPUBufferMapAsyncStatus_Unknown = 0x00000002,
|
|
WGPUBufferMapAsyncStatus_Unknown = 0x00000002,
|
|
|
WGPUBufferMapAsyncStatus_DeviceLost = 0x00000003,
|
|
WGPUBufferMapAsyncStatus_DeviceLost = 0x00000003,
|
|
|
|
|
+ WGPUBufferMapAsyncStatus_DestroyedBeforeCallback = 0x00000004,
|
|
|
|
|
+ WGPUBufferMapAsyncStatus_UnmappedBeforeCallback = 0x00000005,
|
|
|
WGPUBufferMapAsyncStatus_Force32 = 0x7FFFFFFF
|
|
WGPUBufferMapAsyncStatus_Force32 = 0x7FFFFFFF
|
|
|
} WGPUBufferMapAsyncStatus;
|
|
} WGPUBufferMapAsyncStatus;
|
|
|
|
|
|
|
@@ -165,6 +180,15 @@ typedef enum WGPUCompareFunction {
|
|
|
WGPUCompareFunction_Force32 = 0x7FFFFFFF
|
|
WGPUCompareFunction_Force32 = 0x7FFFFFFF
|
|
|
} WGPUCompareFunction;
|
|
} WGPUCompareFunction;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUCreateReadyPipelineStatus {
|
|
|
|
|
+ WGPUCreateReadyPipelineStatus_Success = 0x00000000,
|
|
|
|
|
+ WGPUCreateReadyPipelineStatus_Error = 0x00000001,
|
|
|
|
|
+ WGPUCreateReadyPipelineStatus_DeviceLost = 0x00000002,
|
|
|
|
|
+ WGPUCreateReadyPipelineStatus_DeviceDestroyed = 0x00000003,
|
|
|
|
|
+ WGPUCreateReadyPipelineStatus_Unknown = 0x00000004,
|
|
|
|
|
+ WGPUCreateReadyPipelineStatus_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUCreateReadyPipelineStatus;
|
|
|
|
|
+
|
|
|
typedef enum WGPUCullMode {
|
|
typedef enum WGPUCullMode {
|
|
|
WGPUCullMode_None = 0x00000000,
|
|
WGPUCullMode_None = 0x00000000,
|
|
|
WGPUCullMode_Front = 0x00000001,
|
|
WGPUCullMode_Front = 0x00000001,
|
|
@@ -209,8 +233,9 @@ typedef enum WGPUFrontFace {
|
|
|
} WGPUFrontFace;
|
|
} WGPUFrontFace;
|
|
|
|
|
|
|
|
typedef enum WGPUIndexFormat {
|
|
typedef enum WGPUIndexFormat {
|
|
|
- WGPUIndexFormat_Uint16 = 0x00000000,
|
|
|
|
|
- WGPUIndexFormat_Uint32 = 0x00000001,
|
|
|
|
|
|
|
+ WGPUIndexFormat_Undefined = 0x00000000,
|
|
|
|
|
+ WGPUIndexFormat_Uint16 = 0x00000001,
|
|
|
|
|
+ WGPUIndexFormat_Uint32 = 0x00000002,
|
|
|
WGPUIndexFormat_Force32 = 0x7FFFFFFF
|
|
WGPUIndexFormat_Force32 = 0x7FFFFFFF
|
|
|
} WGPUIndexFormat;
|
|
} WGPUIndexFormat;
|
|
|
|
|
|
|
@@ -226,6 +251,15 @@ typedef enum WGPULoadOp {
|
|
|
WGPULoadOp_Force32 = 0x7FFFFFFF
|
|
WGPULoadOp_Force32 = 0x7FFFFFFF
|
|
|
} WGPULoadOp;
|
|
} WGPULoadOp;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUPipelineStatisticName {
|
|
|
|
|
+ WGPUPipelineStatisticName_VertexShaderInvocations = 0x00000000,
|
|
|
|
|
+ WGPUPipelineStatisticName_ClipperInvocations = 0x00000001,
|
|
|
|
|
+ WGPUPipelineStatisticName_ClipperPrimitivesOut = 0x00000002,
|
|
|
|
|
+ WGPUPipelineStatisticName_FragmentShaderInvocations = 0x00000003,
|
|
|
|
|
+ WGPUPipelineStatisticName_ComputeShaderInvocations = 0x00000004,
|
|
|
|
|
+ WGPUPipelineStatisticName_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUPipelineStatisticName;
|
|
|
|
|
+
|
|
|
typedef enum WGPUPresentMode {
|
|
typedef enum WGPUPresentMode {
|
|
|
WGPUPresentMode_Immediate = 0x00000000,
|
|
WGPUPresentMode_Immediate = 0x00000000,
|
|
|
WGPUPresentMode_Mailbox = 0x00000001,
|
|
WGPUPresentMode_Mailbox = 0x00000001,
|
|
@@ -242,12 +276,19 @@ typedef enum WGPUPrimitiveTopology {
|
|
|
WGPUPrimitiveTopology_Force32 = 0x7FFFFFFF
|
|
WGPUPrimitiveTopology_Force32 = 0x7FFFFFFF
|
|
|
} WGPUPrimitiveTopology;
|
|
} WGPUPrimitiveTopology;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUQueryType {
|
|
|
|
|
+ WGPUQueryType_Occlusion = 0x00000000,
|
|
|
|
|
+ WGPUQueryType_PipelineStatistics = 0x00000001,
|
|
|
|
|
+ WGPUQueryType_Timestamp = 0x00000002,
|
|
|
|
|
+ WGPUQueryType_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUQueryType;
|
|
|
|
|
+
|
|
|
typedef enum WGPUSType {
|
|
typedef enum WGPUSType {
|
|
|
WGPUSType_Invalid = 0x00000000,
|
|
WGPUSType_Invalid = 0x00000000,
|
|
|
WGPUSType_SurfaceDescriptorFromMetalLayer = 0x00000001,
|
|
WGPUSType_SurfaceDescriptorFromMetalLayer = 0x00000001,
|
|
|
WGPUSType_SurfaceDescriptorFromWindowsHWND = 0x00000002,
|
|
WGPUSType_SurfaceDescriptorFromWindowsHWND = 0x00000002,
|
|
|
WGPUSType_SurfaceDescriptorFromXlib = 0x00000003,
|
|
WGPUSType_SurfaceDescriptorFromXlib = 0x00000003,
|
|
|
- WGPUSType_SurfaceDescriptorFromHTMLCanvasId = 0x00000004,
|
|
|
|
|
|
|
+ WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector = 0x00000004,
|
|
|
WGPUSType_ShaderModuleSPIRVDescriptor = 0x00000005,
|
|
WGPUSType_ShaderModuleSPIRVDescriptor = 0x00000005,
|
|
|
WGPUSType_ShaderModuleWGSLDescriptor = 0x00000006,
|
|
WGPUSType_ShaderModuleWGSLDescriptor = 0x00000006,
|
|
|
WGPUSType_SamplerDescriptorDummyAnisotropicFiltering = 0x00000007,
|
|
WGPUSType_SamplerDescriptorDummyAnisotropicFiltering = 0x00000007,
|
|
@@ -255,6 +296,14 @@ typedef enum WGPUSType {
|
|
|
WGPUSType_Force32 = 0x7FFFFFFF
|
|
WGPUSType_Force32 = 0x7FFFFFFF
|
|
|
} WGPUSType;
|
|
} WGPUSType;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUSamplerBindingType {
|
|
|
|
|
+ WGPUSamplerBindingType_Undefined = 0x00000000,
|
|
|
|
|
+ WGPUSamplerBindingType_Filtering = 0x00000001,
|
|
|
|
|
+ WGPUSamplerBindingType_NonFiltering = 0x00000002,
|
|
|
|
|
+ WGPUSamplerBindingType_Comparison = 0x00000003,
|
|
|
|
|
+ WGPUSamplerBindingType_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUSamplerBindingType;
|
|
|
|
|
+
|
|
|
typedef enum WGPUStencilOperation {
|
|
typedef enum WGPUStencilOperation {
|
|
|
WGPUStencilOperation_Keep = 0x00000000,
|
|
WGPUStencilOperation_Keep = 0x00000000,
|
|
|
WGPUStencilOperation_Zero = 0x00000001,
|
|
WGPUStencilOperation_Zero = 0x00000001,
|
|
@@ -267,6 +316,13 @@ typedef enum WGPUStencilOperation {
|
|
|
WGPUStencilOperation_Force32 = 0x7FFFFFFF
|
|
WGPUStencilOperation_Force32 = 0x7FFFFFFF
|
|
|
} WGPUStencilOperation;
|
|
} WGPUStencilOperation;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUStorageTextureAccess {
|
|
|
|
|
+ WGPUStorageTextureAccess_Undefined = 0x00000000,
|
|
|
|
|
+ WGPUStorageTextureAccess_ReadOnly = 0x00000001,
|
|
|
|
|
+ WGPUStorageTextureAccess_WriteOnly = 0x00000002,
|
|
|
|
|
+ WGPUStorageTextureAccess_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUStorageTextureAccess;
|
|
|
|
|
+
|
|
|
typedef enum WGPUStoreOp {
|
|
typedef enum WGPUStoreOp {
|
|
|
WGPUStoreOp_Store = 0x00000000,
|
|
WGPUStoreOp_Store = 0x00000000,
|
|
|
WGPUStoreOp_Clear = 0x00000001,
|
|
WGPUStoreOp_Clear = 0x00000001,
|
|
@@ -284,6 +340,7 @@ typedef enum WGPUTextureComponentType {
|
|
|
WGPUTextureComponentType_Float = 0x00000000,
|
|
WGPUTextureComponentType_Float = 0x00000000,
|
|
|
WGPUTextureComponentType_Sint = 0x00000001,
|
|
WGPUTextureComponentType_Sint = 0x00000001,
|
|
|
WGPUTextureComponentType_Uint = 0x00000002,
|
|
WGPUTextureComponentType_Uint = 0x00000002,
|
|
|
|
|
+ WGPUTextureComponentType_DepthComparison = 0x00000003,
|
|
|
WGPUTextureComponentType_Force32 = 0x7FFFFFFF
|
|
WGPUTextureComponentType_Force32 = 0x7FFFFFFF
|
|
|
} WGPUTextureComponentType;
|
|
} WGPUTextureComponentType;
|
|
|
|
|
|
|
@@ -321,36 +378,47 @@ typedef enum WGPUTextureFormat {
|
|
|
WGPUTextureFormat_BGRA8Unorm = 0x00000017,
|
|
WGPUTextureFormat_BGRA8Unorm = 0x00000017,
|
|
|
WGPUTextureFormat_BGRA8UnormSrgb = 0x00000018,
|
|
WGPUTextureFormat_BGRA8UnormSrgb = 0x00000018,
|
|
|
WGPUTextureFormat_RGB10A2Unorm = 0x00000019,
|
|
WGPUTextureFormat_RGB10A2Unorm = 0x00000019,
|
|
|
- WGPUTextureFormat_RG11B10Float = 0x0000001A,
|
|
|
|
|
- WGPUTextureFormat_RG32Float = 0x0000001B,
|
|
|
|
|
- WGPUTextureFormat_RG32Uint = 0x0000001C,
|
|
|
|
|
- WGPUTextureFormat_RG32Sint = 0x0000001D,
|
|
|
|
|
- WGPUTextureFormat_RGBA16Uint = 0x0000001E,
|
|
|
|
|
- WGPUTextureFormat_RGBA16Sint = 0x0000001F,
|
|
|
|
|
- WGPUTextureFormat_RGBA16Float = 0x00000020,
|
|
|
|
|
- WGPUTextureFormat_RGBA32Float = 0x00000021,
|
|
|
|
|
- WGPUTextureFormat_RGBA32Uint = 0x00000022,
|
|
|
|
|
- WGPUTextureFormat_RGBA32Sint = 0x00000023,
|
|
|
|
|
- WGPUTextureFormat_Depth32Float = 0x00000024,
|
|
|
|
|
- WGPUTextureFormat_Depth24Plus = 0x00000025,
|
|
|
|
|
- WGPUTextureFormat_Depth24PlusStencil8 = 0x00000026,
|
|
|
|
|
- WGPUTextureFormat_BC1RGBAUnorm = 0x00000027,
|
|
|
|
|
- WGPUTextureFormat_BC1RGBAUnormSrgb = 0x00000028,
|
|
|
|
|
- WGPUTextureFormat_BC2RGBAUnorm = 0x00000029,
|
|
|
|
|
- WGPUTextureFormat_BC2RGBAUnormSrgb = 0x0000002A,
|
|
|
|
|
- WGPUTextureFormat_BC3RGBAUnorm = 0x0000002B,
|
|
|
|
|
- WGPUTextureFormat_BC3RGBAUnormSrgb = 0x0000002C,
|
|
|
|
|
- WGPUTextureFormat_BC4RUnorm = 0x0000002D,
|
|
|
|
|
- WGPUTextureFormat_BC4RSnorm = 0x0000002E,
|
|
|
|
|
- WGPUTextureFormat_BC5RGUnorm = 0x0000002F,
|
|
|
|
|
- WGPUTextureFormat_BC5RGSnorm = 0x00000030,
|
|
|
|
|
- WGPUTextureFormat_BC6HRGBUfloat = 0x00000031,
|
|
|
|
|
- WGPUTextureFormat_BC6HRGBSfloat = 0x00000032,
|
|
|
|
|
- WGPUTextureFormat_BC7RGBAUnorm = 0x00000033,
|
|
|
|
|
- WGPUTextureFormat_BC7RGBAUnormSrgb = 0x00000034,
|
|
|
|
|
|
|
+ WGPUTextureFormat_RG11B10Ufloat = 0x0000001A,
|
|
|
|
|
+ WGPUTextureFormat_RGB9E5Ufloat = 0x0000001B,
|
|
|
|
|
+ WGPUTextureFormat_RG32Float = 0x0000001C,
|
|
|
|
|
+ WGPUTextureFormat_RG32Uint = 0x0000001D,
|
|
|
|
|
+ WGPUTextureFormat_RG32Sint = 0x0000001E,
|
|
|
|
|
+ WGPUTextureFormat_RGBA16Uint = 0x0000001F,
|
|
|
|
|
+ WGPUTextureFormat_RGBA16Sint = 0x00000020,
|
|
|
|
|
+ WGPUTextureFormat_RGBA16Float = 0x00000021,
|
|
|
|
|
+ WGPUTextureFormat_RGBA32Float = 0x00000022,
|
|
|
|
|
+ WGPUTextureFormat_RGBA32Uint = 0x00000023,
|
|
|
|
|
+ WGPUTextureFormat_RGBA32Sint = 0x00000024,
|
|
|
|
|
+ WGPUTextureFormat_Depth32Float = 0x00000025,
|
|
|
|
|
+ WGPUTextureFormat_Depth24Plus = 0x00000026,
|
|
|
|
|
+ WGPUTextureFormat_Depth24PlusStencil8 = 0x00000027,
|
|
|
|
|
+ WGPUTextureFormat_BC1RGBAUnorm = 0x00000028,
|
|
|
|
|
+ WGPUTextureFormat_BC1RGBAUnormSrgb = 0x00000029,
|
|
|
|
|
+ WGPUTextureFormat_BC2RGBAUnorm = 0x0000002A,
|
|
|
|
|
+ WGPUTextureFormat_BC2RGBAUnormSrgb = 0x0000002B,
|
|
|
|
|
+ WGPUTextureFormat_BC3RGBAUnorm = 0x0000002C,
|
|
|
|
|
+ WGPUTextureFormat_BC3RGBAUnormSrgb = 0x0000002D,
|
|
|
|
|
+ WGPUTextureFormat_BC4RUnorm = 0x0000002E,
|
|
|
|
|
+ WGPUTextureFormat_BC4RSnorm = 0x0000002F,
|
|
|
|
|
+ WGPUTextureFormat_BC5RGUnorm = 0x00000030,
|
|
|
|
|
+ WGPUTextureFormat_BC5RGSnorm = 0x00000031,
|
|
|
|
|
+ WGPUTextureFormat_BC6HRGBUfloat = 0x00000032,
|
|
|
|
|
+ WGPUTextureFormat_BC6HRGBFloat = 0x00000033,
|
|
|
|
|
+ WGPUTextureFormat_BC7RGBAUnorm = 0x00000034,
|
|
|
|
|
+ WGPUTextureFormat_BC7RGBAUnormSrgb = 0x00000035,
|
|
|
WGPUTextureFormat_Force32 = 0x7FFFFFFF
|
|
WGPUTextureFormat_Force32 = 0x7FFFFFFF
|
|
|
} WGPUTextureFormat;
|
|
} WGPUTextureFormat;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUTextureSampleType {
|
|
|
|
|
+ WGPUTextureSampleType_Undefined = 0x00000000,
|
|
|
|
|
+ WGPUTextureSampleType_Float = 0x00000001,
|
|
|
|
|
+ WGPUTextureSampleType_UnfilterableFloat = 0x00000002,
|
|
|
|
|
+ WGPUTextureSampleType_Depth = 0x00000003,
|
|
|
|
|
+ WGPUTextureSampleType_Sint = 0x00000004,
|
|
|
|
|
+ WGPUTextureSampleType_Uint = 0x00000005,
|
|
|
|
|
+ WGPUTextureSampleType_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUTextureSampleType;
|
|
|
|
|
+
|
|
|
typedef enum WGPUTextureViewDimension {
|
|
typedef enum WGPUTextureViewDimension {
|
|
|
WGPUTextureViewDimension_Undefined = 0x00000000,
|
|
WGPUTextureViewDimension_Undefined = 0x00000000,
|
|
|
WGPUTextureViewDimension_1D = 0x00000001,
|
|
WGPUTextureViewDimension_1D = 0x00000001,
|
|
@@ -407,6 +475,7 @@ typedef enum WGPUBufferUsage {
|
|
|
WGPUBufferUsage_Uniform = 0x00000040,
|
|
WGPUBufferUsage_Uniform = 0x00000040,
|
|
|
WGPUBufferUsage_Storage = 0x00000080,
|
|
WGPUBufferUsage_Storage = 0x00000080,
|
|
|
WGPUBufferUsage_Indirect = 0x00000100,
|
|
WGPUBufferUsage_Indirect = 0x00000100,
|
|
|
|
|
+ WGPUBufferUsage_QueryResolve = 0x00000200,
|
|
|
WGPUBufferUsage_Force32 = 0x7FFFFFFF
|
|
WGPUBufferUsage_Force32 = 0x7FFFFFFF
|
|
|
} WGPUBufferUsage;
|
|
} WGPUBufferUsage;
|
|
|
typedef WGPUFlags WGPUBufferUsageFlags;
|
|
typedef WGPUFlags WGPUBufferUsageFlags;
|
|
@@ -422,6 +491,14 @@ typedef enum WGPUColorWriteMask {
|
|
|
} WGPUColorWriteMask;
|
|
} WGPUColorWriteMask;
|
|
|
typedef WGPUFlags WGPUColorWriteMaskFlags;
|
|
typedef WGPUFlags WGPUColorWriteMaskFlags;
|
|
|
|
|
|
|
|
|
|
+typedef enum WGPUMapMode {
|
|
|
|
|
+ WGPUMapMode_None = 0x00000000,
|
|
|
|
|
+ WGPUMapMode_Read = 0x00000001,
|
|
|
|
|
+ WGPUMapMode_Write = 0x00000002,
|
|
|
|
|
+ WGPUMapMode_Force32 = 0x7FFFFFFF
|
|
|
|
|
+} WGPUMapMode;
|
|
|
|
|
+typedef WGPUFlags WGPUMapModeFlags;
|
|
|
|
|
+
|
|
|
typedef enum WGPUShaderStage {
|
|
typedef enum WGPUShaderStage {
|
|
|
WGPUShaderStage_None = 0x00000000,
|
|
WGPUShaderStage_None = 0x00000000,
|
|
|
WGPUShaderStage_Vertex = 0x00000001,
|
|
WGPUShaderStage_Vertex = 0x00000001,
|
|
@@ -438,6 +515,7 @@ typedef enum WGPUTextureUsage {
|
|
|
WGPUTextureUsage_Sampled = 0x00000004,
|
|
WGPUTextureUsage_Sampled = 0x00000004,
|
|
|
WGPUTextureUsage_Storage = 0x00000008,
|
|
WGPUTextureUsage_Storage = 0x00000008,
|
|
|
WGPUTextureUsage_OutputAttachment = 0x00000010,
|
|
WGPUTextureUsage_OutputAttachment = 0x00000010,
|
|
|
|
|
+ WGPUTextureUsage_RenderAttachment = 0x00000010,
|
|
|
WGPUTextureUsage_Present = 0x00000020,
|
|
WGPUTextureUsage_Present = 0x00000020,
|
|
|
WGPUTextureUsage_Force32 = 0x7FFFFFFF
|
|
WGPUTextureUsage_Force32 = 0x7FFFFFFF
|
|
|
} WGPUTextureUsage;
|
|
} WGPUTextureUsage;
|
|
@@ -454,6 +532,7 @@ typedef struct WGPUAdapterProperties {
|
|
|
uint32_t deviceID;
|
|
uint32_t deviceID;
|
|
|
uint32_t vendorID;
|
|
uint32_t vendorID;
|
|
|
char const * name;
|
|
char const * name;
|
|
|
|
|
+ char const * driverDescription;
|
|
|
WGPUAdapterType adapterType;
|
|
WGPUAdapterType adapterType;
|
|
|
WGPUBackendType backendType;
|
|
WGPUBackendType backendType;
|
|
|
} WGPUAdapterProperties;
|
|
} WGPUAdapterProperties;
|
|
@@ -467,46 +546,32 @@ typedef struct WGPUBindGroupEntry {
|
|
|
WGPUTextureView textureView;
|
|
WGPUTextureView textureView;
|
|
|
} WGPUBindGroupEntry;
|
|
} WGPUBindGroupEntry;
|
|
|
|
|
|
|
|
-typedef struct WGPUBindGroupLayoutEntry {
|
|
|
|
|
- uint32_t binding;
|
|
|
|
|
- WGPUShaderStageFlags visibility;
|
|
|
|
|
- WGPUBindingType type;
|
|
|
|
|
- bool hasDynamicOffset;
|
|
|
|
|
- bool multisampled;
|
|
|
|
|
- WGPUTextureViewDimension textureDimension;
|
|
|
|
|
- WGPUTextureViewDimension viewDimension;
|
|
|
|
|
- WGPUTextureComponentType textureComponentType;
|
|
|
|
|
- WGPUTextureFormat storageTextureFormat;
|
|
|
|
|
-} WGPUBindGroupLayoutEntry;
|
|
|
|
|
-
|
|
|
|
|
typedef struct WGPUBlendDescriptor {
|
|
typedef struct WGPUBlendDescriptor {
|
|
|
WGPUBlendOperation operation;
|
|
WGPUBlendOperation operation;
|
|
|
WGPUBlendFactor srcFactor;
|
|
WGPUBlendFactor srcFactor;
|
|
|
WGPUBlendFactor dstFactor;
|
|
WGPUBlendFactor dstFactor;
|
|
|
} WGPUBlendDescriptor;
|
|
} WGPUBlendDescriptor;
|
|
|
|
|
|
|
|
-typedef struct WGPUBufferCopyView {
|
|
|
|
|
|
|
+typedef struct WGPUBufferBindingLayout {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
- WGPUBuffer buffer;
|
|
|
|
|
- uint64_t offset;
|
|
|
|
|
- uint32_t rowPitch;
|
|
|
|
|
- uint32_t imageHeight;
|
|
|
|
|
- uint32_t bytesPerRow;
|
|
|
|
|
- uint32_t rowsPerImage;
|
|
|
|
|
-} WGPUBufferCopyView;
|
|
|
|
|
|
|
+ WGPUBufferBindingType type;
|
|
|
|
|
+ bool hasDynamicOffset;
|
|
|
|
|
+ uint64_t minBindingSize;
|
|
|
|
|
+} WGPUBufferBindingLayout;
|
|
|
|
|
|
|
|
typedef struct WGPUBufferDescriptor {
|
|
typedef struct WGPUBufferDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
char const * label;
|
|
char const * label;
|
|
|
WGPUBufferUsageFlags usage;
|
|
WGPUBufferUsageFlags usage;
|
|
|
uint64_t size;
|
|
uint64_t size;
|
|
|
|
|
+ bool mappedAtCreation;
|
|
|
} WGPUBufferDescriptor;
|
|
} WGPUBufferDescriptor;
|
|
|
|
|
|
|
|
typedef struct WGPUColor {
|
|
typedef struct WGPUColor {
|
|
|
- float r;
|
|
|
|
|
- float g;
|
|
|
|
|
- float b;
|
|
|
|
|
- float a;
|
|
|
|
|
|
|
+ double r;
|
|
|
|
|
+ double g;
|
|
|
|
|
+ double b;
|
|
|
|
|
+ double a;
|
|
|
} WGPUColor;
|
|
} WGPUColor;
|
|
|
|
|
|
|
|
typedef struct WGPUCommandBufferDescriptor {
|
|
typedef struct WGPUCommandBufferDescriptor {
|
|
@@ -524,14 +589,16 @@ typedef struct WGPUComputePassDescriptor {
|
|
|
char const * label;
|
|
char const * label;
|
|
|
} WGPUComputePassDescriptor;
|
|
} WGPUComputePassDescriptor;
|
|
|
|
|
|
|
|
-typedef struct WGPUCreateBufferMappedResult {
|
|
|
|
|
- WGPUBuffer buffer;
|
|
|
|
|
- uint64_t dataLength;
|
|
|
|
|
- void * data;
|
|
|
|
|
-} WGPUCreateBufferMappedResult;
|
|
|
|
|
|
|
+typedef struct WGPUCopyTextureForBrowserOptions {
|
|
|
|
|
+ WGPUChainedStruct const * nextInChain;
|
|
|
|
|
+ bool flipY;
|
|
|
|
|
+} WGPUCopyTextureForBrowserOptions;
|
|
|
|
|
|
|
|
typedef struct WGPUDeviceProperties {
|
|
typedef struct WGPUDeviceProperties {
|
|
|
bool textureCompressionBC;
|
|
bool textureCompressionBC;
|
|
|
|
|
+ bool shaderFloat16;
|
|
|
|
|
+ bool pipelineStatisticsQuery;
|
|
|
|
|
+ bool timestampQuery;
|
|
|
} WGPUDeviceProperties;
|
|
} WGPUDeviceProperties;
|
|
|
|
|
|
|
|
typedef struct WGPUExtent3D {
|
|
typedef struct WGPUExtent3D {
|
|
@@ -569,6 +636,15 @@ typedef struct WGPUProgrammableStageDescriptor {
|
|
|
char const * entryPoint;
|
|
char const * entryPoint;
|
|
|
} WGPUProgrammableStageDescriptor;
|
|
} WGPUProgrammableStageDescriptor;
|
|
|
|
|
|
|
|
|
|
+typedef struct WGPUQuerySetDescriptor {
|
|
|
|
|
+ WGPUChainedStruct const * nextInChain;
|
|
|
|
|
+ char const * label;
|
|
|
|
|
+ WGPUQueryType type;
|
|
|
|
|
+ uint32_t count;
|
|
|
|
|
+ WGPUPipelineStatisticName const * pipelineStatistics;
|
|
|
|
|
+ uint32_t pipelineStatisticsCount;
|
|
|
|
|
+} WGPUQuerySetDescriptor;
|
|
|
|
|
+
|
|
|
typedef struct WGPURasterizationStateDescriptor {
|
|
typedef struct WGPURasterizationStateDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
WGPUFrontFace frontFace;
|
|
WGPUFrontFace frontFace;
|
|
@@ -597,11 +673,18 @@ typedef struct WGPURenderPassDepthStencilAttachmentDescriptor {
|
|
|
WGPULoadOp depthLoadOp;
|
|
WGPULoadOp depthLoadOp;
|
|
|
WGPUStoreOp depthStoreOp;
|
|
WGPUStoreOp depthStoreOp;
|
|
|
float clearDepth;
|
|
float clearDepth;
|
|
|
|
|
+ bool depthReadOnly;
|
|
|
WGPULoadOp stencilLoadOp;
|
|
WGPULoadOp stencilLoadOp;
|
|
|
WGPUStoreOp stencilStoreOp;
|
|
WGPUStoreOp stencilStoreOp;
|
|
|
uint32_t clearStencil;
|
|
uint32_t clearStencil;
|
|
|
|
|
+ bool stencilReadOnly;
|
|
|
} WGPURenderPassDepthStencilAttachmentDescriptor;
|
|
} WGPURenderPassDepthStencilAttachmentDescriptor;
|
|
|
|
|
|
|
|
|
|
+typedef struct WGPUSamplerBindingLayout {
|
|
|
|
|
+ WGPUChainedStruct const * nextInChain;
|
|
|
|
|
+ WGPUSamplerBindingType type;
|
|
|
|
|
+} WGPUSamplerBindingLayout;
|
|
|
|
|
+
|
|
|
typedef struct WGPUSamplerDescriptor {
|
|
typedef struct WGPUSamplerDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
char const * label;
|
|
char const * label;
|
|
@@ -614,6 +697,7 @@ typedef struct WGPUSamplerDescriptor {
|
|
|
float lodMinClamp;
|
|
float lodMinClamp;
|
|
|
float lodMaxClamp;
|
|
float lodMaxClamp;
|
|
|
WGPUCompareFunction compare;
|
|
WGPUCompareFunction compare;
|
|
|
|
|
+ uint16_t maxAnisotropy;
|
|
|
} WGPUSamplerDescriptor;
|
|
} WGPUSamplerDescriptor;
|
|
|
|
|
|
|
|
typedef struct WGPUSamplerDescriptorDummyAnisotropicFiltering {
|
|
typedef struct WGPUSamplerDescriptorDummyAnisotropicFiltering {
|
|
@@ -624,8 +708,6 @@ typedef struct WGPUSamplerDescriptorDummyAnisotropicFiltering {
|
|
|
typedef struct WGPUShaderModuleDescriptor {
|
|
typedef struct WGPUShaderModuleDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
char const * label;
|
|
char const * label;
|
|
|
- uint32_t codeSize;
|
|
|
|
|
- uint32_t const * code;
|
|
|
|
|
} WGPUShaderModuleDescriptor;
|
|
} WGPUShaderModuleDescriptor;
|
|
|
|
|
|
|
|
typedef struct WGPUShaderModuleSPIRVDescriptor {
|
|
typedef struct WGPUShaderModuleSPIRVDescriptor {
|
|
@@ -646,15 +728,22 @@ typedef struct WGPUStencilStateFaceDescriptor {
|
|
|
WGPUStencilOperation passOp;
|
|
WGPUStencilOperation passOp;
|
|
|
} WGPUStencilStateFaceDescriptor;
|
|
} WGPUStencilStateFaceDescriptor;
|
|
|
|
|
|
|
|
|
|
+typedef struct WGPUStorageTextureBindingLayout {
|
|
|
|
|
+ WGPUChainedStruct const * nextInChain;
|
|
|
|
|
+ WGPUStorageTextureAccess access;
|
|
|
|
|
+ WGPUTextureFormat format;
|
|
|
|
|
+ WGPUTextureViewDimension viewDimension;
|
|
|
|
|
+} WGPUStorageTextureBindingLayout;
|
|
|
|
|
+
|
|
|
typedef struct WGPUSurfaceDescriptor {
|
|
typedef struct WGPUSurfaceDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
char const * label;
|
|
char const * label;
|
|
|
} WGPUSurfaceDescriptor;
|
|
} WGPUSurfaceDescriptor;
|
|
|
|
|
|
|
|
-typedef struct WGPUSurfaceDescriptorFromHTMLCanvasId {
|
|
|
|
|
|
|
+typedef struct WGPUSurfaceDescriptorFromCanvasHTMLSelector {
|
|
|
WGPUChainedStruct chain;
|
|
WGPUChainedStruct chain;
|
|
|
- char const * id;
|
|
|
|
|
-} WGPUSurfaceDescriptorFromHTMLCanvasId;
|
|
|
|
|
|
|
+ char const * selector;
|
|
|
|
|
+} WGPUSurfaceDescriptorFromCanvasHTMLSelector;
|
|
|
|
|
|
|
|
typedef struct WGPUSurfaceDescriptorFromMetalLayer {
|
|
typedef struct WGPUSurfaceDescriptorFromMetalLayer {
|
|
|
WGPUChainedStruct chain;
|
|
WGPUChainedStruct chain;
|
|
@@ -684,6 +773,20 @@ typedef struct WGPUSwapChainDescriptor {
|
|
|
uint64_t implementation;
|
|
uint64_t implementation;
|
|
|
} WGPUSwapChainDescriptor;
|
|
} WGPUSwapChainDescriptor;
|
|
|
|
|
|
|
|
|
|
+typedef struct WGPUTextureBindingLayout {
|
|
|
|
|
+ WGPUChainedStruct const * nextInChain;
|
|
|
|
|
+ WGPUTextureSampleType sampleType;
|
|
|
|
|
+ WGPUTextureViewDimension viewDimension;
|
|
|
|
|
+ bool multisampled;
|
|
|
|
|
+} WGPUTextureBindingLayout;
|
|
|
|
|
+
|
|
|
|
|
+typedef struct WGPUTextureDataLayout {
|
|
|
|
|
+ WGPUChainedStruct const * nextInChain;
|
|
|
|
|
+ uint64_t offset;
|
|
|
|
|
+ uint32_t bytesPerRow;
|
|
|
|
|
+ uint32_t rowsPerImage;
|
|
|
|
|
+} WGPUTextureDataLayout;
|
|
|
|
|
+
|
|
|
typedef struct WGPUTextureViewDescriptor {
|
|
typedef struct WGPUTextureViewDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
char const * label;
|
|
char const * label;
|
|
@@ -706,20 +809,30 @@ typedef struct WGPUBindGroupDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
char const * label;
|
|
char const * label;
|
|
|
WGPUBindGroupLayout layout;
|
|
WGPUBindGroupLayout layout;
|
|
|
- uint32_t bindingCount;
|
|
|
|
|
- WGPUBindGroupEntry const * bindings;
|
|
|
|
|
uint32_t entryCount;
|
|
uint32_t entryCount;
|
|
|
WGPUBindGroupEntry const * entries;
|
|
WGPUBindGroupEntry const * entries;
|
|
|
} WGPUBindGroupDescriptor;
|
|
} WGPUBindGroupDescriptor;
|
|
|
|
|
|
|
|
-typedef struct WGPUBindGroupLayoutDescriptor {
|
|
|
|
|
|
|
+typedef struct WGPUBindGroupLayoutEntry {
|
|
|
|
|
+ uint32_t binding;
|
|
|
|
|
+ WGPUShaderStageFlags visibility;
|
|
|
|
|
+ WGPUBindingType type;
|
|
|
|
|
+ bool hasDynamicOffset;
|
|
|
|
|
+ uint64_t minBufferBindingSize;
|
|
|
|
|
+ WGPUTextureViewDimension viewDimension;
|
|
|
|
|
+ WGPUTextureComponentType textureComponentType;
|
|
|
|
|
+ WGPUTextureFormat storageTextureFormat;
|
|
|
|
|
+ WGPUBufferBindingLayout buffer;
|
|
|
|
|
+ WGPUSamplerBindingLayout sampler;
|
|
|
|
|
+ WGPUTextureBindingLayout texture;
|
|
|
|
|
+ WGPUStorageTextureBindingLayout storageTexture;
|
|
|
|
|
+} WGPUBindGroupLayoutEntry;
|
|
|
|
|
+
|
|
|
|
|
+typedef struct WGPUBufferCopyView {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
- char const * label;
|
|
|
|
|
- uint32_t bindingCount;
|
|
|
|
|
- WGPUBindGroupLayoutEntry const * bindings;
|
|
|
|
|
- uint32_t entryCount;
|
|
|
|
|
- WGPUBindGroupLayoutEntry const * entries;
|
|
|
|
|
-} WGPUBindGroupLayoutDescriptor;
|
|
|
|
|
|
|
+ WGPUTextureDataLayout layout;
|
|
|
|
|
+ WGPUBuffer buffer;
|
|
|
|
|
+} WGPUBufferCopyView;
|
|
|
|
|
|
|
|
typedef struct WGPUColorStateDescriptor {
|
|
typedef struct WGPUColorStateDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
@@ -764,8 +877,8 @@ typedef struct WGPUTextureCopyView {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
WGPUTexture texture;
|
|
WGPUTexture texture;
|
|
|
uint32_t mipLevel;
|
|
uint32_t mipLevel;
|
|
|
- uint32_t arrayLayer;
|
|
|
|
|
WGPUOrigin3D origin;
|
|
WGPUOrigin3D origin;
|
|
|
|
|
+ WGPUTextureAspect aspect;
|
|
|
} WGPUTextureCopyView;
|
|
} WGPUTextureCopyView;
|
|
|
|
|
|
|
|
typedef struct WGPUTextureDescriptor {
|
|
typedef struct WGPUTextureDescriptor {
|
|
@@ -774,7 +887,6 @@ typedef struct WGPUTextureDescriptor {
|
|
|
WGPUTextureUsageFlags usage;
|
|
WGPUTextureUsageFlags usage;
|
|
|
WGPUTextureDimension dimension;
|
|
WGPUTextureDimension dimension;
|
|
|
WGPUExtent3D size;
|
|
WGPUExtent3D size;
|
|
|
- uint32_t arrayLayerCount;
|
|
|
|
|
WGPUTextureFormat format;
|
|
WGPUTextureFormat format;
|
|
|
uint32_t mipLevelCount;
|
|
uint32_t mipLevelCount;
|
|
|
uint32_t sampleCount;
|
|
uint32_t sampleCount;
|
|
@@ -787,12 +899,20 @@ typedef struct WGPUVertexBufferLayoutDescriptor {
|
|
|
WGPUVertexAttributeDescriptor const * attributes;
|
|
WGPUVertexAttributeDescriptor const * attributes;
|
|
|
} WGPUVertexBufferLayoutDescriptor;
|
|
} WGPUVertexBufferLayoutDescriptor;
|
|
|
|
|
|
|
|
|
|
+typedef struct WGPUBindGroupLayoutDescriptor {
|
|
|
|
|
+ WGPUChainedStruct const * nextInChain;
|
|
|
|
|
+ char const * label;
|
|
|
|
|
+ uint32_t entryCount;
|
|
|
|
|
+ WGPUBindGroupLayoutEntry const * entries;
|
|
|
|
|
+} WGPUBindGroupLayoutDescriptor;
|
|
|
|
|
+
|
|
|
typedef struct WGPURenderPassDescriptor {
|
|
typedef struct WGPURenderPassDescriptor {
|
|
|
WGPUChainedStruct const * nextInChain;
|
|
WGPUChainedStruct const * nextInChain;
|
|
|
char const * label;
|
|
char const * label;
|
|
|
uint32_t colorAttachmentCount;
|
|
uint32_t colorAttachmentCount;
|
|
|
WGPURenderPassColorAttachmentDescriptor const * colorAttachments;
|
|
WGPURenderPassColorAttachmentDescriptor const * colorAttachments;
|
|
|
WGPURenderPassDepthStencilAttachmentDescriptor const * depthStencilAttachment;
|
|
WGPURenderPassDepthStencilAttachmentDescriptor const * depthStencilAttachment;
|
|
|
|
|
+ WGPUQuerySet occlusionQuerySet;
|
|
|
} WGPURenderPassDescriptor;
|
|
} WGPURenderPassDescriptor;
|
|
|
|
|
|
|
|
typedef struct WGPUVertexStateDescriptor {
|
|
typedef struct WGPUVertexStateDescriptor {
|
|
@@ -820,16 +940,13 @@ typedef struct WGPURenderPipelineDescriptor {
|
|
|
} WGPURenderPipelineDescriptor;
|
|
} WGPURenderPipelineDescriptor;
|
|
|
|
|
|
|
|
|
|
|
|
|
-// TODO(dawn:22): Remove this once users use the "Entry" version.
|
|
|
|
|
-typedef WGPUBindGroupEntry WGPUBindGroupBinding;
|
|
|
|
|
-typedef WGPUBindGroupLayoutEntry WGPUBindGroupLayoutBinding;
|
|
|
|
|
-
|
|
|
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
|
extern "C" {
|
|
extern "C" {
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-typedef void (*WGPUBufferMapReadCallback)(WGPUBufferMapAsyncStatus status, void const * data, uint64_t dataLength, void * userdata);
|
|
|
|
|
-typedef void (*WGPUBufferMapWriteCallback)(WGPUBufferMapAsyncStatus status, void * data, uint64_t dataLength, void * userdata);
|
|
|
|
|
|
|
+typedef void (*WGPUBufferMapCallback)(WGPUBufferMapAsyncStatus status, void * userdata);
|
|
|
|
|
+typedef void (*WGPUCreateReadyComputePipelineCallback)(WGPUCreateReadyPipelineStatus status, WGPUComputePipeline pipeline, char const * message, void * userdata);
|
|
|
|
|
+typedef void (*WGPUCreateReadyRenderPipelineCallback)(WGPUCreateReadyPipelineStatus status, WGPURenderPipeline pipeline, char const * message, void * userdata);
|
|
|
typedef void (*WGPUDeviceLostCallback)(char const * message, void * userdata);
|
|
typedef void (*WGPUDeviceLostCallback)(char const * message, void * userdata);
|
|
|
typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata);
|
|
typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata);
|
|
|
typedef void (*WGPUFenceOnCompletionCallback)(WGPUFenceCompletionStatus status, void * userdata);
|
|
typedef void (*WGPUFenceOnCompletionCallback)(WGPUFenceCompletionStatus status, void * userdata);
|
|
@@ -851,9 +968,9 @@ typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayo
|
|
|
|
|
|
|
|
// Procs of Buffer
|
|
// Procs of Buffer
|
|
|
typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer);
|
|
typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer);
|
|
|
-typedef void (*WGPUProcBufferMapReadAsync)(WGPUBuffer buffer, WGPUBufferMapReadCallback callback, void * userdata);
|
|
|
|
|
-typedef void (*WGPUProcBufferMapWriteAsync)(WGPUBuffer buffer, WGPUBufferMapWriteCallback callback, void * userdata);
|
|
|
|
|
-typedef void (*WGPUProcBufferSetSubData)(WGPUBuffer buffer, uint64_t start, uint64_t count, void const * data);
|
|
|
|
|
|
|
+typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size);
|
|
|
|
|
+typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size);
|
|
|
|
|
+typedef void (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata);
|
|
|
typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer);
|
|
typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer);
|
|
|
typedef void (*WGPUProcBufferReference)(WGPUBuffer buffer);
|
|
typedef void (*WGPUProcBufferReference)(WGPUBuffer buffer);
|
|
|
typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer);
|
|
typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer);
|
|
@@ -870,9 +987,12 @@ typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder com
|
|
|
typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUBufferCopyView const * destination, WGPUExtent3D const * copySize);
|
|
typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUBufferCopyView const * destination, WGPUExtent3D const * copySize);
|
|
|
typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUTextureCopyView const * destination, WGPUExtent3D const * copySize);
|
|
typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUTextureCopyView const * destination, WGPUExtent3D const * copySize);
|
|
|
typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const * descriptor);
|
|
typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const * descriptor);
|
|
|
-typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+typedef void (*WGPUProcCommandEncoderInjectValidationError)(WGPUCommandEncoder commandEncoder, char const * message);
|
|
|
|
|
+typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const * markerLabel);
|
|
|
typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder);
|
|
typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder);
|
|
|
typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const * groupLabel);
|
|
typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const * groupLabel);
|
|
|
|
|
+typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset);
|
|
|
|
|
+typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex);
|
|
|
typedef void (*WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder);
|
|
typedef void (*WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder);
|
|
|
typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder);
|
|
typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder);
|
|
|
|
|
|
|
@@ -880,11 +1000,12 @@ typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder)
|
|
|
typedef void (*WGPUProcComputePassEncoderDispatch)(WGPUComputePassEncoder computePassEncoder, uint32_t x, uint32_t y, uint32_t z);
|
|
typedef void (*WGPUProcComputePassEncoderDispatch)(WGPUComputePassEncoder computePassEncoder, uint32_t x, uint32_t y, uint32_t z);
|
|
|
typedef void (*WGPUProcComputePassEncoderDispatchIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
typedef void (*WGPUProcComputePassEncoderDispatchIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
typedef void (*WGPUProcComputePassEncoderEndPass)(WGPUComputePassEncoder computePassEncoder);
|
|
typedef void (*WGPUProcComputePassEncoderEndPass)(WGPUComputePassEncoder computePassEncoder);
|
|
|
-typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const * markerLabel);
|
|
|
typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder);
|
|
typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder);
|
|
|
typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const * groupLabel);
|
|
typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const * groupLabel);
|
|
|
typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
|
typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline);
|
|
typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline);
|
|
|
|
|
+typedef void (*WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex);
|
|
|
typedef void (*WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder);
|
|
typedef void (*WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder);
|
|
|
typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder);
|
|
typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder);
|
|
|
|
|
|
|
@@ -897,11 +1018,13 @@ typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeli
|
|
|
typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor);
|
|
typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor);
|
|
|
typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor);
|
|
typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor);
|
|
|
typedef WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor);
|
|
typedef WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor);
|
|
|
-typedef WGPUCreateBufferMappedResult (*WGPUProcDeviceCreateBufferMapped)(WGPUDevice device, WGPUBufferDescriptor const * descriptor);
|
|
|
|
|
typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPUCommandEncoderDescriptor const * descriptor);
|
|
typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPUCommandEncoderDescriptor const * descriptor);
|
|
|
typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor);
|
|
typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor);
|
|
|
|
|
+typedef WGPUBuffer (*WGPUProcDeviceCreateErrorBuffer)(WGPUDevice device);
|
|
|
typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor);
|
|
typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor);
|
|
|
-typedef WGPUQueue (*WGPUProcDeviceCreateQueue)(WGPUDevice device);
|
|
|
|
|
|
|
+typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor);
|
|
|
|
|
+typedef void (*WGPUProcDeviceCreateReadyComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateReadyComputePipelineCallback callback, void * userdata);
|
|
|
|
|
+typedef void (*WGPUProcDeviceCreateReadyRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateReadyRenderPipelineCallback callback, void * userdata);
|
|
|
typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor);
|
|
typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor);
|
|
|
typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor);
|
|
typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor);
|
|
|
typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPUSamplerDescriptor const * descriptor);
|
|
typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPUSamplerDescriptor const * descriptor);
|
|
@@ -934,10 +1057,18 @@ typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance);
|
|
|
typedef void (*WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout);
|
|
typedef void (*WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout);
|
|
|
typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout);
|
|
typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout);
|
|
|
|
|
|
|
|
|
|
+// Procs of QuerySet
|
|
|
|
|
+typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet);
|
|
|
|
|
+typedef void (*WGPUProcQuerySetReference)(WGPUQuerySet querySet);
|
|
|
|
|
+typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet);
|
|
|
|
|
+
|
|
|
// Procs of Queue
|
|
// Procs of Queue
|
|
|
|
|
+typedef void (*WGPUProcQueueCopyTextureForBrowser)(WGPUQueue queue, WGPUTextureCopyView const * source, WGPUTextureCopyView const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options);
|
|
|
typedef WGPUFence (*WGPUProcQueueCreateFence)(WGPUQueue queue, WGPUFenceDescriptor const * descriptor);
|
|
typedef WGPUFence (*WGPUProcQueueCreateFence)(WGPUQueue queue, WGPUFenceDescriptor const * descriptor);
|
|
|
typedef void (*WGPUProcQueueSignal)(WGPUQueue queue, WGPUFence fence, uint64_t signalValue);
|
|
typedef void (*WGPUProcQueueSignal)(WGPUQueue queue, WGPUFence fence, uint64_t signalValue);
|
|
|
typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, uint32_t commandCount, WGPUCommandBuffer const * commands);
|
|
typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, uint32_t commandCount, WGPUCommandBuffer const * commands);
|
|
|
|
|
+typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size);
|
|
|
|
|
+typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTextureCopyView const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize);
|
|
|
typedef void (*WGPUProcQueueReference)(WGPUQueue queue);
|
|
typedef void (*WGPUProcQueueReference)(WGPUQueue queue);
|
|
|
typedef void (*WGPUProcQueueRelease)(WGPUQueue queue);
|
|
typedef void (*WGPUProcQueueRelease)(WGPUQueue queue);
|
|
|
|
|
|
|
@@ -951,34 +1082,39 @@ typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder r
|
|
|
typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const * descriptor);
|
|
typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const * descriptor);
|
|
|
-typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder);
|
|
typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel);
|
|
typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
|
-typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
|
|
|
|
+typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
|
|
+typedef void (*WGPUProcRenderBundleEncoderSetIndexBufferWithFormat)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline);
|
|
typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder);
|
|
typedef void (*WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder);
|
|
|
typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder);
|
|
typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder);
|
|
|
|
|
|
|
|
// Procs of RenderPassEncoder
|
|
// Procs of RenderPassEncoder
|
|
|
|
|
+typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex);
|
|
|
typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
|
|
typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
|
|
|
typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance);
|
|
typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance);
|
|
|
typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
|
|
+typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder);
|
|
|
typedef void (*WGPUProcRenderPassEncoderEndPass)(WGPURenderPassEncoder renderPassEncoder);
|
|
typedef void (*WGPUProcRenderPassEncoderEndPass)(WGPURenderPassEncoder renderPassEncoder);
|
|
|
typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, uint32_t bundlesCount, WGPURenderBundle const * bundles);
|
|
typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, uint32_t bundlesCount, WGPURenderBundle const * bundles);
|
|
|
-typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel);
|
|
|
typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder);
|
|
typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder);
|
|
|
typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel);
|
|
typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel);
|
|
|
typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
|
typedef void (*WGPUProcRenderPassEncoderSetBlendColor)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color);
|
|
typedef void (*WGPUProcRenderPassEncoderSetBlendColor)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color);
|
|
|
-typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
|
|
|
|
+typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
|
|
+typedef void (*WGPUProcRenderPassEncoderSetIndexBufferWithFormat)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline);
|
|
typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline);
|
|
|
typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
|
|
typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
|
|
|
typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference);
|
|
typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference);
|
|
|
typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth);
|
|
typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth);
|
|
|
|
|
+typedef void (*WGPUProcRenderPassEncoderWriteTimestamp)(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex);
|
|
|
typedef void (*WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder);
|
|
typedef void (*WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder);
|
|
|
typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder);
|
|
typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder);
|
|
|
|
|
|
|
@@ -1033,9 +1169,9 @@ WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
|
|
|
|
|
|
|
|
// Methods of Buffer
|
|
// Methods of Buffer
|
|
|
WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer);
|
|
WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer);
|
|
|
-WGPU_EXPORT void wgpuBufferMapReadAsync(WGPUBuffer buffer, WGPUBufferMapReadCallback callback, void * userdata);
|
|
|
|
|
-WGPU_EXPORT void wgpuBufferMapWriteAsync(WGPUBuffer buffer, WGPUBufferMapWriteCallback callback, void * userdata);
|
|
|
|
|
-WGPU_EXPORT void wgpuBufferSetSubData(WGPUBuffer buffer, uint64_t start, uint64_t count, void const * data);
|
|
|
|
|
|
|
+WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size);
|
|
|
|
|
+WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size);
|
|
|
|
|
+WGPU_EXPORT void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata);
|
|
|
WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer);
|
|
WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer);
|
|
|
WGPU_EXPORT void wgpuBufferReference(WGPUBuffer buffer);
|
|
WGPU_EXPORT void wgpuBufferReference(WGPUBuffer buffer);
|
|
|
WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer);
|
|
WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer);
|
|
@@ -1052,9 +1188,12 @@ WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder comman
|
|
|
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUBufferCopyView const * destination, WGPUExtent3D const * copySize);
|
|
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUBufferCopyView const * destination, WGPUExtent3D const * copySize);
|
|
|
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUTextureCopyView const * destination, WGPUExtent3D const * copySize);
|
|
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTextureCopyView const * source, WGPUTextureCopyView const * destination, WGPUExtent3D const * copySize);
|
|
|
WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const * descriptor);
|
|
|
-WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+WGPU_EXPORT void wgpuCommandEncoderInjectValidationError(WGPUCommandEncoder commandEncoder, char const * message);
|
|
|
|
|
+WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const * markerLabel);
|
|
|
WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder);
|
|
WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder);
|
|
|
WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const * groupLabel);
|
|
WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const * groupLabel);
|
|
|
|
|
+WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset);
|
|
|
|
|
+WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex);
|
|
|
WGPU_EXPORT void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder);
|
|
WGPU_EXPORT void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder);
|
|
|
WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder);
|
|
WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder);
|
|
|
|
|
|
|
@@ -1062,11 +1201,12 @@ WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderDispatch(WGPUComputePassEncoder computePassEncoder, uint32_t x, uint32_t y, uint32_t z);
|
|
WGPU_EXPORT void wgpuComputePassEncoderDispatch(WGPUComputePassEncoder computePassEncoder, uint32_t x, uint32_t y, uint32_t z);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderDispatchIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
WGPU_EXPORT void wgpuComputePassEncoderDispatchIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderEndPass(WGPUComputePassEncoder computePassEncoder);
|
|
WGPU_EXPORT void wgpuComputePassEncoderEndPass(WGPUComputePassEncoder computePassEncoder);
|
|
|
-WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const * markerLabel);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder);
|
|
WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const * groupLabel);
|
|
WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const * groupLabel);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline);
|
|
WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline);
|
|
|
|
|
+WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder);
|
|
WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder);
|
|
|
WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder);
|
|
WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder);
|
|
|
|
|
|
|
@@ -1079,11 +1219,13 @@ WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
|
|
|
WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor);
|
|
|
WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor);
|
|
|
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor);
|
|
|
-WGPU_EXPORT WGPUCreateBufferMappedResult wgpuDeviceCreateBufferMapped(WGPUDevice device, WGPUBufferDescriptor const * descriptor);
|
|
|
|
|
WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const * descriptor);
|
|
|
WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor);
|
|
|
|
|
+WGPU_EXPORT WGPUBuffer wgpuDeviceCreateErrorBuffer(WGPUDevice device);
|
|
|
WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor);
|
|
|
-WGPU_EXPORT WGPUQueue wgpuDeviceCreateQueue(WGPUDevice device);
|
|
|
|
|
|
|
+WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor);
|
|
|
|
|
+WGPU_EXPORT void wgpuDeviceCreateReadyComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateReadyComputePipelineCallback callback, void * userdata);
|
|
|
|
|
+WGPU_EXPORT void wgpuDeviceCreateReadyRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateReadyRenderPipelineCallback callback, void * userdata);
|
|
|
WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor);
|
|
|
WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor);
|
|
|
WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const * descriptor);
|
|
@@ -1116,10 +1258,18 @@ WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance);
|
|
|
WGPU_EXPORT void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout);
|
|
WGPU_EXPORT void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout);
|
|
|
WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout);
|
|
WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout);
|
|
|
|
|
|
|
|
|
|
+// Methods of QuerySet
|
|
|
|
|
+WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet);
|
|
|
|
|
+WGPU_EXPORT void wgpuQuerySetReference(WGPUQuerySet querySet);
|
|
|
|
|
+WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet);
|
|
|
|
|
+
|
|
|
// Methods of Queue
|
|
// Methods of Queue
|
|
|
|
|
+WGPU_EXPORT void wgpuQueueCopyTextureForBrowser(WGPUQueue queue, WGPUTextureCopyView const * source, WGPUTextureCopyView const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options);
|
|
|
WGPU_EXPORT WGPUFence wgpuQueueCreateFence(WGPUQueue queue, WGPUFenceDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPUFence wgpuQueueCreateFence(WGPUQueue queue, WGPUFenceDescriptor const * descriptor);
|
|
|
WGPU_EXPORT void wgpuQueueSignal(WGPUQueue queue, WGPUFence fence, uint64_t signalValue);
|
|
WGPU_EXPORT void wgpuQueueSignal(WGPUQueue queue, WGPUFence fence, uint64_t signalValue);
|
|
|
WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, uint32_t commandCount, WGPUCommandBuffer const * commands);
|
|
WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, uint32_t commandCount, WGPUCommandBuffer const * commands);
|
|
|
|
|
+WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size);
|
|
|
|
|
+WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTextureCopyView const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize);
|
|
|
WGPU_EXPORT void wgpuQueueReference(WGPUQueue queue);
|
|
WGPU_EXPORT void wgpuQueueReference(WGPUQueue queue);
|
|
|
WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue);
|
|
WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue);
|
|
|
|
|
|
|
@@ -1133,34 +1283,39 @@ WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder rend
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const * descriptor);
|
|
WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const * descriptor);
|
|
|
-WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
|
-WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBufferWithFormat(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder);
|
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder);
|
|
WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder);
|
|
|
|
|
|
|
|
// Methods of RenderPassEncoder
|
|
// Methods of RenderPassEncoder
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset);
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderEndPass(WGPURenderPassEncoder renderPassEncoder);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderEndPass(WGPURenderPassEncoder renderPassEncoder);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, uint32_t bundlesCount, WGPURenderBundle const * bundles);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, uint32_t bundlesCount, WGPURenderBundle const * bundles);
|
|
|
-WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel);
|
|
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, uint32_t dynamicOffsetCount, uint32_t const * dynamicOffsets);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendColor(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendColor(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color);
|
|
|
-WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBufferWithFormat(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth);
|
|
|
|
|
+WGPU_EXPORT void wgpuRenderPassEncoderWriteTimestamp(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder);
|
|
|
WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder);
|
|
WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder);
|
|
|
|
|
|