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)