defaultVertexLayout property
The layout this geometry kind uses when the caller supplies none. Subclasses that describe their vertices override this.
Implementation
@override
VertexLayoutDescriptor? get defaultVertexLayout {
// Without custom attributes the pipeline layout comes from the shader's
// own reflection, which is how skinned meshes have always drawn. Custom
// attribute streams have to be described, though, since reflection cannot
// know which slot the caller bound them to.
if (!hasCustomAttributes) return null;
return VertexLayoutDescriptor(
buffers: [kSkinnedVertexBuffer, ...customAttributeBuffers],
);
}