mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
impl DynShaderModule for all backends
This commit is contained in:
1 parent
b4c6741970
commit
a9cb7fc855
6 files changed
+10
-1
No files matched your search
@@ -608,6 +608,8 @@ pub struct ShaderModule {
|
||||
raw_name: Option<ffi::CString>,
|
||||
}
|
||||
|
||||
impl crate::DynShaderModule for ShaderModule {}
|
||||
|
||||
pub(super) enum CompiledShader {
|
||||
#[allow(unused)]
|
||||
Dxc(Vec<u8>),
|
||||
|
||||
@@ -48,6 +48,7 @@ impl crate::DynComputePipeline for Resource {}
|
||||
impl crate::DynPipelineLayout for Resource {}
|
||||
impl crate::DynQuerySet for Resource {}
|
||||
impl crate::DynRenderPipeline for Resource {}
|
||||
impl crate::DynShaderModule for Resource {}
|
||||
impl crate::DynTexture for Resource {}
|
||||
impl crate::DynTextureView for Resource {}
|
||||
|
||||
|
||||
@@ -542,6 +542,8 @@ pub struct ShaderModule {
|
||||
id: ShaderId,
|
||||
}
|
||||
|
||||
impl crate::DynShaderModule for ShaderModule {}
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
struct VertexFormatDesc {
|
||||
element_count: i32,
|
||||
|
||||
+1
-1
@@ -437,7 +437,7 @@ pub trait Api: Clone + fmt::Debug + Sized {
|
||||
type BindGroupLayout: fmt::Debug + WasmNotSendSync;
|
||||
type BindGroup: DynBindGroup;
|
||||
type PipelineLayout: DynPipelineLayout;
|
||||
type ShaderModule: fmt::Debug + WasmNotSendSync;
|
||||
type ShaderModule: DynShaderModule;
|
||||
type RenderPipeline: DynRenderPipeline;
|
||||
type ComputePipeline: DynComputePipeline;
|
||||
type PipelineCache: fmt::Debug + WasmNotSendSync;
|
||||
|
||||
@@ -714,6 +714,8 @@ pub struct ShaderModule {
|
||||
runtime_checks: bool,
|
||||
}
|
||||
|
||||
impl crate::DynShaderModule for ShaderModule {}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
struct PipelineStageInfo {
|
||||
push_constants: Option<PushConstantsInfo>,
|
||||
|
||||
@@ -821,6 +821,8 @@ pub enum ShaderModule {
|
||||
},
|
||||
}
|
||||
|
||||
impl crate::DynShaderModule for ShaderModule {}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct RenderPipeline {
|
||||
raw: vk::Pipeline,
|
||||
|
||||
Reference in new issue
Block a user