Merge pull request #48 from mmaldacker/bugfix/frag_function_suffix

correct fragment function suffix
This commit is contained in:
Bill Hollings 2018-02-14 13:20:32 -05:00 committed by GitHub
commit 17108ffcf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,13 +203,16 @@ string MVKCommandResourceFactory::getFragFunctionSuffix(MTLPixelFormat mtlPixFmt
string suffix;
switch (mvkFormatTypeFromMTLPixelFormat(mtlPixFmt)) {
case kMVKFormatDepthStencil:
suffix += "DS";
suffix = "DS";
break;
case kMVKFormatColorUInt:
suffix += "U";
suffix = "U";
break;
case kMVKFormatColorInt:
suffix += "I";
suffix = "I";
break;
default:
suffix += "F";
suffix = "F";
break;
}