diff --git a/inc/hgl/graph/vulkan/VK.h b/inc/hgl/graph/vulkan/VK.h index 5cb1d753..b2f08098 100644 --- a/inc/hgl/graph/vulkan/VK.h +++ b/inc/hgl/graph/vulkan/VK.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -14,7 +15,7 @@ VK_NAMESPACE_BEGIN class Instance; -struct PhysicalDevice; +class PhysicalDevice; class Device; class ImageView; class Framebuffer; @@ -62,6 +63,20 @@ enum class ShaderType Compute =VK_SHADER_STAGE_COMPUTE_BIT };// +struct PushConstant256 +{ + Matrix4f projection; + Matrix4f modelview; + Matrix4f mvp; + Matrix3f normal; +};// + +struct PushConstant128 +{ + Matrix4f projection; + Matrix4f modelview; +};// + #ifdef _DEBUG bool CheckStrideBytesByFormat(); ///<检验所有数据类型长度数组是否符合规则 #endif//_DEBUG