From 32bc14725d07cc44f5450bbe361d2043b00dd580 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 28 May 2019 21:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0PushConstant256/128=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=EF=BC=8C=E8=BF=98=E6=9C=AA=E5=90=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/graph/vulkan/VK.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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