mirror of
https://github.com/RPCSX/rpcsx.git
synced 2024-10-07 08:43:34 +00:00
[amdgpu] Support surface format R8 unorm/snorm
This commit is contained in:
parent
2c3137b566
commit
0d86217715
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user