mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 09:21:04 +01:00
[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:
1 parent
da87b4b39f
commit
d24127ba91
2 files changed
+11
-4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user