Skip to content

Commit aa2d6d0

Browse files
sagudevcwfitzgerald
authored andcommitted
Unify ResolvedVertexState into VertexState
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent e14e397 commit aa2d6d0

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
@@ -304,21 +304,14 @@ pub struct VertexBufferLayout<'a> {
304304
/// Describes the vertex process in a render pipeline.
305305
#[derive(Clone, Debug)]
306306
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
307-
pub struct VertexState<'a> {
307+
pub struct VertexState<'a, SM = ShaderModuleId> {
308308
/// The compiled vertex stage and its entry point.
309-
pub stage: ProgrammableStageDescriptor<'a>,
309+
pub stage: ProgrammableStageDescriptor<'a, SM>,
310310
/// The format of any vertex buffers used with this pipeline.
311311
pub buffers: Cow<'a, [VertexBufferLayout<'a>]>,
312312
}
313313

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

323316
/// Describes fragment processing in a render pipeline.
324317
#[derive(Clone, Debug)]

0 commit comments

Comments
 (0)