mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Update to deno 2.3.2
(cherry picked from denoland/deno#29166) Co-authored-by: snek <snek@deno.com>
This commit is contained in:
parent
3ebae1bf3b
commit
b6b951d467
75
Cargo.lock
generated
75
Cargo.lock
generated
@ -27,12 +27,6 @@ dependencies = [
|
||||
"gimli",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "adler"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
||||
|
||||
[[package]]
|
||||
name = "adler2"
|
||||
version = "2.0.1"
|
||||
@ -304,7 +298,7 @@ dependencies = [
|
||||
"addr2line",
|
||||
"cfg-if",
|
||||
"libc",
|
||||
"miniz_oxide 0.8.9",
|
||||
"miniz_oxide",
|
||||
"object",
|
||||
"rustc-demangle",
|
||||
"windows-targets 0.52.6",
|
||||
@ -989,6 +983,7 @@ version = "26.0.0"
|
||||
dependencies = [
|
||||
"deno_console",
|
||||
"deno_core",
|
||||
"deno_features",
|
||||
"deno_url",
|
||||
"deno_web",
|
||||
"deno_webgpu",
|
||||
@ -1022,18 +1017,18 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "deno_console"
|
||||
version = "0.203.0"
|
||||
version = "0.205.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "999171b0fc7255971eec7adfc49b2bf18832e86e4a86746c3c58633373d16cdb"
|
||||
checksum = "f18e4a73bc0dd2a30dfbc14d8c2eb9b7347b7616acb6810d71e7912385c34f89"
|
||||
dependencies = [
|
||||
"deno_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "deno_core"
|
||||
version = "0.343.0"
|
||||
version = "0.347.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "167ae63972f6de58e4a548327f363ebc449930b62a44d9bbd80197564d2c755d"
|
||||
checksum = "d75ae5562f6ad750bc2007e7b1032ae37115a83fe58b6fbc77331c47744956cc"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"az",
|
||||
@ -1099,10 +1094,21 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "deno_ops"
|
||||
version = "0.219.0"
|
||||
name = "deno_features"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "188e48d180244dae157d8a5126b8fbcecf6458f26a425f1c2f57b5952a1b5ee1"
|
||||
checksum = "cf0bffbb52e0ad53c50225cdf0c20b24501036c3948264a049487fc5e5c40f57"
|
||||
dependencies = [
|
||||
"deno_core",
|
||||
"serde",
|
||||
"serde_json",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "deno_ops"
|
||||
version = "0.223.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c5adc7f0795c7547f1b560a07aaea484e8f9cd035318348c6bfd084e0c42dce8"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"proc-macro-rules",
|
||||
@ -1130,9 +1136,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "deno_permissions"
|
||||
version = "0.62.0"
|
||||
version = "0.64.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f7c3c0785bcb458cd010c47d7f77cae26594a5160ebfc4fecb6f9e5ea36483fc"
|
||||
checksum = "501f5bb2f44b977eb682c42909df35b980edf5144d3b5f00796e96a67df0055c"
|
||||
dependencies = [
|
||||
"capacity_builder",
|
||||
"deno_core",
|
||||
@ -1173,9 +1179,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "deno_url"
|
||||
version = "0.203.0"
|
||||
version = "0.205.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0961e3e844191cac261eba5efdf52e2a5dd3aeeac7ebb09c1bbe3f8b04ef31cd"
|
||||
checksum = "af2813696e113b21c288558151c86a0f60d1afda3458bc76e5d29173fe288c22"
|
||||
dependencies = [
|
||||
"deno_core",
|
||||
"deno_error",
|
||||
@ -1184,9 +1190,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "deno_web"
|
||||
version = "0.234.0"
|
||||
version = "0.236.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2ec73d866d485bed1bd520f3a413a94b5c9a69de09d8561697d2bd83a79c795c"
|
||||
checksum = "8b0885564bfade3284b26a29cb32a67ba7b75fe329b7f12bc0e26815acf7ae1c"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"base64-simd",
|
||||
@ -1205,7 +1211,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "deno_webgpu"
|
||||
version = "0.170.0"
|
||||
version = "0.171.0"
|
||||
dependencies = [
|
||||
"deno_core",
|
||||
"deno_error",
|
||||
@ -1222,9 +1228,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "deno_webidl"
|
||||
version = "0.203.0"
|
||||
version = "0.205.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb50836af90d078b1f30f4df0e3398d557a74633b9b4740e10a299a83f12d054"
|
||||
checksum = "7e4f3a7a4672a071d25e93b5598f4a8a4bfc20f2a8d6900a7a6a7d02264bc6f2"
|
||||
dependencies = [
|
||||
"deno_core",
|
||||
]
|
||||
@ -1470,7 +1476,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"miniz_oxide 0.8.9",
|
||||
"miniz_oxide",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2436,15 +2442,6 @@ version = "0.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
||||
|
||||
[[package]]
|
||||
name = "miniz_oxide"
|
||||
version = "0.7.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08"
|
||||
dependencies = [
|
||||
"adler",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "miniz_oxide"
|
||||
version = "0.8.9"
|
||||
@ -3232,7 +3229,7 @@ dependencies = [
|
||||
"crc32fast",
|
||||
"fdeflate",
|
||||
"flate2",
|
||||
"miniz_oxide 0.8.9",
|
||||
"miniz_oxide",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -3759,9 +3756,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "serde_v8"
|
||||
version = "0.252.0"
|
||||
version = "0.256.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "84b2d85f46747fad18bbf98ad4b9b13c59e01c85bf8c73182a71fdf638372dfd"
|
||||
checksum = "69d69b4e574a9ec6bd0222463e50cf8531986d9c657543888e029d54d909b283"
|
||||
dependencies = [
|
||||
"deno_error",
|
||||
"num-bigint",
|
||||
@ -4499,16 +4496,16 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "v8"
|
||||
version = "135.1.1"
|
||||
version = "137.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "171c7d65c2c71e7e02cbef7762787614cab3e9043d58b433ef65b4baa2f4614d"
|
||||
checksum = "33995a1fee055ff743281cde33a41f0d618ee0bdbe8bdf6859e11864499c2595"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"bitflags 2.9.4",
|
||||
"fslock",
|
||||
"gzip-header",
|
||||
"home",
|
||||
"miniz_oxide 0.7.4",
|
||||
"miniz_oxide",
|
||||
"paste",
|
||||
"which 6.0.3",
|
||||
]
|
||||
|
||||
13
Cargo.toml
13
Cargo.toml
@ -236,12 +236,13 @@ web-sys = { version = "0.3.77", default-features = false }
|
||||
web-time = "1.1.0"
|
||||
|
||||
# deno dependencies
|
||||
deno_console = "0.203.0"
|
||||
deno_core = "0.343.0"
|
||||
deno_url = "0.203.0"
|
||||
deno_web = "0.234.0"
|
||||
deno_webidl = "0.203.0"
|
||||
deno_webgpu = { version = "0.170.0", path = "./deno_webgpu" }
|
||||
deno_console = "0.205.0"
|
||||
deno_core = "0.347.0"
|
||||
deno_features = "0.2.0"
|
||||
deno_url = "0.205.0"
|
||||
deno_web = "0.236.0"
|
||||
deno_webidl = "0.205.0"
|
||||
deno_webgpu = { version = "0.171.0", path = "./deno_webgpu" }
|
||||
deno_unsync = "0.4.2"
|
||||
deno_error = "0.5.6"
|
||||
tokio = "1.45.1"
|
||||
|
||||
@ -15,6 +15,7 @@ env_logger.workspace = true
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
deno_console.workspace = true
|
||||
deno_core.workspace = true
|
||||
deno_features.workspace = true
|
||||
deno_url.workspace = true
|
||||
deno_web.workspace = true
|
||||
deno_webidl.workspace = true
|
||||
|
||||
@ -30,23 +30,19 @@ pub async fn run() -> Result<(), AnyError> {
|
||||
.ok_or_else(|| anyhow!("missing specifier in first command line argument"))?;
|
||||
let specifier = resolve_url_or_path(&url, &env::current_dir()?)?;
|
||||
|
||||
let mut feature_checker = deno_core::FeatureChecker::default();
|
||||
feature_checker.enable_feature(deno_webgpu::UNSTABLE_FEATURE_NAME);
|
||||
|
||||
let options = RuntimeOptions {
|
||||
module_loader: Some(Rc::new(deno_core::FsModuleLoader)),
|
||||
extensions: vec![
|
||||
deno_webidl::deno_webidl::init_ops_and_esm(),
|
||||
deno_console::deno_console::init_ops_and_esm(),
|
||||
deno_url::deno_url::init_ops_and_esm(),
|
||||
deno_web::deno_web::init_ops_and_esm::<Permissions>(
|
||||
deno_webidl::deno_webidl::init(),
|
||||
deno_console::deno_console::init(),
|
||||
deno_url::deno_url::init(),
|
||||
deno_web::deno_web::init::<Permissions>(
|
||||
Arc::new(BlobStore::default()),
|
||||
None,
|
||||
),
|
||||
deno_webgpu::deno_webgpu::init_ops_and_esm(),
|
||||
cts_runner::init_ops_and_esm(),
|
||||
deno_webgpu::deno_webgpu::init(),
|
||||
cts_runner::init(),
|
||||
],
|
||||
feature_checker: Some(Arc::new(feature_checker)),
|
||||
..Default::default()
|
||||
};
|
||||
let mut js_runtime = JsRuntime::new(options);
|
||||
@ -84,6 +80,9 @@ deno_core::extension!(
|
||||
esm_entry_point = "ext:cts_runner/src/bootstrap.js",
|
||||
esm = ["src/bootstrap.js"],
|
||||
state = |state| {
|
||||
let mut feature_checker = deno_features::FeatureChecker::default();
|
||||
feature_checker.enable_feature(deno_webgpu::UNSTABLE_FEATURE_NAME);
|
||||
state.put(feature_checker);
|
||||
state.put(Permissions {});
|
||||
}
|
||||
);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
[package]
|
||||
name = "deno_webgpu"
|
||||
version = "0.170.0"
|
||||
version = "0.171.0"
|
||||
authors = ["the Deno authors"]
|
||||
edition.workspace = true
|
||||
license = "MIT"
|
||||
|
||||
@ -60,7 +60,11 @@ impl Drop for GPUAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUAdapter {}
|
||||
impl GarbageCollected for GPUAdapter {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUAdapter"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUAdapter {
|
||||
@ -211,7 +215,11 @@ pub enum CreateDeviceError {
|
||||
|
||||
pub struct GPUSupportedLimits(pub wgpu_types::Limits);
|
||||
|
||||
impl GarbageCollected for GPUSupportedLimits {}
|
||||
impl GarbageCollected for GPUSupportedLimits {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUSupportedLimits"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUSupportedLimits {
|
||||
@ -368,7 +376,11 @@ impl GPUSupportedLimits {
|
||||
|
||||
pub struct GPUSupportedFeatures(v8::Global<v8::Value>);
|
||||
|
||||
impl GarbageCollected for GPUSupportedFeatures {}
|
||||
impl GarbageCollected for GPUSupportedFeatures {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUSupportedFeatures"
|
||||
}
|
||||
}
|
||||
|
||||
impl GPUSupportedFeatures {
|
||||
#[allow(clippy::disallowed_types)]
|
||||
@ -402,7 +414,11 @@ pub struct GPUAdapterInfo {
|
||||
pub subgroup_max_size: u32,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUAdapterInfo {}
|
||||
impl GarbageCollected for GPUAdapterInfo {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUAdapterInfo"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUAdapterInfo {
|
||||
|
||||
@ -35,7 +35,11 @@ impl WebIdlInterfaceConverter for GPUBindGroup {
|
||||
const NAME: &'static str = "GPUBindGroup";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUBindGroup {}
|
||||
impl GarbageCollected for GPUBindGroup {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUBindGroup"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUBindGroup {
|
||||
|
||||
@ -23,7 +23,11 @@ impl deno_core::webidl::WebIdlInterfaceConverter for GPUBindGroupLayout {
|
||||
const NAME: &'static str = "GPUBindGroupLayout";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUBindGroupLayout {}
|
||||
impl GarbageCollected for GPUBindGroupLayout {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUBindGroupLayout"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUBindGroupLayout {
|
||||
|
||||
@ -72,7 +72,11 @@ impl WebIdlInterfaceConverter for GPUBuffer {
|
||||
const NAME: &'static str = "GPUBuffer";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUBuffer {}
|
||||
impl GarbageCollected for GPUBuffer {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUBuffer"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUBuffer {
|
||||
|
||||
@ -83,7 +83,11 @@ pub struct UnsafeWindowSurface {
|
||||
pub context: SameObject<GPUCanvasContext>,
|
||||
}
|
||||
|
||||
impl GarbageCollected for UnsafeWindowSurface {}
|
||||
impl GarbageCollected for UnsafeWindowSurface {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"UnsafeWindowSurface"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl UnsafeWindowSurface {
|
||||
|
||||
@ -22,7 +22,11 @@ impl deno_core::webidl::WebIdlInterfaceConverter for GPUCommandBuffer {
|
||||
const NAME: &'static str = "GPUCommandBuffer";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUCommandBuffer {}
|
||||
impl GarbageCollected for GPUCommandBuffer {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUCommandBuffer"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUCommandBuffer {
|
||||
|
||||
@ -36,7 +36,11 @@ impl Drop for GPUCommandEncoder {
|
||||
}
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUCommandEncoder {}
|
||||
impl GarbageCollected for GPUCommandEncoder {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUCommandEncoder"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUCommandEncoder {
|
||||
|
||||
@ -23,7 +23,11 @@ pub struct GPUComputePassEncoder {
|
||||
pub label: String,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUComputePassEncoder {}
|
||||
impl GarbageCollected for GPUComputePassEncoder {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUComputePassEncoder"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUComputePassEncoder {
|
||||
|
||||
@ -30,7 +30,11 @@ impl WebIdlInterfaceConverter for GPUComputePipeline {
|
||||
const NAME: &'static str = "GPUComputePipeline";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUComputePipeline {}
|
||||
impl GarbageCollected for GPUComputePipeline {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUComputePipeline"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUComputePipeline {
|
||||
|
||||
@ -66,7 +66,11 @@ impl WebIdlInterfaceConverter for GPUDevice {
|
||||
const NAME: &'static str = "GPUDevice";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUDevice {}
|
||||
impl GarbageCollected for GPUDevice {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUDevice"
|
||||
}
|
||||
}
|
||||
|
||||
// EventTarget is extended in JS
|
||||
#[op2]
|
||||
@ -897,7 +901,11 @@ pub struct GPUDeviceLostInfo {
|
||||
pub reason: GPUDeviceLostReason,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUDeviceLostInfo {}
|
||||
impl GarbageCollected for GPUDeviceLostInfo {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUDeviceLostInfo"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUDeviceLostInfo {
|
||||
|
||||
@ -130,7 +130,11 @@ struct ErrorEventClass(v8::Global<v8::Value>);
|
||||
|
||||
pub struct GPU;
|
||||
|
||||
impl GarbageCollected for GPU {}
|
||||
impl GarbageCollected for GPU {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPU"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPU {
|
||||
|
||||
@ -24,7 +24,11 @@ impl WebIdlInterfaceConverter for GPUPipelineLayout {
|
||||
const NAME: &'static str = "GPUPipelineLayout";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUPipelineLayout {}
|
||||
impl GarbageCollected for GPUPipelineLayout {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUPipelineLayout"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUPipelineLayout {
|
||||
|
||||
@ -26,7 +26,11 @@ impl WebIdlInterfaceConverter for GPUQuerySet {
|
||||
const NAME: &'static str = "GPUQuerySet";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUQuerySet {}
|
||||
impl GarbageCollected for GPUQuerySet {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUQuerySet"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUQuerySet {
|
||||
|
||||
@ -36,7 +36,11 @@ impl Drop for GPUQueue {
|
||||
}
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUQueue {}
|
||||
impl GarbageCollected for GPUQueue {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUQueue"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUQueue {
|
||||
|
||||
@ -37,7 +37,11 @@ pub struct GPURenderBundleEncoder {
|
||||
pub label: String,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPURenderBundleEncoder {}
|
||||
impl GarbageCollected for GPURenderBundleEncoder {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPURenderBundleEncoder"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPURenderBundleEncoder {
|
||||
@ -407,7 +411,11 @@ impl WebIdlInterfaceConverter for GPURenderBundle {
|
||||
const NAME: &'static str = "GPURenderBundle";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPURenderBundle {}
|
||||
impl GarbageCollected for GPURenderBundle {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPURenderBundle"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPURenderBundle {
|
||||
|
||||
@ -28,7 +28,11 @@ pub struct GPURenderPassEncoder {
|
||||
pub label: String,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPURenderPassEncoder {}
|
||||
impl GarbageCollected for GPURenderPassEncoder {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPURenderPassEncoder"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPURenderPassEncoder {
|
||||
|
||||
@ -33,7 +33,11 @@ impl WebIdlInterfaceConverter for GPURenderPipeline {
|
||||
const NAME: &'static str = "GPURenderPipeline";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPURenderPipeline {}
|
||||
impl GarbageCollected for GPURenderPipeline {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPURenderPipeline"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPURenderPipeline {
|
||||
|
||||
@ -23,7 +23,11 @@ impl WebIdlInterfaceConverter for GPUSampler {
|
||||
const NAME: &'static str = "GPUSampler";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUSampler {}
|
||||
impl GarbageCollected for GPUSampler {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUSampler"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUSampler {
|
||||
|
||||
@ -27,7 +27,11 @@ impl WebIdlInterfaceConverter for GPUShaderModule {
|
||||
const NAME: &'static str = "GPUShaderModule";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUShaderModule {}
|
||||
impl GarbageCollected for GPUShaderModule {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUShaderModule"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUShaderModule {
|
||||
@ -71,7 +75,11 @@ pub struct GPUCompilationMessage {
|
||||
length: u64,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUCompilationMessage {}
|
||||
impl GarbageCollected for GPUCompilationMessage {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUCompilationMessage"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUCompilationMessage {
|
||||
@ -162,7 +170,11 @@ pub struct GPUCompilationInfo {
|
||||
messages: v8::Global<v8::Object>,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUCompilationInfo {}
|
||||
impl GarbageCollected for GPUCompilationInfo {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUCompilationInfo"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUCompilationInfo {
|
||||
|
||||
@ -45,7 +45,11 @@ pub struct GPUCanvasContext {
|
||||
pub canvas: v8::Global<v8::Object>,
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUCanvasContext {}
|
||||
impl GarbageCollected for GPUCanvasContext {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUCanvasContext"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUCanvasContext {
|
||||
|
||||
@ -63,7 +63,11 @@ impl WebIdlInterfaceConverter for GPUTexture {
|
||||
const NAME: &'static str = "GPUTexture";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUTexture {}
|
||||
impl GarbageCollected for GPUTexture {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUTexture"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUTexture {
|
||||
@ -243,7 +247,11 @@ impl WebIdlInterfaceConverter for GPUTextureView {
|
||||
const NAME: &'static str = "GPUTextureView";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUTextureView {}
|
||||
impl GarbageCollected for GPUTextureView {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUTextureView"
|
||||
}
|
||||
}
|
||||
// TODO(@crowlKats): weakref in texture for view
|
||||
|
||||
#[op2]
|
||||
@ -668,7 +676,11 @@ impl WebIdlInterfaceConverter for GPUExternalTexture {
|
||||
const NAME: &'static str = "GPUExternalTexture";
|
||||
}
|
||||
|
||||
impl GarbageCollected for GPUExternalTexture {}
|
||||
impl GarbageCollected for GPUExternalTexture {
|
||||
fn get_name(&self) -> &'static std::ffi::CStr {
|
||||
c"GPUExternalTexture"
|
||||
}
|
||||
}
|
||||
|
||||
#[op2]
|
||||
impl GPUExternalTexture {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user