impl DynShaderModule for all backends

This commit is contained in:
Andreas Reich committed 2024-08-14 17:34:11 +02:00
1 parent b4c6741970
commit a9cb7fc855
6 files changed
+10 -1

No files matched your search

+2
View File
@@ -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>),
+1
View File
@@ -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 {}
+2
View File
@@ -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
View File
@@ -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;
+2
View File
@@ -714,6 +714,8 @@ pub struct ShaderModule {
runtime_checks: bool,
}
impl crate::DynShaderModule for ShaderModule {}
#[derive(Debug, Default)]
struct PipelineStageInfo {
push_constants: Option<PushConstantsInfo>,
+2
View File
@@ -821,6 +821,8 @@ pub enum ShaderModule {
},
}
impl crate::DynShaderModule for ShaderModule {}
#[derive(Debug)]
pub struct RenderPipeline {
raw: vk::Pipeline,