From 45c3c876f4a6b4317ee373af3b4577c5a3e87e56 Mon Sep 17 00:00:00 2001 From: chyyran Date: Mon, 12 Aug 2024 02:14:45 -0400 Subject: [PATCH] reflect: remove explicit compile function in favour of TryFrom --- librashader-reflect/src/front/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/librashader-reflect/src/front/mod.rs b/librashader-reflect/src/front/mod.rs index dddd595..56c0884 100644 --- a/librashader-reflect/src/front/mod.rs +++ b/librashader-reflect/src/front/mod.rs @@ -32,12 +32,6 @@ pub struct SpirvCompilation { pub(crate) fragment: Vec, } -impl SpirvCompilation { - /// Tries to compile SPIR-V from the provided shader source. - pub fn compile(source: &ShaderSource) -> Result { - glslang::compile_spirv(source) - } -} impl TryFrom<&ShaderSource> for SpirvCompilation { type Error = ShaderCompileError;