used newly Bind series function.

This commit is contained in:
2022-03-09 20:33:26 +08:00
parent edbecbb86d
commit 15e80cbc5a
14 changed files with 70 additions and 178 deletions

View File

@@ -166,27 +166,8 @@ private:
sampler=db->CreateSampler();
{
MaterialParameters *mp_global=material_instance->GetMP(DescriptorSetsType::Global);
if(!mp_global)
return(false);
if(!mp_global->BindUBO("g_camera",ubo_camera_info))return(false);
mp_global->Update();
}
{
MaterialParameters *mp_texture=material_instance->GetMP(DescriptorSetsType::Value);
if(!mp_texture)
return(false);
if(!mp_texture->BindSampler("tex",tile_data->GetTexture(),sampler))return(false);
mp_texture->Update();
}
if(!material_instance->BindUBO(DescriptorSetsType::Global,"g_camera",ubo_camera_info))return(false);
if(!material_instance->BindSampler(DescriptorSetsType::Value,"tex",tile_data->GetTexture(),sampler))return(false);
return(true);
}