You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am wrapping webgpu library using pyclibrary. You can download the binary depending on your OS from here
The two header files I am processing are webgpu.h and wgpu.h. You can also use the shared library (wgpu_native.dll or wgpu_native.so) from the package.
WGPU and wgpu are gone as prefix, which is required and correct behavior.
The problem is that I'm getting an error:
AttributeError: type object 'c_long' has no attribute 'TextureUsage_RenderAttachment'
clib.TextureUsage is c_long type. Am I missing something here? Although I am not sure about other enums in the headers but I believe the situation would be the same. Another issue #69 is also related to these header and shared library.
Cheers
The text was updated successfully, but these errors were encountered:
Hello,
I am wrapping webgpu library using pyclibrary. You can download the binary depending on your OS from here
The two header files I am processing are webgpu.h and wgpu.h. You can also use the shared library (wgpu_native.dll or wgpu_native.so) from the package.
Here is my initial code:
You will find many enums inside webgpu.h. One of them is this:
Correct way to access the members of this enum
WGPU and wgpu are gone as prefix, which is required and correct behavior.
The problem is that I'm getting an error:
clib.TextureUsage is c_long type. Am I missing something here? Although I am not sure about other enums in the headers but I believe the situation would be the same. Another issue #69 is also related to these header and shared library.
Cheers
The text was updated successfully, but these errors were encountered: