final touch

This commit is contained in:
psucien 2024-06-05 16:34:17 +02:00
parent 0b63a76b51
commit 3a5ba82eae
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ using namespace Vulkan;
using VideoOutFormat = Libraries::VideoOut::PixelFormat; using VideoOutFormat = Libraries::VideoOut::PixelFormat;
using Libraries::VideoOut::TilingMode; using Libraries::VideoOut::TilingMode;
[[nodiscard]] vk::Format ConvertPixelFormat(const VideoOutFormat format) { static vk::Format ConvertPixelFormat(const VideoOutFormat format) {
switch (format) { switch (format) {
case VideoOutFormat::A8R8G8B8Srgb: case VideoOutFormat::A8R8G8B8Srgb:
return vk::Format::eB8G8R8A8Srgb; return vk::Format::eB8G8R8A8Srgb;
@ -32,7 +32,7 @@ using Libraries::VideoOut::TilingMode;
return {}; return {};
} }
[[nodiscard]] vk::ImageUsageFlags ImageUsageFlags(const vk::Format format) { static vk::ImageUsageFlags ImageUsageFlags(const vk::Format format) {
vk::ImageUsageFlags usage = vk::ImageUsageFlagBits::eTransferSrc | vk::ImageUsageFlags usage = vk::ImageUsageFlagBits::eTransferSrc |
vk::ImageUsageFlagBits::eTransferDst | vk::ImageUsageFlagBits::eTransferDst |
vk::ImageUsageFlagBits::eSampled; vk::ImageUsageFlagBits::eSampled;
@ -46,7 +46,7 @@ using Libraries::VideoOut::TilingMode;
return usage; return usage;
} }
[[nodiscard]] vk::ImageType ConvertImageType(AmdGpu::ImageType type) noexcept { static vk::ImageType ConvertImageType(AmdGpu::ImageType type) noexcept {
switch (type) { switch (type) {
case AmdGpu::ImageType::Color1D: case AmdGpu::ImageType::Color1D:
return vk::ImageType::e1D; return vk::ImageType::e1D;