diff --git a/core/rhi/windows/dx11/shader/shader_dx11.cpp b/core/rhi/windows/dx11/shader/shader_dx11.cpp index 498e007..91d8db4 100644 --- a/core/rhi/windows/dx11/shader/shader_dx11.cpp +++ b/core/rhi/windows/dx11/shader/shader_dx11.cpp @@ -36,7 +36,7 @@ bool shader_dx11::init() shader_flags |= D3DCOMPILE_OPTIMIZATION_LEVEL3; #endif - const auto target = "cs_5_0"; + const auto target = get_shader_model(); auto hr = compile_func( code_blob->getBufferPointer(),