debugLayoutForAttributes method
The pipeline layout for a draw whose vertex shader reads schema, built
from the custom streams this geometry has now. Null means the shader's
reflected layout.
Implementation
@visibleForTesting
VertexLayoutDescriptor? debugLayoutForAttributes(
VertexAttributeSchema schema,
) {
if (!_resolvesCustomAttributes) return instancedVertexLayout;
final slots = resolveVertexAttributeSlots(schema, {
for (final entry in _customAttributes.entries)
entry.key: entry.value.format,
});
return _describedLayoutWith([for (final slot in slots) slot.buffer]);
}