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 VKRenderPass.cpp
VKShader.cpp VKShader.cpp
VKVertexInput.cpp VKVertexInput.cpp
VKSemaphore.cpp
) )
SET(VULKAN_TEST_HEADER_FILES VK.h SET(VULKAN_TEST_HEADER_FILES VK.h
@ -35,6 +36,7 @@ SET(VULKAN_TEST_HEADER_FILES VK.h
VKRenderPass.h VKRenderPass.h
VKShader.h VKShader.h
VKVertexInput.h VKVertexInput.h
VKSemaphore.h
Window.h) Window.h)
SET(SHADER_FILES shader_compile.bat SET(SHADER_FILES shader_compile.bat

View File

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

View File

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