UBO ViewportInfo in All graphics shader.
This commit is contained in:
parent
7788459109
commit
9369ad115b
@ -35,7 +35,7 @@ bool Std2DMaterial::CustomVertexShader(ShaderCreateInfoVertex *vsc)
|
||||
|
||||
if(cfg->coordinate_system==CoordinateSystem2D::Ortho)
|
||||
{
|
||||
mci->AddUBO(VK_SHADER_STAGE_VERTEX_BIT,
|
||||
mci->AddUBO(VK_SHADER_STAGE_ALL_GRAPHICS,
|
||||
DescriptorSetType::Global,
|
||||
SBS_ViewportInfo);
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ bool Std3DMaterial::CustomVertexShader(ShaderCreateInfoVertex *vsc)
|
||||
// vsc->AddFunction(func::GetNormal);
|
||||
//}
|
||||
|
||||
mci->AddUBO(VK_SHADER_STAGE_VERTEX_BIT,
|
||||
mci->AddUBO(VK_SHADER_STAGE_ALL_GRAPHICS,
|
||||
DescriptorSetType::Global,
|
||||
SBS_ViewportInfo);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user