23 lines
481 B
C++
23 lines
481 B
C++
#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);
|
|
}
|
|
|
|
}
|