Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadow example #71

Merged
merged 8 commits into from Feb 23, 2019

Conversation

@kvark
Copy link
Member

commented Feb 22, 2019

I believe all the nuts and bolts are in place, just figuring out some details of making the shadow match between the rendering and sampling (hence the WIP).

Most importantly, this PR includes crucial fixes and improvements of our resource tracking, plus a few fixes in the bind group and texture creation code.

@kvark kvark requested a review from grovesNL Feb 22, 2019

@kvark

This comment has been minimized.

Copy link
Member Author

commented Feb 22, 2019

Nailed the issue: our Vulkan-targeting GLSL should be outputting the depth in range 0 to 1, unlike what cgmath-rs projections are currently producing. See rustgd/cgmath#449

wgpu-shadow

@kvark kvark marked this pull request as ready for review Feb 22, 2019

@kvark kvark force-pushed the kvark:shadow branch from 7309d3d to cfe3da1 Feb 22, 2019

@grovesNL
Copy link
Member

left a comment

Looks good to me, thanks!
bors r+

#[no_mangle]
pub extern "C" fn wgpu_device_destroy(device_id: BufferId) {
HUB.devices.unregister(device_id);
}

This comment has been minimized.

Copy link
@grovesNL

grovesNL Feb 23, 2019

Member

nit: newline

@@ -123,5 +123,6 @@ pub fn run<E: Example>(title: &str) {

let frame = swap_chain.get_next_texture();
example.render(&frame, &mut device);
running &= !cfg!(feature = "metal-auto-capture");

This comment has been minimized.

Copy link
@grovesNL

grovesNL Feb 23, 2019

Member

I assume the intent is to auto-capture one frame only?

bors bot added a commit that referenced this pull request Feb 23, 2019

Merge #71
71: Shadow example r=grovesNL a=kvark

~~I believe all the nuts and bolts are in place, just figuring out some details of making the shadow match between the rendering and sampling (hence the WIP).~~

Most importantly, this PR includes crucial fixes and improvements of our resource tracking, plus a few fixes in the bind group and texture creation code.

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
@bors

This comment has been minimized.

Copy link
Contributor

commented Feb 23, 2019

@bors bors bot merged commit 616a3dd into gfx-rs:master Feb 23, 2019

2 checks passed

bors Build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@kvark

This comment has been minimized.

Copy link
Member Author

commented Feb 23, 2019

@kvark kvark deleted the kvark:shadow branch Feb 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.