preparing resume PrimitiveData

This commit is contained in:
hyzboy 2024-05-16 20:58:44 +08:00
parent f31437bf67
commit 3af753ee36
4 changed files with 24 additions and 17 deletions

@ -1 +1 @@
Subproject commit c330c635b226079f29664541b6c766959c244769
Subproject commit 481d6a7924f373b8d0b40f25199eb987d4512fa8

View File

@ -14,6 +14,12 @@ VK_NAMESPACE_BEGIN
*
* 使VAB的
* 使VDM的
*
*
*
* WIP: *** 1.PrimitiveData
* 2.VAB的做成一个实现
* 3.VDM支持
*/
class Primitive
{

View File

@ -52,28 +52,16 @@ public:
hgl_zero(*this);
}
const int GetVABIndex(const char *name)const
const int GetVABIndex(const AnsiString &name)const{return vil->GetIndex(name);}
VABAccess *GetVAB(const AnsiString &name)
{
for(int i=0;i<va_count;i++)
{
if(hgl::strcmp(vab_list[i].va_name,name)==0)
return(i);
}
return(-1);
}
VABAccess *GetVAB(const char *name)
{
if(!name||!*name)
return(nullptr);
const int index=GetVABIndex(name);
if(index==-1)
return(nullptr);
return &(vab_list[index].vab_access);
return vab_access+index;
}
const int AddVAB(const char *name,VAB *vab,VkDeviceSize start=0)

View File

@ -306,6 +306,19 @@ namespace
constexpr size_t VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE=VK_PHYSICAL_DEVICE_TYPE_END_RANGE-VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE+1;
#endif//VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE
namespace
{
struct VulkanDeviceVendor
{
uint32_t id;
const char *name;
};
//constexpr const VulkanDeviceVendor vulkan_vendor[]=
//{
//};
}
void DebugOut(const VkPhysicalDeviceProperties &pdp)
{
constexpr char DeviceTypeString[VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE][16]=