@@ -16,7 +16,7 @@ pub struct PipelineSpecialization {
16
16
pub primitive_topology : PrimitiveTopology ,
17
17
pub dynamic_bindings : HashSet < String > ,
18
18
pub strip_index_format : Option < IndexFormat > ,
19
- pub vertex_buffer_descriptor : VertexBufferLayout ,
19
+ pub vertex_buffer_layout : VertexBufferLayout ,
20
20
pub sample_count : u32 ,
21
21
}
22
22
@@ -28,7 +28,7 @@ impl Default for PipelineSpecialization {
28
28
shader_specialization : Default :: default ( ) ,
29
29
primitive_topology : Default :: default ( ) ,
30
30
dynamic_bindings : Default :: default ( ) ,
31
- vertex_buffer_descriptor : Default :: default ( ) ,
31
+ vertex_buffer_layout : Default :: default ( ) ,
32
32
}
33
33
}
34
34
}
@@ -198,12 +198,12 @@ impl PipelineCompiler {
198
198
// create a vertex layout that provides all attributes from either the specialized vertex buffers or a zero buffer
199
199
let mut pipeline_layout = specialized_descriptor. layout . as_mut ( ) . unwrap ( ) ;
200
200
// the vertex buffer descriptor of the mesh
201
- let mesh_vertex_buffer_descriptor = & pipeline_specialization. vertex_buffer_descriptor ;
201
+ let mesh_vertex_buffer_layout = & pipeline_specialization. vertex_buffer_layout ;
202
202
203
203
// the vertex buffer descriptor that will be used for this pipeline
204
204
let mut compiled_vertex_buffer_descriptor = VertexBufferLayout {
205
205
step_mode : InputStepMode :: Vertex ,
206
- stride : mesh_vertex_buffer_descriptor . stride ,
206
+ stride : mesh_vertex_buffer_layout . stride ,
207
207
..Default :: default ( )
208
208
} ;
209
209
@@ -213,7 +213,7 @@ impl PipelineCompiler {
213
213
. get ( 0 )
214
214
. expect ( "Reflected layout has no attributes." ) ;
215
215
216
- if let Some ( target_vertex_attribute) = mesh_vertex_buffer_descriptor
216
+ if let Some ( target_vertex_attribute) = mesh_vertex_buffer_layout
217
217
. attributes
218
218
. iter ( )
219
219
. find ( |x| x. name == shader_vertex_attribute. name )
0 commit comments