mozangle icon indicating copy to clipboard operation
mozangle copied to clipboard

Mozilla’s fork of Google ANGLE, repackaged as a Rust crate

Results 14 mozangle issues
Sort by recently updated
recently updated
newest added

Fixes #38. sccache guesses what mode to run the compiler in based on the filename, which makes clang complain when we pass C++ flags when building C files. Forcing C++...

```rust use mozangle::egl::ffi as egl; fn main() { let _ = unsafe { egl::eglCreateDeviceANGLE(0, std::ptr::null_mut(), std::ptr::null()) } } ``` ```bash cargo build --target i686-pc-windows-msvc ``` output: ```text error LNK2019: 无法解析的外部符号...

Linux builds break with this error: ``` running: "sccache" "clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=x86_64-unknown-linux-gnu" "-I" "gfx/angle/checkout/include/" "-I" "gfx/angle/checkout/out/gen/angle/" "-I" "gfx/angle/checkout/src/" "-I" "gfx/angle/checkout/src/common/third_party/base/" "-std=c++14" "-msse2" "-DANGLE_ENABLE_DEBUG_ANNOTATIONS" "-DANGLE_ENABLE_ESSL" "-DANGLE_ENABLE_GLSL"...

We need a version that has "GL_ANGLE_base_vertex_base_instance" extension.

https://searchfox.org/mozilla-central/rev/d69ec052bed8700af7a283e37b60b4af22734930/dom/canvas/WebGLShaderValidator.cpp#31 There are some differences that we probably want to copy.

The presence of a Rust crate that calls C functions that are compiled into in the ANGLE static library makes it hard to deal with the DLL mess that exists...

Based on https://stackoverflow.com/questions/2384932/converting-static-link-library-to-dynamic-dll, we should be able to avoid building all of the source files twice when building a static library as well as a DLL. Given the overlap between...

The first time we compile each file individually. The second time we pass all the files to a single cl instance. I don't yet understand why.

Like we do in mozjs.

When building `mozangle` on Linux, there are many warning message like this printed on stdout: ```bash warning: [email protected]: clang: warning: argument unused during compilation: '-arch:SSE2' [-Wunused-command-line-argument] ``` The reason is...