Check ShaderModuleDescriptor->nextInChain

Change-Id: Iffa7485b3a2dc43911c86ac614e7d99d737aaf6f
This commit is contained in:
Corentin Wallez 2018-08-22 15:36:58 +02:00 committed by Corentin Wallez
parent 62c774391b
commit 0202250464
1 changed files with 2 additions and 1 deletions

View File

@ -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 {};
}