Skip to content

Commit

Permalink
fix(dxmt): map R16G16B16A16_TYPELESS to its float interpretation.
Browse files Browse the repository at this point in the history
Again it's still a workaround and should be replaced by a proper multisample resolve operation
  • Loading branch information
3Shain committed Jan 23, 2025
1 parent 5674d4b commit af78f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dxmt/dxmt_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ MTLQueryDXGIFormat(MTL::Device *device, uint32_t format, MTL_DXGI_FORMAT_DESC &d
break;
}
case DXGI_FORMAT_R16G16B16A16_TYPELESS: {
description.PixelFormat = MTL::PixelFormatRGBA16Unorm;
description.PixelFormat = MTL::PixelFormatRGBA16Float;
description.BytesPerTexel = 8;
description.Flag = MTL_DXGI_FORMAT_TYPELESS;
break;
Expand Down

0 comments on commit af78f44

Please sign in to comment.