added missing break statements
This commit is contained in:
parent
21a74b6cda
commit
529b3d1e8e
@ -203,13 +203,16 @@ string MVKCommandResourceFactory::getFragFunctionSuffix(MTLPixelFormat mtlPixFmt
|
|||||||
string suffix;
|
string suffix;
|
||||||
switch (mvkFormatTypeFromMTLPixelFormat(mtlPixFmt)) {
|
switch (mvkFormatTypeFromMTLPixelFormat(mtlPixFmt)) {
|
||||||
case kMVKFormatDepthStencil:
|
case kMVKFormatDepthStencil:
|
||||||
suffix += "DS";
|
suffix = "DS";
|
||||||
|
break;
|
||||||
case kMVKFormatColorUInt:
|
case kMVKFormatColorUInt:
|
||||||
suffix += "U";
|
suffix = "U";
|
||||||
|
break;
|
||||||
case kMVKFormatColorInt:
|
case kMVKFormatColorInt:
|
||||||
suffix += "I";
|
suffix = "I";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
suffix += "F";
|
suffix = "F";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user