/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_webgpu/lib.rs
76 строк
3 KB
Narfinger
script: Move GPUAdapter, GPUSupportedFeatures, GPUSupportedLimits and WGSLLanguageFeatures to script_webgpu (#46964)
10 авг 2026, 21:29
Не верифицирован
10 авг 2026, 21:29
e4c9034
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #![cfg_attr(crown, feature(register_tool))] // Register the linter `crown`, which is the Servo-specific linter for the script crate. #![cfg_attr(crown, register_tool(crown))] pub mod gpuadapter; pub mod gpuadapterinfo; pub mod gpubufferusage; pub mod gpucommandbuffer; pub mod gpucompilationinfo; pub mod gpucompilationmessage; pub mod gpudevicelostinfo; pub mod gpumapmode; pub mod gpurenderbundle; pub mod gpushaderstage; pub mod gpusupportedfeatures; pub mod gpusupportedlimits; pub mod gputextureusage; pub mod identityhub; pub mod promise; pub mod wgsllanguagefeatures; pub(crate) use js::gc::Traceable as JSTraceable; pub(crate) use jstraceable_derive::JSTraceable; pub(crate) use script_bindings::reflector::{DomObject, MutDomObject, Reflector}; pub(crate) use script_bindings::trace::CustomTraceable; pub(crate) use crate::dom::bindings::inheritance::HasParent; // Reexports pub(crate) mod dom { pub(crate) mod types {} pub(crate) mod bindings { pub(crate) use script_bindings::*; } } /// Generated JS-Rust bindings. #[allow(missing_docs, non_snake_case)] pub(crate) mod codegen { #[expect(unused)] pub(crate) mod Bindings { use std::ptr; use js::context::JSContext; use js::gc::HandleObject; pub(crate) use script_bindings::DomTypes; use script_bindings::conversions::IDLInterface; use script_bindings::reflector::DomObjectWrap; pub(crate) use script_bindings::reflector::Reflector; use script_bindings::root::{Dom, DomRoot, Root}; use script_bindings::utils::DOMClass; use crate::gpuadapter::GPUAdapter; use crate::gpuadapterinfo::GPUAdapterInfo; use crate::gpubufferusage::GPUBufferUsage; use crate::gpucommandbuffer::GPUCommandBuffer; use crate::gpucompilationinfo::GPUCompilationInfo; use crate::gpucompilationmessage::GPUCompilationMessage; use crate::gpudevicelostinfo::GPUDeviceLostInfo; use crate::gpumapmode::GPUMapMode; use crate::gpurenderbundle::GPURenderBundle; use crate::gpushaderstage::GPUShaderStage; use crate::gpusupportedfeatures::GPUSupportedFeatures; use crate::gpusupportedlimits::GPUSupportedLimits; use crate::gputextureusage::GPUTextureUsage; use crate::wgsllanguagefeatures::WGSLLanguageFeatures; include!(concat!( env!("OUT_DIR"), "/ConcreteBindings/WebGPUBinding.rs" )); } }