Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRendering stuff #3
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ebkalderon
Jul 8, 2017
Owner
@omni-viral Thank you for the comprehensive PR! Looks very exciting. I will review it carefully and report back to you once I'm back in the States.
|
@omni-viral Thank you for the comprehensive PR! Looks very exciting. I will review it carefully and report back to you once I'm back in the States. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
omni-viral
Jul 8, 2017
For now only one model could be rendered as ClearTarget pass get executed for each model
It needed to break passed into three kinds.
PrePass
AllPrePasses will get called first by main threadMainPass
ThenMainPasses will get called for each model in scene in parallel with multiple encoders.
Should differentMainPasses draw calls be allowed to intersect? Probably not.PostPass
AndPostPasses will get called last by main thread
omni-viral
commented
Jul 8, 2017
•
|
For now only one model could be rendered as
|
omni-viral
added some commits
Jul 8, 2017
ebkalderon
requested changes
Jul 21, 2017
Wow, this is a surprisingly comprehensive pull request! I am really impressed with your work here. That said, there are some nitpicks to address, but most are fairly minor.
| + | ||
| + /// Adds a texture to this `Effect` | ||
| + pub fn with_texture(mut self, name: &'a str) -> Self | ||
| + { |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| - meta.const_bufs.push(meta_cbuf); | ||
| - desc.constant_buffers[info.slot as usize] = Some(d); | ||
| + for info in info.constant_buffers.iter() { | ||
| + // println!("Link constant {:?}/{:?}", info.name, cbuf); |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| + for info in info.constant_buffers.iter() { | ||
| + // println!("Link constant {:?}/{:?}", info.name, cbuf); | ||
| + if let Some(res) = meta_cbuf.link_constant_buffer(info, cbuf) { | ||
| + // println!("Linked {:?}", res); |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| - res.map_err(|e| InitError::GlobalConstant(info.name.as_str(), Some(e)))?; | ||
| - meta.globals.push(meta_global); | ||
| + for info in info.globals.iter() { | ||
| + // println!("Link global {:?}/{:?}", info.name, global); |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| + for info in info.globals.iter() { | ||
| + // println!("Link global {:?}/{:?}", info.name, global); | ||
| + if let Some(res) = meta_global.link_global_constant(info, global) { | ||
| + // println!("Linked {:?}", res); |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| + | ||
| +void main() { | ||
| + color = texture(albedo, vertex.tex_coord); | ||
| +} |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| + vec3 color = ambient + lighted + emission; | ||
| + | ||
| + out_color = vec4(color, 1.0); | ||
| +} |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| + vertex.tangent = mat3(model) * tangent; | ||
| + vertex.tex_coord = tex_coord; | ||
| + gl_Position = proj * view * vertex.position; | ||
| +} |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| @@ -0,0 +1,132 @@ | ||
| + |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
| @@ -0,0 +1,27 @@ | ||
| + |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
omni-viral
added some commits
Jul 21, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
omni-viral
commented
Jul 22, 2017
|
I think I'm done with refactoring and changes |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ebkalderon
Jul 24, 2017
Owner
@omni-viral Looks pretty good to me. Thank you for addressing pretty much all my concerns, and I appreciate all your hard work!
|
@omni-viral Looks pretty good to me. Thank you for addressing pretty much all my concerns, and I appreciate all your hard work! |
omni-viral commentedJul 8, 2017
VertexFormattrait. Adding an ability to identify kind of data an attribute belongsEffectBuildereffect::pso::LinkPassvariant with function that receives modelsOld mechanism draw only first
encoders.len()modelsDrawFlatpassby actually passing texture data on texture object creation
DrawFlatpass