Stephen Gutekanst
|
0017303cde
|
gpu: use SwapChain.configure in example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
258db701a7
|
gpu: add SwapChain.configure
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
f05fdf4414
|
gpu: use gpu.TextureFormat in example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
46e5592165
|
gpu: use nativeCreateSwapChain in example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
c13097cae6
|
gpu: fix descriptor parameter type to nativeCreateSwapChain
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
0b63ea0ed0
|
gpu: add SwapChain.Descriptor.equal ity
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
6ecc6d97a1
|
gpu: nativeCreateSwapChain surface is optional
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
e9ac31f264
|
gpu: implement Device.nativeCreateSwapChain, SwapChain
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
738e9da8ee
|
gpu: implement TextureUsage enums
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
4294b5c065
|
gpu: implement TextureFormat enums
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
c852ea9532
|
gpu: implement PresentMode enums
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
53435cd134
|
gpu: use ShaderModule.release in example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
19277b7282
|
gpu: use Device.createShaderModule in example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
e9ea1e2531
|
gpu: implement ShaderModule, Device.createShaderModule
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
99744134f8
|
gpu: rename Surface.Descriptor.xlib_window -> xlib
To appropriately match the upstream, webgpu.h, which has renamed in this way.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
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
|
6e175ba0f3
|
gpu: use Queue.submit in example
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
|
ad6cfbb0c9
|
gpu: use Device.getQueue in example
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
|
818a2a172c
|
gpu: use requestDevice in example
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
|
77b16a3671
|
gpu: print adapter information in example
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
|
c7c8764129
|
gpu: use requestAdapter in example
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
|
9956ff1864
|
gpu: example: store gpu.Surface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2022-03-19 00:51:48 -07:00 |
|
Stephen Gutekanst
|
9916ec043b
|
gpu: use Surface API in example
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 |
|