VKSemaphore空定义

This commit is contained in:
hyzboy 2019-04-18 09:03:30 +08:00
parent d31aa3460a
commit 772c147c71
3 changed files with 5 additions and 13 deletions

View File

@ -20,6 +20,7 @@ SET(VULKAN_TEST_SOURCE_FILES main.cpp
VKRenderPass.cpp
VKShader.cpp
VKVertexInput.cpp
VKSemaphore.cpp
)
SET(VULKAN_TEST_HEADER_FILES VK.h
@ -35,6 +36,7 @@ SET(VULKAN_TEST_HEADER_FILES VK.h
VKRenderPass.h
VKShader.h
VKVertexInput.h
VKSemaphore.h
Window.h)
SET(SHADER_FILES shader_compile.bat

View File

@ -41,9 +41,9 @@ public:
class VertexBuffer:public Buffer
{
VkFormat format; ///<数据格式
uint32_t stride; ///<单个数据字节数
uint32_t count; ///<数据数量
VkFormat format; ///<数据格式
uint32_t stride; ///<单个数据字节数
uint32_t count; ///<数据数量
private:

View File

@ -1,16 +1,6 @@
#include"VKVertexInput.h"
VK_NAMESPACE_BEGIN
//struct VertexInputBuffer
//{
// //按API可以一个binding绑多个attrib但我们仅支持1v1
//
// VkVertexInputBindingDescription binding;
// VkVertexInputAttributeDescription attrib;
// Buffer *buf;
//};
bool VertexInput::Add(VertexBuffer *buf,bool instance)
{
if(!buf)