diff --git a/wgpu/backends/wgpu_native/__init__.py b/wgpu/backends/wgpu_native/__init__.py index ab2ac6b7..f4654657 100644 --- a/wgpu/backends/wgpu_native/__init__.py +++ b/wgpu/backends/wgpu_native/__init__.py @@ -11,8 +11,8 @@ # The wgpu-native version that we target/expect -__version__ = "27.0.2.0" -__commit_sha__ = "74f8c24c903b6352d09f1928c56962ce06f77a4d" +__version__ = "27.0.4.0" +__commit_sha__ = "768f15f6ace8e4ec8e8720d5732b29e0b34250a8" version_info = tuple(map(int, __version__.split("."))) # noqa: RUF048 _check_expected_version(version_info) # produces a warning on mismatch diff --git a/wgpu/resources/wgpu.h b/wgpu/resources/wgpu.h index 272ed23a..f9ab1827 100644 --- a/wgpu/resources/wgpu.h +++ b/wgpu/resources/wgpu.h @@ -137,6 +137,13 @@ typedef enum WGPUGLFenceBehaviour { WGPUGLFenceBehaviour_Force32 = 0x7FFFFFFF } WGPUGLFenceBehaviour; +typedef enum WGPUDx12SwapchainKind { + WGPUDx12SwapchainKind_Undefined = 0x00000000, + WGPUDx12SwapchainKind_DxgiFromHwnd = 0x00000001, + WGPUDx12SwapchainKind_DxgiFromVisual = 0x00000002, + WGPUDx12SwapchainKind_Force32 = 0x7FFFFFFF +} WGPUDx12SwapchainKind; + typedef struct WGPUInstanceExtras { WGPUChainedStruct chain; WGPUInstanceBackend backends; @@ -146,6 +153,7 @@ typedef struct WGPUInstanceExtras { WGPUGLFenceBehaviour glFenceBehaviour; WGPUStringView dxcPath; WGPUDxcMaxShaderModel dxcMaxShaderModel; + WGPUDx12SwapchainKind dx12PresentationSystem; WGPU_NULLABLE const uint8_t* budgetForDeviceCreation; WGPU_NULLABLE const uint8_t* budgetForDeviceLoss; @@ -307,6 +315,7 @@ void wgpuGenerateReport(WGPUInstance instance, WGPUGlobalReport * report); size_t wgpuInstanceEnumerateAdapters(WGPUInstance instance, WGPU_NULLABLE WGPUInstanceEnumerateAdapterOptions const * options, WGPUAdapter * adapters); WGPUSubmissionIndex wgpuQueueSubmitForIndex(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands); +float wgpuQueueGetTimestampPeriod(WGPUQueue queue); // Returns true if the queue is empty, or false if there are more queue submissions still in flight. WGPUBool wgpuDevicePoll(WGPUDevice device, WGPUBool wait, WGPU_NULLABLE WGPUSubmissionIndex const * submissionIndex);