preparing resume PrimitiveData
This commit is contained in:
parent
f31437bf67
commit
3af753ee36
@ -1 +1 @@
|
|||||||
Subproject commit c330c635b226079f29664541b6c766959c244769
|
Subproject commit 481d6a7924f373b8d0b40f25199eb987d4512fa8
|
@ -14,6 +14,12 @@ VK_NAMESPACE_BEGIN
|
|||||||
*
|
*
|
||||||
* 一类是传统的,使用独统的独立VAB的
|
* 一类是传统的,使用独统的独立VAB的
|
||||||
* 一类是使用VDM的
|
* 一类是使用VDM的
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* WIP: *** 1.将数据全部转移到PrimitiveData,完成旧的渲染测试
|
||||||
|
* 2.改成抽象类,将独立VAB的做成一个实现
|
||||||
|
* 3.实现VDM支持
|
||||||
*/
|
*/
|
||||||
class Primitive
|
class Primitive
|
||||||
{
|
{
|
||||||
|
@ -52,28 +52,16 @@ public:
|
|||||||
hgl_zero(*this);
|
hgl_zero(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
const int GetVABIndex(const char *name)const
|
const int GetVABIndex(const AnsiString &name)const{return vil->GetIndex(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 AnsiString &name)
|
||||||
}
|
|
||||||
|
|
||||||
VABAccess *GetVAB(const char *name)
|
|
||||||
{
|
{
|
||||||
if(!name||!*name)
|
|
||||||
return(nullptr);
|
|
||||||
|
|
||||||
const int index=GetVABIndex(name);
|
const int index=GetVABIndex(name);
|
||||||
|
|
||||||
if(index==-1)
|
if(index==-1)
|
||||||
return(nullptr);
|
return(nullptr);
|
||||||
|
|
||||||
return &(vab_list[index].vab_access);
|
return vab_access+index;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int AddVAB(const char *name,VAB *vab,VkDeviceSize start=0)
|
const int AddVAB(const char *name,VAB *vab,VkDeviceSize start=0)
|
||||||
|
@ -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;
|
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
|
#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)
|
void DebugOut(const VkPhysicalDeviceProperties &pdp)
|
||||||
{
|
{
|
||||||
constexpr char DeviceTypeString[VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE][16]=
|
constexpr char DeviceTypeString[VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE][16]=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user