Skip to content

Commit e9cf7dd

Browse files
committed
Merge branch 'main' into return-statuses
2 parents 5f9d99f + 4493591 commit e9cf7dd

File tree

3 files changed

+174
-133
lines changed

3 files changed

+174
-133
lines changed

tests/compile/main.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main(void) {
1414
(void) a;
1515
}
1616
{
17-
WGPUTextureDataLayout a;
17+
WGPUTexelCopyBufferLayout a;
1818
uint32_t x = a.bytesPerRow = WGPU_COPY_STRIDE_UNDEFINED;
1919
uint32_t y = a.rowsPerImage = WGPU_COPY_STRIDE_UNDEFINED;
2020
(void) a;

webgpu.h

Lines changed: 81 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ struct WGPUSurfaceSourceWindowsHWND;
216216
struct WGPUSurfaceSourceXCBWindow;
217217
struct WGPUSurfaceSourceXlibWindow;
218218
struct WGPUSurfaceTexture;
219+
struct WGPUTexelCopyBufferLayout;
219220
struct WGPUTextureBindingLayout;
220-
struct WGPUTextureDataLayout;
221221
struct WGPUTextureViewDescriptor;
222222
struct WGPUVertexAttribute;
223223
struct WGPUBindGroupDescriptor;
@@ -228,11 +228,11 @@ struct WGPUComputePassDescriptor;
228228
struct WGPUDepthStencilState;
229229
struct WGPUDeviceDescriptor;
230230
struct WGPUFutureWaitInfo;
231-
struct WGPUImageCopyBuffer;
232-
struct WGPUImageCopyTexture;
233231
struct WGPUInstanceDescriptor;
234232
struct WGPUProgrammableStageDescriptor;
235233
struct WGPURenderPassColorAttachment;
234+
struct WGPUTexelCopyBufferInfo;
235+
struct WGPUTexelCopyTextureInfo;
236236
struct WGPUTextureDescriptor;
237237
struct WGPUVertexBufferLayout;
238238
struct WGPUBindGroupLayoutDescriptor;
@@ -1005,37 +1005,47 @@ typedef enum WGPUTextureViewDimension {
10051005
} WGPUTextureViewDimension WGPU_ENUM_ATTRIBUTE;
10061006

10071007
typedef enum WGPUVertexFormat {
1008-
WGPUVertexFormat_Uint8x2 = 0x00000001,
1009-
WGPUVertexFormat_Uint8x4 = 0x00000002,
1010-
WGPUVertexFormat_Sint8x2 = 0x00000003,
1011-
WGPUVertexFormat_Sint8x4 = 0x00000004,
1012-
WGPUVertexFormat_Unorm8x2 = 0x00000005,
1013-
WGPUVertexFormat_Unorm8x4 = 0x00000006,
1014-
WGPUVertexFormat_Snorm8x2 = 0x00000007,
1015-
WGPUVertexFormat_Snorm8x4 = 0x00000008,
1016-
WGPUVertexFormat_Uint16x2 = 0x00000009,
1017-
WGPUVertexFormat_Uint16x4 = 0x0000000A,
1018-
WGPUVertexFormat_Sint16x2 = 0x0000000B,
1019-
WGPUVertexFormat_Sint16x4 = 0x0000000C,
1020-
WGPUVertexFormat_Unorm16x2 = 0x0000000D,
1021-
WGPUVertexFormat_Unorm16x4 = 0x0000000E,
1022-
WGPUVertexFormat_Snorm16x2 = 0x0000000F,
1023-
WGPUVertexFormat_Snorm16x4 = 0x00000010,
1024-
WGPUVertexFormat_Float16x2 = 0x00000011,
1025-
WGPUVertexFormat_Float16x4 = 0x00000012,
1026-
WGPUVertexFormat_Float32 = 0x00000013,
1027-
WGPUVertexFormat_Float32x2 = 0x00000014,
1028-
WGPUVertexFormat_Float32x3 = 0x00000015,
1029-
WGPUVertexFormat_Float32x4 = 0x00000016,
1030-
WGPUVertexFormat_Uint32 = 0x00000017,
1031-
WGPUVertexFormat_Uint32x2 = 0x00000018,
1032-
WGPUVertexFormat_Uint32x3 = 0x00000019,
1033-
WGPUVertexFormat_Uint32x4 = 0x0000001A,
1034-
WGPUVertexFormat_Sint32 = 0x0000001B,
1035-
WGPUVertexFormat_Sint32x2 = 0x0000001C,
1036-
WGPUVertexFormat_Sint32x3 = 0x0000001D,
1037-
WGPUVertexFormat_Sint32x4 = 0x0000001E,
1038-
WGPUVertexFormat_Unorm10_10_10_2 = 0x0000001F,
1008+
WGPUVertexFormat_Uint8 = 0x00000001,
1009+
WGPUVertexFormat_Uint8x2 = 0x00000002,
1010+
WGPUVertexFormat_Uint8x4 = 0x00000003,
1011+
WGPUVertexFormat_Sint8 = 0x00000004,
1012+
WGPUVertexFormat_Sint8x2 = 0x00000005,
1013+
WGPUVertexFormat_Sint8x4 = 0x00000006,
1014+
WGPUVertexFormat_Unorm8 = 0x00000007,
1015+
WGPUVertexFormat_Unorm8x2 = 0x00000008,
1016+
WGPUVertexFormat_Unorm8x4 = 0x00000009,
1017+
WGPUVertexFormat_Snorm8 = 0x0000000A,
1018+
WGPUVertexFormat_Snorm8x2 = 0x0000000B,
1019+
WGPUVertexFormat_Snorm8x4 = 0x0000000C,
1020+
WGPUVertexFormat_Uint16 = 0x0000000D,
1021+
WGPUVertexFormat_Uint16x2 = 0x0000000E,
1022+
WGPUVertexFormat_Uint16x4 = 0x0000000F,
1023+
WGPUVertexFormat_Sint16 = 0x00000010,
1024+
WGPUVertexFormat_Sint16x2 = 0x00000011,
1025+
WGPUVertexFormat_Sint16x4 = 0x00000012,
1026+
WGPUVertexFormat_Unorm16 = 0x00000013,
1027+
WGPUVertexFormat_Unorm16x2 = 0x00000014,
1028+
WGPUVertexFormat_Unorm16x4 = 0x00000015,
1029+
WGPUVertexFormat_Snorm16 = 0x00000016,
1030+
WGPUVertexFormat_Snorm16x2 = 0x00000017,
1031+
WGPUVertexFormat_Snorm16x4 = 0x00000018,
1032+
WGPUVertexFormat_Float16 = 0x00000019,
1033+
WGPUVertexFormat_Float16x2 = 0x0000001A,
1034+
WGPUVertexFormat_Float16x4 = 0x0000001B,
1035+
WGPUVertexFormat_Float32 = 0x0000001C,
1036+
WGPUVertexFormat_Float32x2 = 0x0000001D,
1037+
WGPUVertexFormat_Float32x3 = 0x0000001E,
1038+
WGPUVertexFormat_Float32x4 = 0x0000001F,
1039+
WGPUVertexFormat_Uint32 = 0x00000020,
1040+
WGPUVertexFormat_Uint32x2 = 0x00000021,
1041+
WGPUVertexFormat_Uint32x3 = 0x00000022,
1042+
WGPUVertexFormat_Uint32x4 = 0x00000023,
1043+
WGPUVertexFormat_Sint32 = 0x00000024,
1044+
WGPUVertexFormat_Sint32x2 = 0x00000025,
1045+
WGPUVertexFormat_Sint32x3 = 0x00000026,
1046+
WGPUVertexFormat_Sint32x4 = 0x00000027,
1047+
WGPUVertexFormat_Unorm10_10_10_2 = 0x00000028,
1048+
WGPUVertexFormat_Unorm8x4BGRA = 0x00000029,
10391049
WGPUVertexFormat_Force32 = 0x7FFFFFFF
10401050
} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
10411051

@@ -1664,7 +1674,6 @@ typedef struct WGPUStorageTextureBindingLayout {
16641674
} WGPUStorageTextureBindingLayout WGPU_STRUCTURE_ATTRIBUTE;
16651675

16661676
typedef struct WGPUSupportedFeatures {
1667-
WGPUChainedStructOut * nextInChain;
16681677
size_t featureCount;
16691678
WGPUFeatureName const * features;
16701679
} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
@@ -1853,19 +1862,19 @@ typedef struct WGPUSurfaceTexture {
18531862
WGPUSurfaceGetCurrentTextureStatus status;
18541863
} WGPUSurfaceTexture WGPU_STRUCTURE_ATTRIBUTE;
18551864

1865+
typedef struct WGPUTexelCopyBufferLayout {
1866+
uint64_t offset;
1867+
uint32_t bytesPerRow;
1868+
uint32_t rowsPerImage;
1869+
} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
1870+
18561871
typedef struct WGPUTextureBindingLayout {
18571872
WGPUChainedStruct const * nextInChain;
18581873
WGPUTextureSampleType sampleType;
18591874
WGPUTextureViewDimension viewDimension;
18601875
WGPUBool multisampled;
18611876
} WGPUTextureBindingLayout WGPU_STRUCTURE_ATTRIBUTE;
18621877

1863-
typedef struct WGPUTextureDataLayout {
1864-
uint64_t offset;
1865-
uint32_t bytesPerRow;
1866-
uint32_t rowsPerImage;
1867-
} WGPUTextureDataLayout WGPU_STRUCTURE_ATTRIBUTE;
1868-
18691878
typedef struct WGPUTextureViewDescriptor {
18701879
WGPUChainedStruct const * nextInChain;
18711880
/**
@@ -1971,18 +1980,6 @@ typedef struct WGPUFutureWaitInfo {
19711980
WGPUBool completed;
19721981
} WGPUFutureWaitInfo WGPU_STRUCTURE_ATTRIBUTE;
19731982

1974-
typedef struct WGPUImageCopyBuffer {
1975-
WGPUTextureDataLayout layout;
1976-
WGPUBuffer buffer;
1977-
} WGPUImageCopyBuffer WGPU_STRUCTURE_ATTRIBUTE;
1978-
1979-
typedef struct WGPUImageCopyTexture {
1980-
WGPUTexture texture;
1981-
uint32_t mipLevel;
1982-
WGPUOrigin3D origin;
1983-
WGPUTextureAspect aspect;
1984-
} WGPUImageCopyTexture WGPU_STRUCTURE_ATTRIBUTE;
1985-
19861983
typedef struct WGPUInstanceDescriptor {
19871984
WGPUChainedStruct const * nextInChain;
19881985
/**
@@ -2012,6 +2009,18 @@ typedef struct WGPURenderPassColorAttachment {
20122009
WGPUColor clearValue;
20132010
} WGPURenderPassColorAttachment WGPU_STRUCTURE_ATTRIBUTE;
20142011

2012+
typedef struct WGPUTexelCopyBufferInfo {
2013+
WGPUTexelCopyBufferLayout layout;
2014+
WGPUBuffer buffer;
2015+
} WGPUTexelCopyBufferInfo WGPU_STRUCTURE_ATTRIBUTE;
2016+
2017+
typedef struct WGPUTexelCopyTextureInfo {
2018+
WGPUTexture texture;
2019+
uint32_t mipLevel;
2020+
WGPUOrigin3D origin;
2021+
WGPUTextureAspect aspect;
2022+
} WGPUTexelCopyTextureInfo WGPU_STRUCTURE_ATTRIBUTE;
2023+
20152024
typedef struct WGPUTextureDescriptor {
20162025
WGPUChainedStruct const * nextInChain;
20172026
/**
@@ -2154,7 +2163,7 @@ typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTIO
21542163
* Proc pointer type for @ref wgpuAdapterGetFeatures:
21552164
* > @copydoc wgpuAdapterGetFeatures
21562165
*/
2157-
typedef WGPUStatus (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
2166+
typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
21582167
/**
21592168
* Proc pointer type for @ref wgpuAdapterGetInfo:
21602169
* > @copydoc wgpuAdapterGetInfo
@@ -2326,17 +2335,17 @@ typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder comm
23262335
* Proc pointer type for @ref wgpuCommandEncoderCopyBufferToTexture:
23272336
* > @copydoc wgpuCommandEncoderCopyBufferToTexture
23282337
*/
2329-
typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2338+
typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
23302339
/**
23312340
* Proc pointer type for @ref wgpuCommandEncoderCopyTextureToBuffer:
23322341
* > @copydoc wgpuCommandEncoderCopyTextureToBuffer
23332342
*/
2334-
typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2343+
typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
23352344
/**
23362345
* Proc pointer type for @ref wgpuCommandEncoderCopyTextureToTexture:
23372346
* > @copydoc wgpuCommandEncoderCopyTextureToTexture
23382347
*/
2339-
typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2348+
typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
23402349
/**
23412350
* Proc pointer type for @ref wgpuCommandEncoderFinish:
23422351
* > @copydoc wgpuCommandEncoderFinish
@@ -2538,11 +2547,16 @@ typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextur
25382547
* > @copydoc wgpuDeviceDestroy
25392548
*/
25402549
typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2550+
/**
2551+
* Proc pointer type for @ref wgpuDeviceGetAdapterInfo:
2552+
* > @copydoc wgpuDeviceGetAdapterInfo
2553+
*/
2554+
typedef WGPUAdapterInfo (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
25412555
/**
25422556
* Proc pointer type for @ref wgpuDeviceGetFeatures:
25432557
* > @copydoc wgpuDeviceGetFeatures
25442558
*/
2545-
typedef WGPUStatus (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
2559+
typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
25462560
/**
25472561
* Proc pointer type for @ref wgpuDeviceGetLimits:
25482562
* > @copydoc wgpuDeviceGetLimits
@@ -2695,7 +2709,7 @@ typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uin
26952709
* Proc pointer type for @ref wgpuQueueWriteTexture:
26962710
* > @copydoc wgpuQueueWriteTexture
26972711
*/
2698-
typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUImageCopyTexture const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
2712+
typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
26992713
/**
27002714
* Proc pointer type for @ref wgpuQueueAddRef.
27012715
* > @copydoc wgpuQueueAddRef
@@ -3164,11 +3178,8 @@ WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_A
31643178
*
31653179
* @param features
31663180
* This parameter is @ref ReturnedWithOwnership.
3167-
*
3168-
* @returns
3169-
* Indicates if there was an @ref OutStructChainError.
31703181
*/
3171-
WGPU_EXPORT WGPUStatus wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
3182+
WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
31723183
/**
31733184
* @param info
31743185
* This parameter is @ref ReturnedWithOwnership.
@@ -3302,9 +3313,9 @@ WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUComman
33023313
WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33033314
WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
33043315
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
3305-
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
3306-
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
3307-
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
3316+
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
3317+
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
3318+
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
33083319
WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33093320
WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
33103321
WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
@@ -3374,16 +3385,14 @@ WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE
33743385
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33753386
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
33763387
WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
3388+
WGPU_EXPORT WGPUAdapterInfo wgpuDeviceGetAdapterInfo(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
33773389
/**
33783390
* Get the list of @ref WGPUFeatureName values supported by the device.
33793391
*
33803392
* @param features
33813393
* This parameter is @ref ReturnedWithOwnership.
3382-
*
3383-
* @returns
3384-
* Indicates if there was an @ref OutStructChainError.
33853394
*/
3386-
WGPU_EXPORT WGPUStatus wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
3395+
WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
33873396
/**
33883397
* @returns
33893398
* Indicates if there was an @ref OutStructChainError.
@@ -3479,7 +3488,7 @@ WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUComma
34793488
* errors defined by the WebGPU specification.
34803489
*/
34813490
WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
3482-
WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUImageCopyTexture const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
3491+
WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
34833492
WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
34843493
WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
34853494
/** @} */
@@ -3640,7 +3649,7 @@ WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfigurat
36403649
* This parameter is @ref ReturnedWithOwnership.
36413650
*
36423651
* @returns
3643-
* Returns @ref WGPUStatus_Error (and leaves `capabilities` unchanged) if there was an @ref OutStructChainError.
3652+
* Indicates if there was an @ref OutStructChainError.
36443653
*/
36453654
WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
36463655
/**

0 commit comments

Comments
 (0)