Skip to content

Commit 40f5763

Browse files
sagudevcwfitzgerald
authored andcommitted
Unify ResolvedFragmentState into FragmentState
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent aa2d6d0 commit 40f5763

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

wgpu-core/src/pipeline.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,21 +316,14 @@ pub type ResolvedVertexState<'a> = VertexState<'a, Arc<ShaderModule>>;
316316
/// Describes fragment processing in a render pipeline.
317317
#[derive(Clone, Debug)]
318318
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
319-
pub struct FragmentState<'a> {
319+
pub struct FragmentState<'a, SM = ShaderModuleId> {
320320
/// The compiled fragment stage and its entry point.
321-
pub stage: ProgrammableStageDescriptor<'a>,
321+
pub stage: ProgrammableStageDescriptor<'a, SM>,
322322
/// The effect of draw calls on the color aspect of the output target.
323323
pub targets: Cow<'a, [Option<wgt::ColorTargetState>]>,
324324
}
325325

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>>;
334327

335328
/// Describes a render (graphics) pipeline.
336329
#[derive(Clone, Debug)]

0 commit comments

Comments
 (0)