From d6ac2c665d0cc239dcfaebe790d37372f3d82a2c Mon Sep 17 00:00:00 2001 From: chyyran Date: Sun, 5 Feb 2023 01:14:01 -0500 Subject: [PATCH] reflect: fix expected runtime config options --- librashader-reflect/src/back/dxil.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/librashader-reflect/src/back/dxil.rs b/librashader-reflect/src/back/dxil.rs index a0b6a28..f8ebddb 100644 --- a/librashader-reflect/src/back/dxil.rs +++ b/librashader-reflect/src/back/dxil.rs @@ -1,6 +1,6 @@ pub use spirv_to_dxil::DxilObject; pub use spirv_to_dxil::ShaderModel; -use spirv_to_dxil::{ShaderStage, ValidatorVersion}; +use spirv_to_dxil::{ConstantBufferConfig, RuntimeConfig, ShaderStage, ValidatorVersion}; use crate::back::{CompilerBackend, CompileShader, FromCompilation, ShaderCompilerOutput}; use crate::back::spirv::WriteSpirV; @@ -68,7 +68,7 @@ impl CompileShader for WriteSpirV { ShaderStage::Vertex, sm, ValidatorVersion::None, - Default::default()) + config.clone()) .map_err(|s| ShaderCompileError::SpirvToDxilCompileError(s))?; @@ -76,9 +76,9 @@ impl CompileShader for WriteSpirV { spirv_to_dxil::spirv_to_dxil(&self.fragment, None, "main", ShaderStage::Fragment, - ShaderModel::ShaderModel6_0, + sm, ValidatorVersion::None, - Default::default()) + config) .map_err(|s| ShaderCompileError::SpirvToDxilCompileError(s))?; Ok(ShaderCompilerOutput {