32 static const char*
GetDeviceType(VkPhysicalDeviceProperties t_Props);
VkSampleCountFlagBits m_MSAASamples
The max supported MSSA level on this device.
Definition: PhyscialDevice.h:68
VkPhysicalDeviceProperties m_DeviceProperties
Misc.
Definition: PhyscialDevice.h:63
PhysicalDevice(class Instance *t_Instance)
Definition: PhyscialDevice.cpp:11
~PhysicalDevice() noexcept=default
The physical device will get cleaned up when the Instance does automatically.
A physical device represents the Vulkan physical device (the GPU) that we are currently using...
Definition: PhyscialDevice.h:11
const VkPhysicalDeviceFeatures & GetDeivceFeatures() const
Definition: PhyscialDevice.h:24
The instance is a representation of this application graphics instance in Vulkan. ...
Definition: Instance.h:11
VkFormatProperties GetFormatProperties(VkFormat t_Form) const
Checks hte given format properties that are supported on this physical device.
Definition: PhyscialDevice.cpp:42
const class Instance * m_Instance
Owning instance of this physical device.
Definition: PhyscialDevice.h:60
void LogPhysicalDeviceInfo()
Logs info about this physical device (vendor, model, ID, etc) to the console/Log file.
Definition: PhyscialDevice.cpp:89
VkBool32 GetSupportedDepthFormat(VkFormat *depthFormat) const
Definition: PhyscialDevice.cpp:137
VkPhysicalDeviceMemoryProperties m_MemoryProperties
Definition: PhyscialDevice.h:65
VkSampleCountFlagBits GetMaxUsableSampleCount()
Definition: PhyscialDevice.cpp:121
VkPhysicalDevice ChooseBestPhyscialDevice(std::vector< VkPhysicalDevice > &t_AvailableDevices)
Choose the best available physical device on this machine favoring discrete GPU's and those who match...
Definition: PhyscialDevice.cpp:164
const VkPhysicalDeviceProperties & GetDeviceProps() const
Definition: PhyscialDevice.h:23
VkPhysicalDeviceFeatures m_DeviceFeatures
Definition: PhyscialDevice.h:64
const VkPhysicalDevice & GetVkPhysicalDevice() const
Definition: PhyscialDevice.h:21
static const char * GetDeviceType(VkPhysicalDeviceProperties t_Props)
Get a string representing the device vendor.
Definition: PhyscialDevice.cpp:50
VkPhysicalDevice m_PhysicalDevice
The Vulkan physical device.
Definition: PhyscialDevice.h:57
static const char * GetDeviceVendor(VkPhysicalDeviceProperties t_Props)
Definition: PhyscialDevice.cpp:71