dx11: get dx11 to compile again
This commit is contained in:
parent
26fa21f0c2
commit
df03fdc5eb
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ pub fn load_pass_semantics(uniform_semantics: &mut FxHashMap<String, UniformSema
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let index = config.id as u32;
|
let index = config.id as usize;
|
||||||
|
|
||||||
// PassOutput
|
// PassOutput
|
||||||
texture_semantics.insert(alias.clone(), SemanticMap {
|
texture_semantics.insert(alias.clone(), SemanticMap {
|
||||||
|
@ -79,7 +79,7 @@ pub fn load(path: impl AsRef<Path>) -> Result<(), Box<dyn Error>>{
|
||||||
for (index, texture) in preset.textures.iter().enumerate() {
|
for (index, texture) in preset.textures.iter().enumerate() {
|
||||||
texture_semantics.insert(texture.name.clone(), SemanticMap {
|
texture_semantics.insert(texture.name.clone(), SemanticMap {
|
||||||
semantics: TextureSemantics::User,
|
semantics: TextureSemantics::User,
|
||||||
index: index as u32
|
index
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ pub fn load(path: impl AsRef<Path>) -> Result<(), Box<dyn Error>>{
|
||||||
let mut compiled = Vec::new();
|
let mut compiled = Vec::new();
|
||||||
|
|
||||||
for (index, (_, _, reflect)) in passes.iter_mut().enumerate() {
|
for (index, (_, _, reflect)) in passes.iter_mut().enumerate() {
|
||||||
let reflection = reflect.reflect(index as u32, &semantics)
|
let reflection = reflect.reflect(index, &semantics)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let hlsl = reflect.compile(None)
|
let hlsl = reflect.compile(None)
|
||||||
|
|
Loading…
Add table
Reference in a new issue