[core] Do not use IDs as default types in MeshPipelineDescriptor

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev authored and Teodor Tanasoaia committed 2026-08-11 14:04:27 +02:00
1 parent da87b4b39f
commit d24127ba91
2 files changed
+11 -4

No files matched your search

+8 -1
View File
@@ -63,6 +63,13 @@ pub type ComputePipelineDescriptor<'a> = pipeline::ComputePipelineDescriptor<
pub type VertexState<'a> = pipeline::VertexState<'a, id::ShaderModuleId>;
pub type MeshPipelineDescriptor<'a> = pipeline::MeshPipelineDescriptor<
'a,
id::PipelineLayoutId,
id::ShaderModuleId,
id::PipelineCacheId,
>;
impl Global {
pub fn adapter_is_surface_supported(
&self,
@@ -868,7 +875,7 @@ impl Global {
pub fn device_create_mesh_pipeline(
&self,
device_id: DeviceId,
desc: &pipeline::MeshPipelineDescriptor,
desc: &MeshPipelineDescriptor,
id_in: Option<id::RenderPipelineId>,
) -> (
id::RenderPipelineId,
+3 -3
View File
@@ -682,9 +682,9 @@ pub struct RenderPipelineDescriptor<
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct MeshPipelineDescriptor<
'a,
PLL = PipelineLayoutId,
SM = ShaderModuleId,
PLC = PipelineCacheId,
PLL = Arc<PipelineLayout>,
SM = Arc<ShaderModule>,
PLC = Arc<PipelineCache>,
> {
pub label: Label<'a>,
/// The layout of bind groups for this pipeline.