-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1476: [ll] Frames and encoders for render r=kvark a=Bastacyclop Working on #1466. This is an untested draft, I hope there are not too many mistakes. The interesting stuff is in [core/pool](https://github.com/gfx-rs/gfx/compare/ll...Bastacyclop:ll?expand=1#diff-a8c8cf11be50bbdb6bab730b503bfe00), [render/device](https://github.com/gfx-rs/gfx/compare/ll...Bastacyclop:ll?expand=1#diff-a505eeca0919c44fc9d868f9a1cbdfe3) and more importantly [render/encoder](https://github.com/gfx-rs/gfx/compare/ll...Bastacyclop:ll?expand=1#diff-e76accb5ddad96024c8ebca0ad05ee68) and [render/lib](https://github.com/gfx-rs/gfx/compare/ll...Bastacyclop:ll?expand=1#diff-be2c920c08146924af4d1983d6894d63). My next step will be to test it in a copy of the quad example. You can acquire `encoder::Scope`s from which you can get actual `Encoder`s. An `encoder::Scope` is basically a more convenient command buffer pool. So there are two reasons to use multiple scopes: to use multiple encoders at the same time (multithreading mostly) and to release all the acquired encoders independently (different encoding scopes). Maybe scope is not a good name and I should name it simply pool instead.
- Loading branch information
Showing
25 changed files
with
1,471 additions
and
336 deletions.
There are no files selected for viewing
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 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 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,53 @@ | ||
[package] | ||
name = "quad_render" | ||
version = "0.1.0" | ||
publish = false | ||
workspace = "../../.." | ||
|
||
[features] | ||
default = ["vulkan"] | ||
#metal = ["gfx_device_metal", "gfx_window_metal"] | ||
gl = ["glutin", "gfx_backend_gl"] | ||
#dx11 = ["gfx_device_dx11", "gfx_window_dxgi"] | ||
#dx12 = ["gfx_device_dx12", "gfx_window_dxgi"] | ||
vulkan = ["gfx_backend_vulkan"] | ||
unstable = [] | ||
|
||
[[bin]] | ||
name = "quad_render" | ||
path = "main.rs" | ||
|
||
[dependencies] | ||
env_logger = "0.4" | ||
glutin = { version = "0.9", optional = true } | ||
image = "0.15" | ||
log = "0.3" | ||
winit = "0.7" | ||
gfx_core = { path = "../../../src/core", version = "0.10" } | ||
gfx = { path = "../../../src/render", version = "0.17" } | ||
|
||
[dependencies.gfx_backend_gl] | ||
path = "../../../src/backend/gl" | ||
version = "0.1" | ||
optional = true | ||
|
||
[dependencies.gfx_backend_vulkan] | ||
path = "../../../src/backend/vulkan" | ||
version = "0.1" | ||
optional = true | ||
|
||
#[dependencies.gfx_device_metal] | ||
#path = "../../../src/backend/metal" | ||
#version = "0.3" | ||
#optional = true | ||
|
||
#[dependencies.gfx_window_metal] | ||
#path = "../../../src/window/metal" | ||
#version = "0.4" | ||
#optional = true | ||
|
||
#[target.'cfg(windows)'.dependencies] | ||
#gfx_device_dx11 = { path = "../../../src/backend/dx11", version = "0.6", optional = true } | ||
#gfx_device_dx12 = { path = "../../../src/backend/dx12", version = "0.1", optional = true } | ||
#gfx_window_dxgi = { path = "../../../src/window/dxgi", version = "0.9", optional = true } | ||
|
Oops, something went wrong.