Laytan Laats
b76fd84084
webgl: add BlendEquationSeparate and GetParameter4i
...
`GetParameter4i` can be used to retrieve the current scissor rect, or
the curent viewport, which was previously impossible.
Also adds `BlendEquationSeparate` which seemed to be missing.
Also removes an instance of `do`.
2025-03-12 18:39:57 +01:00
gingerBill
26d00925cc
Clean-up libc usage
2024-09-22 13:20:45 +01:00
gingerBill
634fa7aa30
Move vendor:wasm/js to core:sys/wasm/js
2024-09-22 13:13:34 +01:00
gingerBill
096258b5d5
Rename runtime.js to odin.js
2024-09-22 13:08:42 +01:00
gingerBill
c39b934e7f
Remove unused imports
2024-09-22 13:04:23 +01:00
gingerBill
2c5be4e054
Use .shift() instead
2024-09-20 11:18:11 +01:00
gingerBill
02884207d5
Update wasm's runtime.js
2024-09-20 11:15:47 +01:00
gingerBill
b116e8ff55
Fix 128-bit integer support for wasm targets
2024-09-20 01:29:39 +01:00
gingerBill
a4dd489284
Add fmt tags
2024-09-19 17:12:47 +01:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Laytan
500c117312
Merge pull request #4008 from Daxode/wasm-quality-of-life
...
Quality of Life changes to wgpu/js
2024-08-02 13:51:47 +02:00
marcosantos98
3bfccde6f9
Fix: remove extra usage in webgl.odin:250
...
Compilation error when using webgl.BufferSubDataSlice.
The `usage` parameter is nowhere to be found.
This is probably a copy-pasta leftover.
2024-08-02 10:50:16 +01:00
daniel-andersen
e7041f785a
Quality of life changes to wgpu/wasm stuff
2024-08-02 11:04:10 +02:00
Laytan Laats
108b8feb35
Add vendor:wgpu
2024-06-12 17:22:02 +02:00
Laytan Laats
8a521648b9
wasm: fix runtime.js even more for wasm64p32
...
- make the int size configurable in the `runWasm` call, no more
constants to hunt down and change
- make storeU64 and storeI64 handle bigints, this is needed in the
odin_dom library
- fix alignment issues within init_event_raw
2024-05-31 20:57:15 +02:00
Laytan Laats
692ca13ffd
wasm: fix the WheelEvent not storing data properly
...
A `WheelEvent` is also an instanceof `MouseEvent` so it was never
hitting the if statement for the `WheelEvent`.
2024-05-30 01:49:30 +02:00
Laytan Laats
e08b51ed73
correctly load/store uint&int in the runtime.js for wasm64p32
2024-05-17 16:32:34 +02:00
Laytan Laats
d2ca91b830
fix wasm runtime.js storeString to support Unicode
2024-04-13 19:34:13 +02:00
Laytan Laats
9d8bb7f4e4
fix _end being called before the actual end when using the step function
2024-04-08 13:54:23 +02:00
Laytan Laats
667883b3d5
fix js_wasm time.tick_now, performance.now() returns a float
2024-04-08 13:53:16 +02:00
Damian Tarnawski
23a49ce65b
USe intrinsics.matrix_flatten in webgl2.odin
2024-02-05 18:28:03 +01:00
Kay
89a2fdd106
Change ClearMask to ColorMask in webgl.odin
...
https://registry.khronos.org/OpenGL-Refpages/gl4/html/glColorMask.xhtml
2024-02-02 23:42:37 -06:00
gingerBill
c51f94b600
Merge pull request #2978 from thetarnav/patch-2
...
Many small typos and fixes to wasm bindings
2024-01-31 21:02:03 +00:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
Damian Tarnawski
b0aa08f85b
Correct wasm page_allocator switch cases
2024-01-18 10:33:40 +01:00
Damian Tarnawski
a263da0bbe
Fix window_get_scroll proc not returning loaded values
2024-01-18 10:27:09 +01:00
Damian Tarnawski
9cb02aa51d
Add missing Resize_Non_Zeroed case to page allocator
2024-01-18 10:26:43 +01:00
Damian Tarnawski
190103883c
Fix uniform matrix functions in WebGLInterface
2024-01-16 21:45:52 +01:00
Damian Tarnawski
8de7d2f18f
Hoist STRING_SIZE constant
2024-01-07 22:25:27 +01:00
Damian Tarnawski
0bf1b6c2f1
Fix typo in WebGLInterface class
2024-01-07 20:19:44 +01:00
Damian Tarnawski
2017ebc1b5
Fix copyTexSubImage2D and copyTexSubImage3D method calls
2024-01-07 16:49:51 +01:00
Damian Tarnawski
da56a75ad6
Fix WebGLInterface function names
2024-01-07 16:49:12 +01:00
Damian Tarnawski
0580eebd2a
Pass height to webgl.readPixels
2024-01-06 22:28:24 +01:00
Damian Tarnawski
909a5016ee
Correct glIsEnabled in wasm.webgl
2024-01-06 22:17:01 +01:00
Damian Tarnawski
c2c89e54a5
Correct spelling of FramebufferRenderbuffer
2024-01-06 21:03:27 +01:00
Damian Tarnawski
1e726bb3e0
Fix scroll and visibilitychange event handling
2023-11-25 16:07:36 +01:00
Damian Tarnawski
e0ecae66fd
Fix set_element_value_string parameter name
2023-11-25 14:35:48 +01:00
Damian Tarnawski
0df7fe4247
Fix alignment
2023-11-25 14:23:41 +01:00
Damian Tarnawski
84a8e17482
Correct some typos in runtime.js
2023-11-25 14:22:17 +01:00
Damian Tarnawski
49da19e013
Replace Math.random with crypto.getRandomValues for _system_number
2023-10-27 12:06:35 +02:00
Damian Tarnawski
8b2f62000a
Use wasmMemoryInterface for rand_bytes
2023-10-27 00:50:29 +02:00
Damian Tarnawski
11a2b2a942
Add system_random and random_bytes for js target
2023-10-27 00:05:38 +02:00
Damian Tarnawski
058065ce75
Correct loadI64 and storeI64 methods in runtime.js
2023-10-22 18:54:52 +02:00
Damian Tarnawski
c19af95db0
Fix calling time.now() in wasm js runtime
2023-10-19 18:45:04 +02:00
gingerBill
2783461e69
Merge pull request #2847 from thetarnav/js-runtime-patch
...
Update wasm `runtime.js`
2023-10-14 19:58:28 +01:00
Rehkitzdev
1097192554
added webgl GetParameter
2023-10-08 04:02:55 +02:00
Damian Tarnawski
ab2907cd51
Correct stripNewline function
2023-10-06 20:11:25 +02:00
Damian Tarnawski
ea8d3d4531
Define stripNewline function
2023-10-06 20:06:43 +02:00
Damian Tarnawski
256e4a0081
Don't pass true for littleEndian where it's not needed.
2023-10-06 20:03:26 +02:00
Damian Tarnawski
721c9e2c97
Fix typo
2023-10-06 17:26:39 +02:00