PhysicalDevice中的候选类型改为自定义宏写法
This commit is contained in:
parent
f9f02a76f5
commit
a5ff474793
@ -110,10 +110,12 @@ VkFormat PhysicalDevice::GetDepthFormat(bool lower_to_high)const
|
|||||||
{
|
{
|
||||||
constexpr VkFormat depthFormats[] =
|
constexpr VkFormat depthFormats[] =
|
||||||
{
|
{
|
||||||
VK_FORMAT_D16_UNORM,
|
FMT_D16UN,
|
||||||
VK_FORMAT_D24_UNORM_S8_UINT,
|
FMT_X8_D24,
|
||||||
VK_FORMAT_D32_SFLOAT,
|
FMT_D16UN_S8U,
|
||||||
VK_FORMAT_D32_SFLOAT_S8_UINT
|
FMT_D24UN_S8U,
|
||||||
|
FMT_D32F,
|
||||||
|
FMT_D32F_S8U
|
||||||
};
|
};
|
||||||
|
|
||||||
VkFormat result=VK_FORMAT_UNDEFINED;
|
VkFormat result=VK_FORMAT_UNDEFINED;
|
||||||
@ -136,9 +138,9 @@ VkFormat PhysicalDevice::GetDepthStencilFormat(bool lower_to_high)const
|
|||||||
{
|
{
|
||||||
constexpr VkFormat depthStencilFormats[] =
|
constexpr VkFormat depthStencilFormats[] =
|
||||||
{
|
{
|
||||||
VK_FORMAT_D16_UNORM_S8_UINT,
|
FMT_D16UN_S8U,
|
||||||
VK_FORMAT_D24_UNORM_S8_UINT,
|
FMT_D24UN_S8U,
|
||||||
VK_FORMAT_D32_SFLOAT_S8_UINT
|
FMT_D32F_S8U
|
||||||
};
|
};
|
||||||
|
|
||||||
VkFormat result=VK_FORMAT_UNDEFINED;
|
VkFormat result=VK_FORMAT_UNDEFINED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user