Metal: Remove warning about dummy attribute

This dummy attribute is never in an interface
and is there only to workaround the strict
requirement of a VBO in a GPUBatch.
This commit is contained in:
Clément Foucault
2023-12-31 18:58:04 +13:00
parent 854d7afa1e
commit fa5c9ae0b2

View File

@@ -157,11 +157,14 @@ int MTLBatch::prepare_vertex_binding(MTLVertBuf *verts,
/* Vertex/instance buffers provided have attribute data for attributes which are not needed
* by this particular shader. This shader only needs binding information for the attributes
* has in the shader interface. */
MTL_LOG_WARNING(
"MTLBatch: Could not find attribute with name '%s' (defined in active vertex format) "
"in the shader interface for shader '%s'",
name,
interface->get_name());
if (StringRefNull(name) != "dummy") {
MTL_LOG_WARNING(
"MTLBatch: Could not find attribute with name '%s' (defined in active vertex "
"format) "
"in the shader interface for shader '%s'",
name,
interface->get_name());
}
continue;
}