diff --git a/webgpu.h b/webgpu.h index d3a8b4c6..1ee9a8c4 100644 --- a/webgpu.h +++ b/webgpu.h @@ -149,20 +149,20 @@ struct WGPURequestAdapterOptions; struct WGPUSamplerBindingLayout; struct WGPUSamplerDescriptor; struct WGPUShaderModuleCompilationHint; -struct WGPUShaderModuleSPIRV; -struct WGPUShaderModuleWGSL; +struct WGPUShaderSourceSPIRV; +struct WGPUShaderSourceWGSL; struct WGPUStencilFaceState; struct WGPUStorageTextureBindingLayout; struct WGPUSurfaceCapabilities; struct WGPUSurfaceConfiguration; struct WGPUSurfaceDescriptor; -struct WGPUSurfaceFromAndroidNativeWindow; -struct WGPUSurfaceFromCanvasHTMLSelector; -struct WGPUSurfaceFromMetalLayer; -struct WGPUSurfaceFromWaylandSurface; -struct WGPUSurfaceFromWindowsHWND; -struct WGPUSurfaceFromXcbWindow; -struct WGPUSurfaceFromXlibWindow; +struct WGPUSurfaceSourceAndroidNativeWindow; +struct WGPUSurfaceSourceCanvasHTMLSelector_Emscripten; +struct WGPUSurfaceSourceMetalLayer; +struct WGPUSurfaceSourceWaylandSurface; +struct WGPUSurfaceSourceWindowsHWND; +struct WGPUSurfaceSourceXCBWindow; +struct WGPUSurfaceSourceXlibWindow; struct WGPUSurfaceTexture; struct WGPUTextureBindingLayout; struct WGPUTextureDataLayout; @@ -537,16 +537,16 @@ typedef enum WGPURequestDeviceStatus { typedef enum WGPUSType { WGPUSType_Invalid = 0x00000000, - WGPUSType_SurfaceFromMetalLayer = 0x00000001, - WGPUSType_SurfaceFromWindowsHWND = 0x00000002, - WGPUSType_SurfaceFromXlibWindow = 0x00000003, - WGPUSType_SurfaceFromCanvasHTMLSelector = 0x00000004, - WGPUSType_ShaderModuleSPIRV = 0x00000005, - WGPUSType_ShaderModuleWGSL = 0x00000006, - WGPUSType_SurfaceFromWaylandSurface = 0x00000007, - WGPUSType_SurfaceFromAndroidNativeWindow = 0x00000008, - WGPUSType_SurfaceFromXcbWindow = 0x00000009, - WGPUSType_RenderPassDescriptorMaxDrawCount = 0x0000000F, + WGPUSType_SurfaceSourceMetalLayer = 0x00000001, + WGPUSType_SurfaceSourceWindowsHWND = 0x00000002, + WGPUSType_SurfaceSourceXlibWindow = 0x00000003, + WGPUSType_SurfaceSourceCanvasHTMLSelector_Emscripten = 0x00000004, + WGPUSType_ShaderSourceSPIRV = 0x00000005, + WGPUSType_ShaderSourceWGSL = 0x00000006, + WGPUSType_SurfaceSourceWaylandSurface = 0x00000007, + WGPUSType_SurfaceSourceAndroidNativeWindow = 0x00000008, + WGPUSType_SurfaceSourceXCBWindow = 0x00000009, + WGPUSType_RenderPassMaxDrawCount = 0x0000000F, WGPUSType_Force32 = 0x7FFFFFFF } WGPUSType WGPU_ENUM_ATTRIBUTE; @@ -1270,16 +1270,16 @@ typedef struct WGPUShaderModuleCompilationHint { WGPUPipelineLayout layout; } WGPUShaderModuleCompilationHint WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUShaderModuleSPIRV { +typedef struct WGPUShaderSourceSPIRV { WGPUChainedStruct chain; uint32_t codeSize; uint32_t const * code; -} WGPUShaderModuleSPIRV WGPU_STRUCTURE_ATTRIBUTE; +} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUShaderModuleWGSL { +typedef struct WGPUShaderSourceWGSL { WGPUChainedStruct chain; char const * code; -} WGPUShaderModuleWGSL WGPU_STRUCTURE_ATTRIBUTE; +} WGPUShaderSourceWGSL WGPU_STRUCTURE_ATTRIBUTE; typedef struct WGPUStencilFaceState { WGPUCompareFunction compare; @@ -1324,44 +1324,44 @@ typedef struct WGPUSurfaceDescriptor { WGPU_NULLABLE char const * label; } WGPUSurfaceDescriptor WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUSurfaceFromAndroidNativeWindow { +typedef struct WGPUSurfaceSourceAndroidNativeWindow { WGPUChainedStruct chain; void * window; -} WGPUSurfaceFromAndroidNativeWindow WGPU_STRUCTURE_ATTRIBUTE; +} WGPUSurfaceSourceAndroidNativeWindow WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUSurfaceFromCanvasHTMLSelector { +typedef struct WGPUSurfaceSourceCanvasHTMLSelector_Emscripten { WGPUChainedStruct chain; char const * selector; -} WGPUSurfaceFromCanvasHTMLSelector WGPU_STRUCTURE_ATTRIBUTE; +} WGPUSurfaceSourceCanvasHTMLSelector_Emscripten WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUSurfaceFromMetalLayer { +typedef struct WGPUSurfaceSourceMetalLayer { WGPUChainedStruct chain; void * layer; -} WGPUSurfaceFromMetalLayer WGPU_STRUCTURE_ATTRIBUTE; +} WGPUSurfaceSourceMetalLayer WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUSurfaceFromWaylandSurface { +typedef struct WGPUSurfaceSourceWaylandSurface { WGPUChainedStruct chain; void * display; void * surface; -} WGPUSurfaceFromWaylandSurface WGPU_STRUCTURE_ATTRIBUTE; +} WGPUSurfaceSourceWaylandSurface WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUSurfaceFromWindowsHWND { +typedef struct WGPUSurfaceSourceWindowsHWND { WGPUChainedStruct chain; void * hinstance; void * hwnd; -} WGPUSurfaceFromWindowsHWND WGPU_STRUCTURE_ATTRIBUTE; +} WGPUSurfaceSourceWindowsHWND WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUSurfaceFromXcbWindow { +typedef struct WGPUSurfaceSourceXCBWindow { WGPUChainedStruct chain; void * connection; uint32_t window; -} WGPUSurfaceFromXcbWindow WGPU_STRUCTURE_ATTRIBUTE; +} WGPUSurfaceSourceXCBWindow WGPU_STRUCTURE_ATTRIBUTE; -typedef struct WGPUSurfaceFromXlibWindow { +typedef struct WGPUSurfaceSourceXlibWindow { WGPUChainedStruct chain; void * display; uint64_t window; -} WGPUSurfaceFromXlibWindow WGPU_STRUCTURE_ATTRIBUTE; +} WGPUSurfaceSourceXlibWindow WGPU_STRUCTURE_ATTRIBUTE; typedef struct WGPUSurfaceTexture { WGPUTexture texture; diff --git a/webgpu.yml b/webgpu.yml index 72951ecc..61c79aba 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -718,34 +718,34 @@ enums: - name: invalid doc: | TODO - - name: surface_from_metal_layer + - name: surface_source_metal_layer doc: | TODO - - name: surface_from_windows_HWND + - name: surface_source_windows_HWND doc: | TODO - - name: surface_from_xlib_window + - name: surface_source_xlib_window doc: | TODO - - name: surface_from_canvas_HTML_selector + - name: surface_source_canvas_HTML_selector__Emscripten doc: | TODO - - name: shader_module_SPIRV + - name: shader_source_SPIRV doc: | TODO - - name: shader_module_WGSL + - name: shader_source_WGSL doc: | TODO - - name: surface_from_wayland_surface + - name: surface_source_wayland_surface doc: | TODO - - name: surface_from_android_native_window + - name: surface_source_android_native_window doc: | TODO - - name: surface_from_xcb_window + - name: surface_source_XCB_window doc: | TODO - - name: render_pass_descriptor_max_draw_count + - name: render_pass_max_draw_count value: 0x000F doc: | TODO @@ -2621,7 +2621,7 @@ structs: TODO type: array pointer: immutable - - name: shader_module_SPIRV + - name: shader_source_SPIRV doc: | TODO type: extension_in @@ -2637,7 +2637,7 @@ structs: TODO type: uint32 pointer: immutable - - name: shader_module_WGSL + - name: shader_source_WGSL doc: | TODO type: extension_in @@ -2768,7 +2768,7 @@ structs: TODO type: string optional: true - - name: surface_from_android_native_window + - name: surface_source_android_native_window doc: | TODO type: extension_in @@ -2780,7 +2780,7 @@ structs: TODO type: c_void pointer: mutable - - name: surface_from_canvas_HTML_selector + - name: surface_source_canvas_HTML_selector__Emscripten doc: | TODO type: extension_in @@ -2791,7 +2791,7 @@ structs: doc: | TODO type: string - - name: surface_from_metal_layer + - name: surface_source_metal_layer doc: | TODO type: extension_in @@ -2803,7 +2803,7 @@ structs: TODO type: c_void pointer: mutable - - name: surface_from_wayland_surface + - name: surface_source_wayland_surface doc: | TODO type: extension_in @@ -2820,7 +2820,7 @@ structs: TODO type: c_void pointer: mutable - - name: surface_from_windows_HWND + - name: surface_source_windows_HWND doc: | TODO type: extension_in @@ -2837,7 +2837,7 @@ structs: TODO type: c_void pointer: mutable - - name: surface_from_xcb_window + - name: surface_source_XCB_window doc: | TODO type: extension_in @@ -2853,7 +2853,7 @@ structs: doc: | TODO type: uint32 - - name: surface_from_xlib_window + - name: surface_source_xlib_window doc: | TODO type: extension_in