File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -304,21 +304,14 @@ pub struct VertexBufferLayout<'a> {
304
304
/// Describes the vertex process in a render pipeline.
305
305
#[ derive( Clone , Debug ) ]
306
306
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
307
- pub struct VertexState < ' a > {
307
+ pub struct VertexState < ' a , SM = ShaderModuleId > {
308
308
/// The compiled vertex stage and its entry point.
309
- pub stage : ProgrammableStageDescriptor < ' a > ,
309
+ pub stage : ProgrammableStageDescriptor < ' a , SM > ,
310
310
/// The format of any vertex buffers used with this pipeline.
311
311
pub buffers : Cow < ' a , [ VertexBufferLayout < ' a > ] > ,
312
312
}
313
313
314
- /// Describes the vertex process in a render pipeline.
315
- #[ derive( Clone , Debug ) ]
316
- pub struct ResolvedVertexState < ' a > {
317
- /// The compiled vertex stage and its entry point.
318
- pub stage : ResolvedProgrammableStageDescriptor < ' a > ,
319
- /// The format of any vertex buffers used with this pipeline.
320
- pub buffers : Cow < ' a , [ VertexBufferLayout < ' a > ] > ,
321
- }
314
+ pub type ResolvedVertexState < ' a > = VertexState < ' a , Arc < ShaderModule > > ;
322
315
323
316
/// Describes fragment processing in a render pipeline.
324
317
#[ derive( Clone , Debug ) ]
You can’t perform that action at this time.
0 commit comments