Stephen Gutekanst
|
0be5cae328
|
gpu: implement Queue.on_submitted_work_done callback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
687fb132ab
|
gpu: add Queue TODOs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
bf93ae0f81
|
gpu: add CommandBuffer, Queue.submit
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
2b67ad5457
|
gpu: basic Queue implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
5a7fa36baf
|
gpu: migrate requestAdapter to local callback response
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
4d97c52353
|
gpu: implement Limits and conversion
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
39ab0105a9
|
gpu: improve how limits are represented
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
070126b85d
|
gpu: add TODOs about documentation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
4bc5411a14
|
gpu: implement Adapter.requestDevice
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
93d6e5dedf
|
gpu: add basic Device implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
32de278709
|
gpu: add TODOs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
743921483c
|
gpu: implement FeatureName
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
a1c9fe6897
|
gpu: implement Adapter.reference, Adapter.release
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
5581584717
|
gpu: implement Adapter type / backend type -> name conversion
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
f849e03443
|
gpu: implement Adapter properties
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
60702eb9e6
|
gpu: fix requestAdapter implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
3a0b0fd83c
|
gpu: initial pass at requestAdapter
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
3f19563354
|
gpu: implement Interface.reference, Interface.release
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
8d31fae6ee
|
gpu: document equality to c.WGPUSurface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
8f5e9f89e5
|
gpu: expose API and begin using in example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
d32be19c8b
|
gpu: implement Surface.reference, Surface.release
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
368f53ece1
|
gpu: implement NativeInstance.createSurface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
89b1f31de8
|
gpu: begin implementing Surface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
64e023c992
|
gpu: prepare to implement Surface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
9888d8fe36
|
gpu: rename native -> NativeInstance
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
5656d3252a
|
gpu: begin plotting how to wrap a WGPUInstance
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
5f7fe4d7e2
|
gpu: prepare to add Device interface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
2e0a7019b2
|
gpu: name the interface gpu.Interface
`gpu.Device` should be reserved for WGPUDevice
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
414887db2a
|
gpu: add foundation for interface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
bf8076918b
|
gpu: update TODO / remove procs, etc
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
51faaf883c
|
gpu: add webgpu.h TODO
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
4d12f229d6
|
gpu: document coordinate system, WebGPU spec location
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
376311cf16
|
gpu: initialize project
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
7af784bee7
|
rename mach/gpu to mach/gpu-dawn
See https://github.com/hexops/mach/issues/133#issuecomment-999940767
Helps #109
Helps #133
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-22 18:04:33 -07:00 |
|
Stephen Gutekanst
|
62fbf78f9a
|
gpu: update to latest Zig (c_void -> anyopaque)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-20 15:36:45 -07:00 |
|
Stephen Gutekanst
|
c279e0c794
|
gpu: update to latest Dawn revision as of Dec 15, 2021
See hexops/dawn#4
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-15 20:53:20 -07:00 |
|
iddev5
|
97ebee0e00
|
gpu: Fix invalid parameter type of glfw framebuffer callback function
|
2021-12-14 23:41:19 -08:00 |
|
Stephen Gutekanst
|
d07b61787e
|
gpu: reduce compilation units to improve iteration time by ~387ms
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-12 14:51:36 -08:00 |
|
Stephen Gutekanst
|
fe17507689
|
gpu: reduce compilation units to improve iteration time by ~763ms
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-12 14:51:36 -08:00 |
|
Stephen Gutekanst
|
4a9fda49e0
|
gpu: reduce compilation units to improve iteration time by ~566ms
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-12 14:51:36 -08:00 |
|
Stephen Gutekanst
|
43ffa1c408
|
gpu: reduce compilation units to improve iteration time by ~288ms
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-12 14:51:36 -08:00 |
|
Stephen Gutekanst
|
51aae5e474
|
gpu: reduce compilation units to improve iteration time by ~121ms
See hexops/mach#124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-12 14:51:36 -08:00 |
|
Stephen Gutekanst
|
7ecef80ec7
|
gpu: update to latest Zig master version (allocgate)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-06 20:03:38 -08:00 |
|
Stephen Gutekanst
|
6b0129f590
|
gpu: implement OpenGL / OpenGL ES adapter discovery in example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-05 04:23:06 +00:00 |
|
Stephen Gutekanst
|
507f4fa6aa
|
gpu: allow choosing WGPU_BACKEND in example program
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-05 04:21:29 +00:00 |
|
Stephen Gutekanst
|
d9ec84b327
|
gpu: implement C wrapper for Dawn Instance.discoverAdapters
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-04 21:49:45 +00:00 |
|
Stephen Gutekanst
|
4ebb4571ac
|
gpu: correctly target ~60hz, not 62,500hz, in Dawn example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-02 18:05:46 +00:00 |
|
Stephen Gutekanst
|
fd0eeb2662
|
gpu: handle resize events in example (fixes Vulkan crash on resize)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-01 10:18:03 +00:00 |
|
Stephen Gutekanst
|
8f3726dfa2
|
gpu: improve Dawn example backend type detection
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-01 08:46:09 +00:00 |
|
Stephen Gutekanst
|
91728ebde9
|
gpu: update to latest Dawn version
See https://github.com/hexops/dawn/pull/1
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-12-01 00:01:18 -07:00 |
|