reflect: fix some refs

This commit is contained in:
chyyran 2024-02-11 10:21:31 -05:00 committed by Ronny Chan
parent a495b693a6
commit 528dd1b53c
3 changed files with 7 additions and 3 deletions

View file

@ -6,7 +6,8 @@ use librashader::reflect::targets::SPIRV;
use librashader::reflect::{CompileShader, ReflectShader, ShaderCompilerOutput, ShaderReflection};
use librashader::{FilterMode, WrapMode};
use librashader::reflect::cross::GlslangCompilation;
use librashader::reflect::SpirvCompilation;
use librashader::reflect::f
use librashader::reflect::helper::image::{Image, UVDirection, RGBA8};
pub(crate) struct LookupTexture {
@ -38,8 +39,9 @@ impl FilterReflection {
let (passes, textures) = (preset.shaders, preset.textures);
let (passes, semantics) = librashader::reflect::helper::compile_preset_passes::<
Glslang,
SPIRV,
GlslangCompilation,
SpirvCompilation,
error::LibrashaderError,
>(passes, &textures)?;

View file

@ -14,7 +14,9 @@ pub trait ShaderInputCompiler<O: ShaderReflectObject>: Sized {
fn compile(source: &ShaderSource) -> Result<O, ShaderCompileError>;
}
/// Marker trait for types that are the reflectable outputs of a shader compilation.
impl ShaderReflectObject for SpirvCompilation {}
/// A reflectable shader compilation via glslang.
#[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))]
#[derive(Debug, Clone)]

View file

@ -150,7 +150,7 @@ pub mod reflect {
FromCompilation, ShaderCompilerOutput,
};
pub use librashader_reflect::front::SpirvCompilation;
pub use librashader_reflect::front::{SpirvCompilation, Glslang, ShaderReflectObject };
/// Reflection via SPIRV-Cross.
#[cfg(feature = "reflect-cross")]