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
Damian Tarnawski
42c7e39c99
Update wasm runtime.js
...
- polyfill `Math.ldexp` method
- pass Math mathods streight through to exports object
(they don't use `this`)
- Don't pass `"utf-8"` encodings to `TextEncoder` and `TextDecoder`
(encoder doesn't take params and decoder has utf-8 as default)
2023-10-06 17:18:31 +02:00
gingerBill
b873651da7
Merge pull request #2748 from Caedo/js-events-fix
...
Fix issues with js events not being initialized properly
2023-08-17 16:40:54 +01:00
Caedo
b185d9e701
Remove pointer magic when creating strings
2023-08-16 20:33:17 +02:00
gingerBill
2cc22d118d
Require parentheses for #align(N)
2023-08-15 14:55:02 +01:00
Caedo
1182f41f99
Fix issues with js events not being initialized properly
2023-08-15 14:56:04 +02:00
gingerBill
5a6d5374d7
Update WebGL procedures to contextless calling convention
2023-06-22 14:30:02 +01:00
gingerBill
4a75a1e839
Merge branch 'master' into separate-int-word-sizes
2023-06-06 22:42:04 +01:00
Rehkitzdev
d8752da7d5
added webgl bindFramebuffer
2023-06-02 22:19:32 +02:00
Rehkitzdev
b52bf11ea5
fixed webgl BindFramebuffer parameter
2023-05-31 21:44:30 +02:00
gingerBill
f5d9ca64f9
Begin work on new pseudo-architecture: wasm64p32
2023-04-20 12:02:32 +01:00