mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
Restructure the repo to host multiple crates
This commit is contained in:
1 parent
de806ee108
commit
9ecc25e907
21 files changed
+56
-49
No files matched your search
Generated
+13
-13
@@ -298,19 +298,6 @@ dependencies = [
|
||||
"relevant 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gpu-native"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gfx-backend-dx12 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-backend-empty 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-backend-metal 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-backend-vulkan 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-hal 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-memory 0.1.0 (git+https://github.com/gfx-rs/gfx-memory?rev=483d64d)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "itertools"
|
||||
version = "0.5.10"
|
||||
@@ -727,6 +714,19 @@ dependencies = [
|
||||
"lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wgpu-native"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"gfx-backend-dx12 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-backend-empty 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-backend-metal 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-backend-vulkan 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-hal 0.1.0 (git+https://github.com/gfx-rs/gfx?rev=a435a05)",
|
||||
"gfx-memory 0.1.0 (git+https://github.com/gfx-rs/gfx-memory?rev=483d64d)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.3.5"
|
||||
|
||||
+4
-16
@@ -1,16 +1,4 @@
|
||||
[package]
|
||||
name = "gpu-native"
|
||||
version = "0.1.0"
|
||||
authors = ["Dzmitry Malyshau <kvark@mozilla.com>"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1.0"
|
||||
gfx-hal = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05" } # required by gfx-memory
|
||||
gfx-backend-empty = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05" }
|
||||
gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05", optional = true }
|
||||
gfx-backend-dx12 = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05", optional = true }
|
||||
gfx-backend-metal = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05", optional = true }
|
||||
gfx-memory = { git = "https://github.com/gfx-rs/gfx-memory", rev = "483d64d" }
|
||||
[workspace]
|
||||
members = [
|
||||
"wgpu-native",
|
||||
]
|
||||
@@ -1,4 +1,4 @@
|
||||
# WebGPU-native
|
||||
# WebGPU
|
||||
[](https://travis-ci.org/gfx-rs/wgpu-native)
|
||||
[](https://gitter.im/gfx-rs/gfx)
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
extern crate gpu_native as gn;
|
||||
|
||||
fn main() {
|
||||
let instance = gn::create_instance();
|
||||
let adapter = gn::instance_get_adapter(instance, gn::AdapterDescriptor {
|
||||
power_preference: gn::PowerPreference::LowPower,
|
||||
});
|
||||
let device = gn::adapter_create_device(adapter, gn::DeviceDescriptor {
|
||||
extensions: gn::Extensions {
|
||||
anisotropic_filtering: false,
|
||||
},
|
||||
});
|
||||
let _vs = gn::device_create_shader_module(device, gn::ShaderModuleDescriptor {
|
||||
code: include_bytes!("./data/hello_triangle.vert.spv"),
|
||||
});
|
||||
let _fs = gn::device_create_shader_module(device, gn::ShaderModuleDescriptor {
|
||||
code: include_bytes!("./data/hello_triangle.frag.spv"),
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
[package]
|
||||
name = "wgpu-native"
|
||||
version = "0.1.0"
|
||||
authors = [
|
||||
"Dzmitry Malyshau <kvark@mozilla.com>",
|
||||
"Joshua Groves <josh@joshgroves.com>",
|
||||
]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1.0"
|
||||
gfx-hal = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05" } # required by gfx-memory
|
||||
gfx-backend-empty = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05" }
|
||||
gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05", optional = true }
|
||||
gfx-backend-dx12 = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05", optional = true }
|
||||
gfx-backend-metal = { git = "https://github.com/gfx-rs/gfx", rev = "a435a05", optional = true }
|
||||
gfx-memory = { git = "https://github.com/gfx-rs/gfx-memory", rev = "483d64d" }
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,19 @@
|
||||
extern crate wgpu_native as wgn;
|
||||
|
||||
fn main() {
|
||||
let instance = wgn::create_instance();
|
||||
let adapter = wgn::instance_get_adapter(instance, wgn::AdapterDescriptor {
|
||||
power_preference: wgn::PowerPreference::LowPower,
|
||||
});
|
||||
let device = wgn::adapter_create_device(adapter, wgn::DeviceDescriptor {
|
||||
extensions: wgn::Extensions {
|
||||
anisotropic_filtering: false,
|
||||
},
|
||||
});
|
||||
let _vs = wgn::device_create_shader_module(device, wgn::ShaderModuleDescriptor {
|
||||
code: include_bytes!("./data/hello_triangle.vert.spv"),
|
||||
});
|
||||
let _fs = wgn::device_create_shader_module(device, wgn::ShaderModuleDescriptor {
|
||||
code: include_bytes!("./data/hello_triangle.frag.spv"),
|
||||
});
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user