vk_device: Let formats array type be deduced
This commit is contained in:
parent
a4c5e3e339
commit
f424b46036
|
@ -275,7 +275,7 @@ std::vector<vk::DeviceQueueCreateInfo> VKDevice::GetDeviceQueueCreateInfos() con
|
||||||
|
|
||||||
std::map<vk::Format, vk::FormatProperties> VKDevice::GetFormatProperties(
|
std::map<vk::Format, vk::FormatProperties> VKDevice::GetFormatProperties(
|
||||||
const vk::DispatchLoaderDynamic& dldi, vk::PhysicalDevice physical) {
|
const vk::DispatchLoaderDynamic& dldi, vk::PhysicalDevice physical) {
|
||||||
static constexpr std::array<vk::Format, 33> formats = {vk::Format::eA8B8G8R8UnormPack32,
|
static constexpr std::array formats{vk::Format::eA8B8G8R8UnormPack32,
|
||||||
vk::Format::eB5G6R5UnormPack16,
|
vk::Format::eB5G6R5UnormPack16,
|
||||||
vk::Format::eA2B10G10R10UnormPack32,
|
vk::Format::eA2B10G10R10UnormPack32,
|
||||||
vk::Format::eR32G32B32A32Sfloat,
|
vk::Format::eR32G32B32A32Sfloat,
|
||||||
|
|
Reference in New Issue