From df03fdc5eb2881a3520a6869b840da638223238c Mon Sep 17 00:00:00 2001 From: chyyran Date: Mon, 21 Nov 2022 02:39:39 -0500 Subject: [PATCH] dx11: get dx11 to compile again --- librashader-runtime-dx11/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/librashader-runtime-dx11/src/lib.rs b/librashader-runtime-dx11/src/lib.rs index af28c38..60010fe 100644 --- a/librashader-runtime-dx11/src/lib.rs +++ b/librashader-runtime-dx11/src/lib.rs @@ -23,7 +23,7 @@ pub fn load_pass_semantics(uniform_semantics: &mut FxHashMap) -> Result<(), Box>{ for (index, texture) in preset.textures.iter().enumerate() { texture_semantics.insert(texture.name.clone(), SemanticMap { semantics: TextureSemantics::User, - index: index as u32 + index }); } @@ -92,7 +92,7 @@ pub fn load(path: impl AsRef) -> Result<(), Box>{ let mut compiled = Vec::new(); for (index, (_, _, reflect)) in passes.iter_mut().enumerate() { - let reflection = reflect.reflect(index as u32, &semantics) + let reflection = reflect.reflect(index, &semantics) .unwrap(); let hlsl = reflect.compile(None)