Skip to content

Commit e4217ed

Browse files
committed
fix shader model ver check unaligned with requested
1 parent 4c4e0ea commit e4217ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zd3d12.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ pub const GraphicsContext = struct {
264264
{
265265
var data: d3d12.FEATURE_DATA_SHADER_MODEL = .{ .HighestShaderModel = .@"6_7" };
266266
const hr = device.CheckFeatureSupport(.SHADER_MODEL, &data, @sizeOf(d3d12.FEATURE_DATA_SHADER_MODEL));
267-
if (hr != windows.S_OK or @intFromEnum(data.HighestShaderModel) < @intFromEnum(d3d12.SHADER_MODEL.@"6_6")) {
267+
if (hr != windows.S_OK or @intFromEnum(data.HighestShaderModel) < @intFromEnum(d3d12.SHADER_MODEL.@"6_7")) {
268268
_ = windows.MessageBoxA(
269269
args.window,
270-
"This applications requires graphics card driver that supports Shader Model 6.6. " ++
270+
"This applications requires graphics card driver that supports Shader Model 6.7. " ++
271271
"Please update your graphics driver and try again.",
272272
"Your graphics card driver may be old",
273273
windows.MB_OK | windows.MB_ICONERROR,

0 commit comments

Comments
 (0)