diff --git a/crates/gpui/build.rs b/crates/gpui/build.rs index 87dd6207002def3d828339cb05b2151e36d49481..2b574ebdd83c95328fe9b46b0f1c618e0a8343fa 100644 --- a/crates/gpui/build.rs +++ b/crates/gpui/build.rs @@ -360,7 +360,7 @@ mod windows { &output_file, &const_name, shader_path, - "vs_5_0", + "vs_4_1", ); generate_rust_binding(&const_name, &output_file, &rust_binding_path); @@ -373,7 +373,7 @@ mod windows { &output_file, &const_name, shader_path, - "ps_5_0", + "ps_4_1", ); generate_rust_binding(&const_name, &output_file, &rust_binding_path); } diff --git a/crates/gpui/src/platform/windows/directx_renderer.rs b/crates/gpui/src/platform/windows/directx_renderer.rs index dfaf06707023a58851e24f8afca791ea3de78448..3ec2aa2f151034da5c2e6e0cd7fbdfdc3b8f764c 100644 --- a/crates/gpui/src/platform/windows/directx_renderer.rs +++ b/crates/gpui/src/platform/windows/directx_renderer.rs @@ -1000,8 +1000,11 @@ fn get_device( HMODULE::default(), device_flags, // 4x MSAA is required for Direct3D Feature Level 10.1 or better - // 8x MSAA is required for Direct3D Feature Level 11.0 or better - Some(&[D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_11_1]), + Some(&[ + D3D_FEATURE_LEVEL_11_1, + D3D_FEATURE_LEVEL_11_0, + D3D_FEATURE_LEVEL_10_1, + ]), D3D11_SDK_VERSION, device, None, @@ -1493,8 +1496,8 @@ mod shader_resources { } ); let target = match target { - ShaderTarget::Vertex => "vs_5_0\0", - ShaderTarget::Fragment => "ps_5_0\0", + ShaderTarget::Vertex => "vs_4_1\0", + ShaderTarget::Fragment => "ps_4_1\0", }; let mut compile_blob = None;