UBO ViewportInfo in All graphics shader.

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-10-13 19:21:34 +08:00
parent 7788459109
commit 9369ad115b
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);