feat: added multiple render passes to the Renderer2D but only one render pass right now works so quite work in progress

This commit is contained in:
lisk77 2025-03-22 23:25:05 +01:00
parent 4d4c6aad90
commit 391673ac09
2 changed files with 311 additions and 60 deletions

View file

@ -8,6 +8,7 @@ pub enum RenderPassType {
User
}
pub struct RenderPassInfo {
pass_name: String,
pass_type: RenderPassType,
@ -26,7 +27,7 @@ impl RenderPassInfo {
pass_name: String,
texture_group_layout: &BindGroupLayout,
texture: &Texture,
shader: ShaderModule,
shader: &ShaderModule,
vertex_data: Vec<Vertex>,
index_data: Vec<u16>,
pipeline_layout: &PipelineLayout,