mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Feat] (MG_Backend/DirectVulkan): vertex input state factory
This commit is contained in:
@@ -112,6 +112,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
||||
payload.count = count;
|
||||
|
||||
const auto vao = MG_State::pGLContext->GetBoundVertexArray();
|
||||
payload.vertexArray = vao ? vao.get() : nullptr;
|
||||
if (vao) {
|
||||
const auto& attr0 = vao->GetAttribute(0);
|
||||
if (attr0.Enabled && attr0.Buffer) {
|
||||
|
||||
Reference in New Issue
Block a user