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 @@ -316,21 +316,14 @@ pub type ResolvedVertexState<'a> = VertexState<'a, Arc<ShaderModule>>;
316
316
/// Describes fragment processing in a render pipeline.
317
317
#[ derive( Clone , Debug ) ]
318
318
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
319
- pub struct FragmentState < ' a > {
319
+ pub struct FragmentState < ' a , SM = ShaderModuleId > {
320
320
/// The compiled fragment stage and its entry point.
321
- pub stage : ProgrammableStageDescriptor < ' a > ,
321
+ pub stage : ProgrammableStageDescriptor < ' a , SM > ,
322
322
/// The effect of draw calls on the color aspect of the output target.
323
323
pub targets : Cow < ' a , [ Option < wgt:: ColorTargetState > ] > ,
324
324
}
325
325
326
- /// Describes fragment processing in a render pipeline.
327
- #[ derive( Clone , Debug ) ]
328
- pub struct ResolvedFragmentState < ' a > {
329
- /// The compiled fragment stage and its entry point.
330
- pub stage : ResolvedProgrammableStageDescriptor < ' a > ,
331
- /// The effect of draw calls on the color aspect of the output target.
332
- pub targets : Cow < ' a , [ Option < wgt:: ColorTargetState > ] > ,
333
- }
326
+ pub type ResolvedFragmentState < ' a > = FragmentState < ' a , Arc < ShaderModule > > ;
334
327
335
328
/// Describes a render (graphics) pipeline.
336
329
#[ derive( Clone , Debug ) ]
You can’t perform that action at this time.
0 commit comments