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

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 3aa59f92ce
commit 2bb8af3765
2 files changed
+11 -5

No files matched your search

+8 -1
View File
@@ -77,6 +77,13 @@ pub type RenderPipelineDescriptor<'a> = pipeline::RenderPipelineDescriptor<
id::PipelineCacheId,
>;
pub type GeneralRenderPipelineDescriptor<'a> = pipeline::GeneralRenderPipelineDescriptor<
'a,
id::PipelineLayoutId,
id::ShaderModuleId,
id::PipelineCacheId,
>;
impl Global {
pub fn adapter_is_surface_supported(
&self,
@@ -898,7 +905,7 @@ impl Global {
fn device_create_general_render_pipeline(
&self,
desc: pipeline::GeneralRenderPipelineDescriptor,
desc: GeneralRenderPipelineDescriptor,
device: Arc<crate::device::resource::Device>,
fid: crate::registry::FutureId<Arc<pipeline::RenderPipeline>>,
) -> (
+3 -4
View File
@@ -24,7 +24,6 @@ use crate::{
AttachmentData, Device, DeviceError, MissingDownlevelFlags, MissingFeatures,
RenderPassContext,
},
id::{PipelineCacheId, PipelineLayoutId, ShaderModuleId},
pipeline_cache,
resource::{InvalidResourceError, Labeled, ResourceState, TrackingData},
resource_log,
@@ -723,9 +722,9 @@ pub struct MeshPipelineDescriptor<
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct GeneralRenderPipelineDescriptor<
'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.