improved descriptorSets log output.
This commit is contained in:
parent
2a63dbefe0
commit
9c487ae592
@ -155,7 +155,7 @@ namespace
|
||||
if(msgFlags&VK_DEBUG_REPORT_INFORMATION_BIT_EXT) std::cerr<<"[INFO:"; else
|
||||
if(msgFlags&VK_DEBUG_REPORT_DEBUG_BIT_EXT) std::cerr<<"[DEBUG:";
|
||||
|
||||
std::cerr<<msgCode<<"]["<<obj_type_name<<":"<<srcObject<<"][Location:"<<location<<"]["<<pLayerPrefix<<"] "<<pMsg<<std::endl;
|
||||
std::cerr<<msgCode<<"]["<<obj_type_name<<":"<<std::hex<<srcObject<<"][Location:"<<location<<"]["<<pLayerPrefix<<"] "<<pMsg<<std::endl;
|
||||
|
||||
return VK_FALSE;
|
||||
}
|
||||
|
@ -41,6 +41,12 @@ MaterialParameters *GPUDevice::CreateMP(const MaterialDescriptorSets *mds,const
|
||||
|
||||
if(!ds)return(nullptr);
|
||||
|
||||
#ifdef _DEBUG
|
||||
const UTF8String addr_string=HexToString<char,uint64_t>((uint64_t)(ds->GetDescriptorSet()));
|
||||
|
||||
LOG_INFO(U8_TEXT("Create [DescriptSets:")+addr_string+("] OK! Material Name: \"")+mds->GetMaterialName()+U8_TEXT("\" Type: ")+GetDescriptorSetsTypeName(desc_set_type));
|
||||
#endif//_DEBUG
|
||||
|
||||
return(new MaterialParameters(mds,desc_set_type,ds));
|
||||
}
|
||||
|
||||
|
@ -136,6 +136,8 @@ Material *RenderResource::CreateMaterial(const OSString &filename)
|
||||
break;
|
||||
}
|
||||
|
||||
const UTF8String mtl_name=ToUTF8String(filename);
|
||||
|
||||
MaterialDescriptorSets *mds=nullptr;
|
||||
{
|
||||
const uint8 count=*sp;
|
||||
@ -147,13 +149,13 @@ Material *RenderResource::CreateMaterial(const OSString &filename)
|
||||
|
||||
LoadShaderDescriptor(sp,sd_list,count);
|
||||
|
||||
mds=new MaterialDescriptorSets(sd_list,count);
|
||||
mds=new MaterialDescriptorSets(mtl_name,sd_list,count);
|
||||
}
|
||||
}
|
||||
|
||||
if(result)
|
||||
{
|
||||
mtl=device->CreateMaterial(ToUTF8String(filename),smm,mds);
|
||||
mtl=device->CreateMaterial(mtl_name,smm,mds);
|
||||
Add(mtl);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user