renamed type DescriptorSetType to DescriptorSetsType
This commit is contained in:
@@ -67,7 +67,7 @@ private:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp=material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp=material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp)return(false);
|
||||
|
||||
|
@@ -38,7 +38,7 @@ constexpr VkFormat gbuffer_depth_format=PF_D16UN;
|
||||
|
||||
struct alignas(16) PhongPointLight
|
||||
{
|
||||
Vector3f color;
|
||||
Vector4f color;
|
||||
Vector4f position;
|
||||
float radius;
|
||||
};//
|
||||
@@ -198,7 +198,7 @@ private:
|
||||
sampler=db->CreateSampler(&sampler_create_info);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=sp_gbuffer.material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=sp_gbuffer.material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -209,7 +209,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp=sp_gbuffer.material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp=sp_gbuffer.material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp)
|
||||
return(false);
|
||||
@@ -220,7 +220,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=sp_composition.material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=sp_composition.material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -231,7 +231,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp=sp_composition.material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp=sp_composition.material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp)
|
||||
return(false);
|
||||
@@ -379,8 +379,8 @@ public:
|
||||
|
||||
// White
|
||||
lights.position = Vector4f(0.0f, 0.0f, 50.0f, 0.0f);
|
||||
lights.color = Vector3f(105.0f);
|
||||
lights.radius = 150.0f;
|
||||
lights.color = Vector4f(1.0f);
|
||||
lights.radius = 15.0f;
|
||||
|
||||
lights.position.x = sin(hgl_rad2deg(timer/100)) * 100.0f;
|
||||
lights.position.y = cos(hgl_rad2deg(timer/100)) * 100.0f;
|
||||
|
@@ -65,7 +65,7 @@ private:
|
||||
sampler=db->CreateSampler();
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -76,7 +76,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp=material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp=material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp)
|
||||
return(false);
|
||||
|
@@ -167,7 +167,7 @@ private:
|
||||
sampler=db->CreateSampler();
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -178,7 +178,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp_texture)
|
||||
return(false);
|
||||
|
@@ -61,7 +61,7 @@ private:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
|
@@ -45,7 +45,7 @@ private:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
|
@@ -161,7 +161,7 @@ private:
|
||||
if(!mir->material_instance)return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=mir->material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=mir->material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -172,7 +172,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp_texture=mir->material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp_texture=mir->material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp_texture)
|
||||
return(false);
|
||||
|
@@ -130,7 +130,7 @@ private:
|
||||
if(!material_instance)return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp_texture)
|
||||
return(false);
|
||||
@@ -213,7 +213,7 @@ private:
|
||||
ubo_phong=db->CreateUBO(sizeof(PhongMaterial),&phong);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_value=material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp_value=material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp_value)
|
||||
return(false);
|
||||
@@ -225,7 +225,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -236,7 +236,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=axis_mi->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=axis_mi->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
|
@@ -72,7 +72,7 @@ public:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=ro->material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=ro->material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -143,7 +143,7 @@ public:
|
||||
if(!cube.sampler)return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_texture=cube.material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp_texture=cube.material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp_texture)
|
||||
return(false);
|
||||
|
@@ -61,7 +61,7 @@ private:
|
||||
sampler=db->CreateSampler();
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
@@ -72,7 +72,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp_texture)
|
||||
return(false);
|
||||
|
@@ -71,7 +71,7 @@ private:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
|
@@ -70,7 +70,7 @@ private:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
|
@@ -75,7 +75,7 @@ private:
|
||||
sampler=db->CreateSampler();
|
||||
|
||||
{
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetType::Value);
|
||||
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetsType::Value);
|
||||
|
||||
if(!mp_texture)
|
||||
return(false);
|
||||
@@ -103,7 +103,7 @@ private:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
|
@@ -71,7 +71,7 @@ private:
|
||||
return(false);
|
||||
|
||||
{
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetType::Global);
|
||||
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
|
||||
|
||||
if(!mp_global)
|
||||
return(false);
|
||||
|
Reference in New Issue
Block a user