增加PushConstant256/128定义,还未启用
This commit is contained in:
parent
e50adf12a2
commit
32bc14725d
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include<hgl/type/List.h>
|
#include<hgl/type/List.h>
|
||||||
#include<vulkan/vulkan.h>
|
#include<vulkan/vulkan.h>
|
||||||
|
#include<hgl/math/Math.h>
|
||||||
#include<iostream>
|
#include<iostream>
|
||||||
#include<hgl/graph/vulkan/VKFormat.h>
|
#include<hgl/graph/vulkan/VKFormat.h>
|
||||||
#include<hgl/graph/vulkan/VKPrimivate.h>
|
#include<hgl/graph/vulkan/VKPrimivate.h>
|
||||||
@ -14,7 +15,7 @@
|
|||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
|
|
||||||
class Instance;
|
class Instance;
|
||||||
struct PhysicalDevice;
|
class PhysicalDevice;
|
||||||
class Device;
|
class Device;
|
||||||
class ImageView;
|
class ImageView;
|
||||||
class Framebuffer;
|
class Framebuffer;
|
||||||
@ -62,6 +63,20 @@ enum class ShaderType
|
|||||||
Compute =VK_SHADER_STAGE_COMPUTE_BIT
|
Compute =VK_SHADER_STAGE_COMPUTE_BIT
|
||||||
};//
|
};//
|
||||||
|
|
||||||
|
struct PushConstant256
|
||||||
|
{
|
||||||
|
Matrix4f projection;
|
||||||
|
Matrix4f modelview;
|
||||||
|
Matrix4f mvp;
|
||||||
|
Matrix3f normal;
|
||||||
|
};//
|
||||||
|
|
||||||
|
struct PushConstant128
|
||||||
|
{
|
||||||
|
Matrix4f projection;
|
||||||
|
Matrix4f modelview;
|
||||||
|
};//
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
bool CheckStrideBytesByFormat(); ///<检验所有数据类型长度数组是否符合规则
|
bool CheckStrideBytesByFormat(); ///<检验所有数据类型长度数组是否符合规则
|
||||||
#endif//_DEBUG
|
#endif//_DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user