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

Passes have too much boilerplate #429

Open
omni-viral opened this Issue Oct 18, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@omni-viral
Member

omni-viral commented Oct 18, 2017

Right now Pass implementation defines shaders and serve as simple pipe World -> Encoder.
The second part (pipe) requires enormous amount of boilerplate to write. Different passes share most of the code. If we add some more sophisticated features like caching buffers problem will grow.
Boilerplate should be reduced to minimum.
I think passes should be written in more declarative manner.

@Rhuagh

This comment has been minimized.

Show comment
Hide comment
@Rhuagh

Rhuagh Oct 18, 2017

Member

Can we look at how gfx-hal handles passes?

Member

Rhuagh commented Oct 18, 2017

Can we look at how gfx-hal handles passes?

@omni-viral

This comment has been minimized.

Show comment
Hide comment
@omni-viral

omni-viral Oct 18, 2017

Member

@Rhuagh It's not really related. Our problem in Pass::apply implementation. Effect talks with gfx to configure pipeline.

Member

omni-viral commented Oct 18, 2017

@Rhuagh It's not really related. Our problem in Pass::apply implementation. Effect talks with gfx to configure pipeline.

@Rhuagh

This comment has been minimized.

Show comment
Hide comment
@Rhuagh

Rhuagh Oct 18, 2017

Member

Ok, I have no idea, just brainstorming :) I like the idea of writing passes declarative.

Member

Rhuagh commented Oct 18, 2017

Ok, I have no idea, just brainstorming :) I like the idea of writing passes declarative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment