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