You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate shader vertex attributes are available in vertex buffers (#7431)
* Validate shader vertex attributes are available in vertex buffers
* only in debug build
---------
Co-authored-by: Martin Valigursky <[email protected]>
// this is an object, we need to iterator over keys and make sure the value is in the temp set
1036
+
constattributes=shader.definition.attributes;
1037
+
for(constnameinattributes){
1038
+
constvalue=attributes[name];
1039
+
if(!_tempSet.has(value)){
1040
+
Debug.errorOnce(`Attribute [${name}: ${value}] required by the shader is not present in the currently assigned vertex buffers, while rendering [${DebugGraphics.toString()}]`,{
0 commit comments