Update other graphics apis to match missing vertex shader inputs merging

This commit is contained in:
Wojtek Figat
2025-01-04 10:55:55 +01:00
parent ea5cb5d83a
commit 4f42fb2302
7 changed files with 15 additions and 12 deletions

View File

@@ -67,6 +67,11 @@ void DynamicBuffer::Dispose()
Data.Resize(0);
}
GPUVertexLayout* DynamicVertexBuffer::GetLayout() const
{
return _layout ? _layout : (GetBuffer() ? GetBuffer()->GetVertexLayout() : nullptr);
}
void DynamicVertexBuffer::SetLayout(GPUVertexLayout* layout)
{
_layout = layout;