forked from gfx-rs/wgpu-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9: Restructure the repo to host multiple crates r=grovesNL a=kvark As a follow-up, I'll rename this repository to just `wgpu`. Co-authored-by: Dzmitry Malyshau <kvark@mozilla.com>
- Loading branch information
Showing
21 changed files
with
56 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.