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
{{ message }}
Repository navigation
TestGpuixRenderer not available on Linux but types say otherwise #30
index.d.ts declares TestGpuixRenderer unconditionally, so it type-checks on
Linux and then:
TypeError: TestGpuixRenderer is not a constructor
Working as intended: lib.rs gates mod test_renderer on macos/windows,
and CI builds Linux --no-default-features "until wgpu image readback lands". GpuixRenderer is fine there — only headless tests are out.
The doc comment hints at it ("Metal or DirectX renderer"), but it's an
inference. Since napi copies that comment straight into index.d.ts, one line
in test_renderer.rs above pub struct TestGpuixRenderer would say it outright:
/// macOS and Windows only — the Linux build has no test-support, as wgpu/// cannot read a rendered image back yet.
Activity
release: @gpuix/[email protected] and @gpuix/[email protected]
native: export TestGpuixRenderer on Linux as a throwing stub