[amdgpu] Support surface format R8 unorm/snorm

This commit is contained in:
DH 2023-07-17 23:07:10 +03:00
parent 2c3137b566
commit 0d86217715

View File

@ -1543,6 +1543,10 @@ static VkFormat surfaceFormatToVkFormat(SurfaceFormat surface,
switch (surface) {
case kSurfaceFormat8: {
switch (channel) {
case kTextureChannelTypeUNorm:
return VK_FORMAT_R8_UNORM;
case kTextureChannelTypeSNorm:
return VK_FORMAT_R8_SNORM;
case kTextureChannelTypeUInt:
return VK_FORMAT_R8_UINT;
case kTextureChannelTypeSInt: