diff --git a/lvk/vulkan/VulkanClasses.cpp b/lvk/vulkan/VulkanClasses.cpp index 1d718221c6..3d34e8c3e0 100644 --- a/lvk/vulkan/VulkanClasses.cpp +++ b/lvk/vulkan/VulkanClasses.cpp @@ -3933,6 +3933,10 @@ lvk::Holder lvk::VulkanContext::createRenderPipeline( } if (desc.smMesh.valid()) { + if (!LVK_VERIFY(!desc.vertexInput.getNumAttributes() && !desc.vertexInput.getNumInputBindings())) { + Result::setResult(outResult, Result::Code::ArgumentOutOfRange, "Cannot have vertexInput with mesh shaders"); + return {}; + } if (!LVK_VERIFY(!desc.smVert.valid())) { Result::setResult(outResult, Result::Code::ArgumentOutOfRange, "Cannot have both vertex and mesh shaders"); return {};