SHADE_Y3/SHADE_Engine/src/Graphics/SHVkUtil.cpp

23 lines
481 B
C++
Raw Normal View History

2022-09-08 19:11:25 +08:00
#include "SHPch.h"
#include "SHVkUtil.h"
namespace SHADE
{
bool SHVkUtil::IsDepthOnlyFormat(vk::Format format) noexcept
{
return format == vk::Format::eD16Unorm ||
format == vk::Format::eD32Sfloat;
}
bool SHVkUtil::IsDepthStencilAttachment(vk::Format format) noexcept
{
return format == vk::Format::eD16UnormS8Uint ||
format == vk::Format::eD24UnormS8Uint ||
format == vk::Format::eD32SfloatS8Uint ||
IsDepthOnlyFormat(format);
}
}