reflect: fix some refs
This commit is contained in:
parent
a495b693a6
commit
528dd1b53c
|
@ -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)?;
|
||||
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue