From 9e79dae3c945197084a9aac9e92d3e3bf52129c3 Mon Sep 17 00:00:00 2001 From: Nanako <469449812@qq.com> Date: Fri, 2 Feb 2024 01:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E7=9A=84sh?= =?UTF-8?q?ader=5Fmodel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/rhi/windows/dx11/shader/shader_dx11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),