improve a few codes.
This commit is contained in:
@@ -56,7 +56,7 @@ private:
|
||||
|
||||
private:
|
||||
|
||||
friend GPUDevice *CreateRenderDevice(VkInstance inst,const GPUPhysicalDevice *physical_device,VkSurfaceKHR surface,const VkExtent2D &extent);
|
||||
friend GPUDevice *CreateRenderDevice(VulkanInstance *inst,const GPUPhysicalDevice *physical_device,VkSurfaceKHR surface,const VkExtent2D &extent);
|
||||
|
||||
GPUDevice(GPUDeviceAttribute *da);
|
||||
|
||||
@@ -95,14 +95,6 @@ public:
|
||||
return Resize(extent);
|
||||
}
|
||||
|
||||
public: //
|
||||
|
||||
template<typename T>
|
||||
T *GetProc(const char *name)
|
||||
{
|
||||
return reinterpret_cast<T>(vkGetDeviceProcAddr(attr->device,name));
|
||||
}
|
||||
|
||||
public: //内存相关
|
||||
|
||||
GPUMemory *CreateMemory(const VkMemoryRequirements &,const uint32_t properties);
|
||||
|
Reference in New Issue
Block a user