From 98b428b1fdffc61cf21832384d4a27b00d94e3ba Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 28 Jul 2020 19:09:38 +0800 Subject: [PATCH] use VAF_ formats in CreateVAB --- CMSceneGraph | 2 +- example/Vulkan/DrawTile.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMSceneGraph b/CMSceneGraph index b3cb88c8..2f3f7bf6 160000 --- a/CMSceneGraph +++ b/CMSceneGraph @@ -1 +1 @@ -Subproject commit b3cb88c8888eaf6c6c88e73d1f5a85a1384a5c95 +Subproject commit 2f3f7bf6b3d6a9ea540ba01d5b4a3de9cba83442 diff --git a/example/Vulkan/DrawTile.cpp b/example/Vulkan/DrawTile.cpp index 2f40e58d..b611afee 100644 --- a/example/Vulkan/DrawTile.cpp +++ b/example/Vulkan/DrawTile.cpp @@ -180,8 +180,8 @@ private: render_obj=material->CreateRenderable(tile_count); - vertex_buffer =db->CreateVAB(FMT_RGBA32F,tile_count,vertex_data); - tex_coord_buffer=db->CreateVAB(FMT_RGBA32F,tile_count,tex_coord_data); + vertex_buffer =db->CreateVAB(VAF_VEC4,tile_count,vertex_data); + tex_coord_buffer=db->CreateVAB(VAF_VEC4,tile_count,tex_coord_data); render_obj->Set("Vertex",vertex_buffer); render_obj->Set("TexCoord",tex_coord_buffer);