mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
[amdgpu] Support surface format R8 unorm/snorm
This commit is contained in:
parent
2c3137b566
commit
0d86217715
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue