Skip to content

Commit

Permalink
[d3d9] Implement AL16 & R16 formats
Browse files Browse the repository at this point in the history
  • Loading branch information
K0bin committed Jun 10, 2020
1 parent 86c53bb commit 35b593e
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 @@ -408,6 +408,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_R }};

case D3D9Format::R16: 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_R }};

default:
Logger::warn(str::format("ConvertFormat: Unknown format encountered: ", Format));
return {}; // Unsupported
Expand Down

0 comments on commit 35b593e

Please sign in to comment.