From 0202250464e3df7cbd2bfa487997b3694b400a3a Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 22 Aug 2018 15:36:58 +0200 Subject: [PATCH] Check ShaderModuleDescriptor->nextInChain Change-Id: Iffa7485b3a2dc43911c86ac614e7d99d737aaf6f --- src/dawn_native/ShaderModule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dawn_native/ShaderModule.cpp b/src/dawn_native/ShaderModule.cpp index db7119cdf4..699aa302a6 100644 --- a/src/dawn_native/ShaderModule.cpp +++ b/src/dawn_native/ShaderModule.cpp @@ -23,7 +23,8 @@ namespace dawn_native { - MaybeError ValidateShaderModuleDescriptor(DeviceBase*, const ShaderModuleDescriptor*) { + MaybeError ValidateShaderModuleDescriptor(DeviceBase*, const ShaderModuleDescriptor* descriptor) { + DAWN_TRY_ASSERT(descriptor->nextInChain == nullptr, "nextInChain must be nullptr"); // TODO(cwallez@chromium.org): Use spirv-val to check the module is well-formed return {}; }