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

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

No files matched your search

+8 -1
View File
@@ -70,6 +70,13 @@ pub type MeshPipelineDescriptor<'a> = pipeline::MeshPipelineDescriptor<
id::PipelineCacheId,
>;
pub type RenderPipelineDescriptor<'a> = pipeline::RenderPipelineDescriptor<
'a,
id::PipelineLayoutId,
id::ShaderModuleId,
id::PipelineCacheId,
>;
impl Global {
pub fn adapter_is_surface_supported(
&self,
@@ -857,7 +864,7 @@ impl Global {
pub fn device_create_render_pipeline(
&self,
device_id: DeviceId,
desc: &pipeline::RenderPipelineDescriptor,
desc: &RenderPipelineDescriptor,
id_in: Option<id::RenderPipelineId>,
) -> (
id::RenderPipelineId,
+3 -3
View File
@@ -651,9 +651,9 @@ pub enum RenderPipelineVertexProcessor<'a, SM = Arc<ShaderModule>> {
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct RenderPipelineDescriptor<
'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.