gpu-dawn: clarify desktop_gl support
Helps hexops/mach#86 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
53e85b8dac
commit
918bc61187
1 changed files with 4 additions and 5 deletions
|
|
@ -60,8 +60,7 @@ pub const Options = struct {
|
||||||
// TODO(build-system): enable on Windows if we can cross compile Vulkan
|
// TODO(build-system): enable on Windows if we can cross compile Vulkan
|
||||||
vulkan: ?bool = null,
|
vulkan: ?bool = null,
|
||||||
|
|
||||||
/// Defaults to true on Windows, Linux
|
/// Defaults to true on Linux
|
||||||
// TODO(build-system): not respected at all currently
|
|
||||||
desktop_gl: ?bool = null,
|
desktop_gl: ?bool = null,
|
||||||
|
|
||||||
/// Defaults to true on Android, Linux, Windows, Emscripten
|
/// Defaults to true on Android, Linux, Windows, Emscripten
|
||||||
|
|
@ -96,9 +95,9 @@ pub const Options = struct {
|
||||||
if (options.metal == null) options.metal = tag.isDarwin();
|
if (options.metal == null) options.metal = tag.isDarwin();
|
||||||
if (options.vulkan == null) options.vulkan = tag == .fuchsia or linux_desktop_like;
|
if (options.vulkan == null) options.vulkan = tag == .fuchsia or linux_desktop_like;
|
||||||
|
|
||||||
// TODO(build-system): respect these options / defaults
|
// TODO(build-system): technically Dawn itself defaults desktop_gl to true on Windows.
|
||||||
if (options.desktop_gl == null) options.desktop_gl = linux_desktop_like; // TODO(build-system): add windows
|
if (options.desktop_gl == null) options.desktop_gl = linux_desktop_like;
|
||||||
options.opengl_es = false;
|
options.opengl_es = false; // TODO(build-system): OpenGL ES
|
||||||
// if (options.opengl_es == null) options.opengl_es = tag == .windows or tag == .emscripten or target.isAndroid() or linux_desktop_like;
|
// if (options.opengl_es == null) options.opengl_es = tag == .windows or tag == .emscripten or target.isAndroid() or linux_desktop_like;
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue