mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
webgl: finish, flush, detachShader, generateMipmap, Uniform1i
This commit is contained in:
parent
d0f692b2c5
commit
3fd7634f54
14 changed files with 634 additions and 12 deletions
|
@ -266,6 +266,14 @@ macro_rules! make_nonzero_dimension_setter(
|
|||
/// For use on non-jsmanaged types
|
||||
/// Use #[derive(JSTraceable)] on JS managed types
|
||||
macro_rules! no_jsmanaged_fields(
|
||||
([$ty:ident; $count:expr]) => (
|
||||
impl $crate::dom::bindings::trace::JSTraceable for [$ty; $count] {
|
||||
#[inline]
|
||||
fn trace(&self, _: *mut ::js::jsapi::JSTracer) {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
);
|
||||
($($ty:ident),+) => (
|
||||
$(
|
||||
impl $crate::dom::bindings::trace::JSTraceable for $ty {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue