Commit c58bee7
feat(🧪): add WebGPU CTS integration for React Native
Add support for running the WebGPU Conformance Test Suite in React Native:
- Add sync-cts.sh script to copy and adapt CTS files for Metro bundler
- Add CTSScreen component with UI for running tests
- Add React Native runtime (loader.ts, runtime.ts) for CTS execution
- Add polyfills for Event, EventTarget, MessageEvent
- Stub Node.js-specific code (fs, perf_hooks)
- Generate static imports for all spec files (Metro doesn't support dynamic imports)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7c5239c commit c58bee7
936 files changed
Lines changed: 234216 additions & 0 deletions
File tree
- apps/example
- scripts
- src
- CTSScreen
- webgpu-cts
- src
- common
- framework
- internal
- logging
- query
- runtime
- helper
- rn
- generated
- util
- external
- petamoriken/float16
- webgpu
- api
- operation
- adapter
- async_ordering
- buffers
- command_buffer
- programmable
- queries
- render
- compute_pipeline
- compute
- device
- limits
- memory_allocation
- memory_sync
- buffer
- texture
- pipeline
- queue
- render_pass
- render_pipeline
- rendering
- resource_init
- check_texture
- sampling
- shader_module
- storage_texture
- texture_view
- threading
- vertex_state
- regression
- validation
- buffer
- capability_checks
- features
- limits
- encoding
- cmds
- render
- programmable
- queries
- image_copy
- query_set
- queue
- copyToTexture
- destroyed
- render_pass
- render_pipeline
- resource_usages
- buffer
- texture
- shader_module
- state/device_lost
- texture
- compat
- api/validation
- encoding
- cmds
- programmable
- render_pipeline
- texture
- idl
- constants
- shader
- execution
- expression
- access
- array
- matrix
- structure
- vector
- binary
- call
- builtin
- atomics
- user
- constructor
- unary
- flow_control
- memory_model
- shader_io
- statement
- regression
- validation
- const_assert
- decl
- expression
- access
- binary
- call/builtin
- matrix
- unary
- extension
- functions
- parse
- shader_io
- statement
- types
- uniformity
- util
- texture
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments