Skip to content

Commit

Permalink
Update to upstream wgpu-native 0.19.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PyryM committed Jan 23, 2024
1 parent ac58822 commit ec229e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codegen/fetch_wgpu_bins.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def fix_name(name):


BASE_URL = "https://github.com/gfx-rs/wgpu-native/releases/download/"
VERSION = "0.18.1.4"
VERSION = "0.19.1.1"

SYSNAME = uname().system.lower()
IS_WINDOWS = SYSNAME == "windows" or ("microsoft" in uname().release.lower())
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "xgpu"
version = "0.3.0"
version = "0.4.0"
readme = "README.md"
requires-python = ">=3.7"
dependencies = ["cffi"]
Expand Down
6 changes: 6 additions & 0 deletions xgpu/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class XDevice(xg.Device):
def __init__(self, inner: xg.Device):
super().__init__(inner._cdata)
self.limits = xg.SupportedLimits()
self.queue = super().getQueue()

def getQueue(self) -> xg.Queue:
# Workaround for reference counting issue with queues in
# wgpu-native 0.19.1.1
return self.queue

def createWGSLShaderModule(self, code: str) -> xg.ShaderModule:
return self.createShaderModule(
Expand Down

0 comments on commit ec229e9

Please sign in to comment.