Check ShaderModuleDescriptor->nextInChain
Change-Id: Iffa7485b3a2dc43911c86ac614e7d99d737aaf6f
This commit is contained in:
parent
62c774391b
commit
0202250464
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue