[GPU] Remove extraneous breaks from GetTexelSize.

This commit is contained in:
gibbed 2018-05-20 02:10:16 -05:00
parent 3f901311af
commit c233eabeda
1 changed files with 0 additions and 17 deletions

View File

@ -124,56 +124,39 @@ inline size_t GetTexelSize(TextureFormat format) {
switch (format) { switch (format) {
case TextureFormat::k_1_5_5_5: case TextureFormat::k_1_5_5_5:
return 2; return 2;
break;
case TextureFormat::k_2_10_10_10: case TextureFormat::k_2_10_10_10:
return 4; return 4;
break;
case TextureFormat::k_4_4_4_4: case TextureFormat::k_4_4_4_4:
return 2; return 2;
break;
case TextureFormat::k_5_6_5: case TextureFormat::k_5_6_5:
return 2; return 2;
break;
case TextureFormat::k_8: case TextureFormat::k_8:
return 1; return 1;
break;
case TextureFormat::k_8_8: case TextureFormat::k_8_8:
return 2; return 2;
break;
case TextureFormat::k_8_8_8_8: case TextureFormat::k_8_8_8_8:
return 4; return 4;
break;
case TextureFormat::k_16: case TextureFormat::k_16:
return 4; return 4;
break;
case TextureFormat::k_16_FLOAT: case TextureFormat::k_16_FLOAT:
return 4; return 4;
break;
case TextureFormat::k_16_16: case TextureFormat::k_16_16:
return 4; return 4;
break;
case TextureFormat::k_16_16_FLOAT: case TextureFormat::k_16_16_FLOAT:
return 4; return 4;
break;
case TextureFormat::k_16_16_16_16: case TextureFormat::k_16_16_16_16:
return 8; return 8;
break;
case TextureFormat::k_16_16_16_16_FLOAT: case TextureFormat::k_16_16_16_16_FLOAT:
return 8; return 8;
break;
case TextureFormat::k_32_FLOAT: case TextureFormat::k_32_FLOAT:
return 4; return 4;
break;
case TextureFormat::k_32_32_FLOAT: case TextureFormat::k_32_32_FLOAT:
return 8; return 8;
break;
case TextureFormat::k_32_32_32_32_FLOAT: case TextureFormat::k_32_32_32_32_FLOAT:
return 16; return 16;
break;
case TextureFormat::k_10_11_11: case TextureFormat::k_10_11_11:
case TextureFormat::k_11_11_10: case TextureFormat::k_11_11_10:
return 4; return 4;
break;
default: default:
assert_unhandled_case(format); assert_unhandled_case(format);
return 0; return 0;