little update codes.

This commit is contained in:
2024-11-20 02:47:51 +08:00
parent 8b37447db3
commit 53d2a61d60
8 changed files with 200 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
#include"RuntimeAssetManager.h"
#include<hgl/type/String.h>
#include<hgl/type/SortedSets.h>
#include<hgl/type/SortedSet.h>
#include<iostream>
using namespace hgl;
@@ -11,7 +11,7 @@ using PhysicalDeviceID =uint64;
struct Instance:public RuntimeAsset<InstanceID,Instance>
{
SortedSets<PhysicalDeviceID> physical_devices;
SortedSet<PhysicalDeviceID> physical_devices;
public:
@@ -27,7 +27,7 @@ public:
physical_devices.Add(pd_id);
}
const SortedSets<PhysicalDeviceID> &GetPhysicalDevices()const{return physical_devices;}
const SortedSet<PhysicalDeviceID> &GetPhysicalDevices()const{return physical_devices;}
};
struct PhysicalDevice:public RuntimeAsset<PhysicalDeviceID,PhysicalDevice>

View File

@@ -104,7 +104,7 @@ public:
* {
* public:
*
* using RuntimeAsset::RuntimeAsset;
* using RuntimeAsset<MyAssetID,MyRuntimeAsset>::RuntimeAsset;
* };
*
* MyRuntimeAsset.cpp