(future:webgpu.struct_WGPUFuture)
| 23 | return webgpu.WGPUStringView(data=ctypes.cast(ctypes.pointer(to_c_string(_str)), ctypes.POINTER(ctypes.c_char)), length=len(_str)) |
| 24 | |
| 25 | def _wait(future:webgpu.struct_WGPUFuture): |
| 26 | assert webgpu.wgpuInstanceWaitAny(instance, 1, webgpu.WGPUFutureWaitInfo(future=future), 2**64-1) == webgpu.WGPUWaitStatus_Success, "Future failed" |
| 27 | |
| 28 | def write_buffer(device:WGPUDevPtr, buf:WGPUBufPtr, offset:int, src:memoryview|bytearray|bytes): |
| 29 | src = bytearray(src) |
no outgoing calls
no test coverage detected
searching dependent graphs…