From 6e3218e4f94a437b62ed67acca2310be247fce3c Mon Sep 17 00:00:00 2001 From: ComfyFluffy <24245520+ComfyFluffy@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:13:44 +0800 Subject: [PATCH] Update validate_runtime.rs --- vulkano/src/pipeline/shader/validate_runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulkano/src/pipeline/shader/validate_runtime.rs b/vulkano/src/pipeline/shader/validate_runtime.rs index 30f80c9d3d..2774c2cdad 100644 --- a/vulkano/src/pipeline/shader/validate_runtime.rs +++ b/vulkano/src/pipeline/shader/validate_runtime.rs @@ -2577,7 +2577,7 @@ impl RuntimeValidator<'_> { if let Some(scope) = scope { match scope { Scope::Subgroup => { - if self.device.enabled_features().shader_subgroup_clock { + if !self.device.enabled_features().shader_subgroup_clock { return Err(Box::new(ValidationError { problem: "an `OpReadClockKHR` instruction is performed \ with a scope of `Scope::Subgroup`" @@ -2591,7 +2591,7 @@ impl RuntimeValidator<'_> { } } Scope::Device => { - if self.device.enabled_features().shader_device_clock { + if !self.device.enabled_features().shader_device_clock { return Err(Box::new(ValidationError { problem: "an `OpReadClockKHR` instruction is performed \ with a scope of `Scope::Device`"