Commit graph

29 commits

Author SHA1 Message Date
PiergiorgioZagaria
e9bdf86ef9 gpu-dawn: support compiling with stage2 (-fno-stage1) 2022-06-26 23:11:19 -07:00
Stephen Gutekanst
354df53523 gpu-dawn: expose dawn::native::Adapter->Get as C shim
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-31 16:50:09 +00:00
Stephen Gutekanst
9db68d421f gpu-dawn: update to latest Dawn + windows patches
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 19:54:06 -07:00
Stephen Gutekanst
1e2c49d14e gpu-dawn: build Dawn & DirectXShaderCompiler for windows
Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 18:33:44 -07:00
Stephen Gutekanst
51f14596db gpu-dawn: correct kernel32.GetModuleHandleW call
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
daadef1e7d gpu-dawn: example: reuse framebuffer size
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
57fb84c569 gpu-dawn: use new WGPUSurface API in example
Not yet used by OpenGL backends as Dawn does not support the new API there yet.

Fixes hexops/mach#121

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
bab338d160 gpu-dawn: port newer createSurfaceForWindow API
Helps hexops/mach#121

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
0925dc2e24 gpu-dawn: note legacy methods replaced by new Surface API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
bb8a8c3631 gpu-dawn: add ability to get C WGPUInstance
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
412023ef1e gpu-dawn: cleanup hello_triangle example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
e451e4acb8 gpu-dawn: use cross-platform process.getEnvVarOwned
Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-20 20:08:42 -07:00
Stephen Gutekanst
83f3f3452e gpu-dawn: update to generated-2022-02-17
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-18 01:36:37 -07:00
Stephen Gutekanst
fc1f37ef2f gpu-dawn: use source scanning for dawn_native_metal target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
e15c91a8b7 gpu-dawn: use source scanning for dawn_native_gen target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
9dcacacca1 gpu-dawn: use source scanning for dawn_native target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
2e2eb57781 gpu-dawn: use source scanning for dawn_wire target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
4ac07b8f13 gpu-dawn: use source scanning for spirv_cross target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
bb32ce8c97 gpu-dawn: use source scanning for spvtools_opt target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
9b57f73319 gpu-dawn: use source scanning for spvtools_val target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
3368fa9da0 gpu-dawn: use source scanning for spirv_tools target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
a0b513f0da gpu-dawn: use source scanning for tint_core_all_src target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
db37bfe93b gpu-dawn: use source scanning for tint_sem_src target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
37ab51bec1 gpu-dawn: use source scanning for tint_spv_reader target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
8d4b3059ba gpu-dawn: use source scanning for tint_spv_writer target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
ce9608897b gpu-dawn: use source scanning for abseil-cpp target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Alex G Rice
abe9475d6e
gpu-dawn: update to latest glfw get/setUserPointer API (#154)
Updates gpu-dawn to use the latest glfw get/setUserPointer API introduced in hexops/mach#152

Helps hexops/mach#153
2022-01-09 20:58:18 -07:00
Stephen Gutekanst
e38d8649dc gpu-dawn: update to latest Dawn version as of Dec 23, 2021
See hexops/dawn#5

Helps hexops/mach#121

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-24 01:53:33 -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