I have two classes Device and DeviceMemory, Device has a field memory of type DeviceMemory so that when Device is destroyed the DeviceMemory gets freed.
class DeviceMemory {
void func();
}
class Device {
VkPhysicalDevice phys_dev;
VkDevice logi_dev;
DeviceMemory memory;
}
How can I make func be able to access phys_dev and logi_dev from the owning device ?
Aucun commentaire:
Enregistrer un commentaire