-
Notifications
You must be signed in to change notification settings - Fork 140
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
Get the fine
CPU shader running
#386
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,25 @@ | |||
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this shader necessary? Can't we use wgpu::CommandEncoder::copy_buffer_to_texture
or Command::UploadImage
to perform the upload?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That can't be used with just a texture view.
7f2f740
to
0747e52
Compare
@@ -0,0 +1,25 @@ | |||
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since #456 we have standard copyright headers. Please update this shader file to be consistent with the others.
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense | |
// Copyright 2023 the Vello Authors | |
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense |
This hooks up the
fine
CPU shader to the rest of the infrastructure.TransientBindMap
is moved outside ofrun_recording
to allow passing CPU buffers from coarse to fine.TransientImage::CpuOwned
CPU buffer forWriteOnce
images. This is used to hold the result offine
.Command::Writeback
which writesTransientImage::CpuOwned
back into a GPU texture view using the newwriteback.wgsl
shader.This is based on #383.