Skip to content

Commit

Permalink
Added formats AL16 R16
Browse files Browse the repository at this point in the history
Added the format changes as per
doitsujin/dxvk#1661
Will needed to be tested
  • Loading branch information
Speedwagen committed Jun 22, 2023
1 parent b6b1b47 commit 76eb7e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/d3d9/d3d9_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,20 @@ namespace dxvk {
};

case D3D9Format::RAWZ: return {}; // Unsupported

case D3D9Format::AL16: return {
VK_FORMAT_R16_UNORM,
VK_FORMAT_UNDEFINED,
VK_IMAGE_ASPECT_COLOR_BIT,
{ VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R,
VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_G } };

case D3D9Format::R16: return {
VK_FORMAT_R16_UNORM,
VK_FORMAT_UNDEFINED,
VK_IMAGE_ASPECT_COLOR_BIT,
{ VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ONE,
VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_ONE } };

default:
Logger::warn(str::format("ConvertFormat: Unknown format encountered: ", Format));
Expand Down

0 comments on commit 76eb7e7

Please sign in to comment.