增加PushConstant256/128定义,还未启用
This commit is contained in:
parent
e50adf12a2
commit
32bc14725d
@ -3,6 +3,7 @@
|
||||
|
||||
#include<hgl/type/List.h>
|
||||
#include<vulkan/vulkan.h>
|
||||
#include<hgl/math/Math.h>
|
||||
#include<iostream>
|
||||
#include<hgl/graph/vulkan/VKFormat.h>
|
||||
#include<hgl/graph/vulkan/VKPrimivate.h>
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user