mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 23:11:18 +12:00
check for invalid color formats
This commit is contained in:
parent
cd72ad80d2
commit
4251f3fe55
3 changed files with 21 additions and 11 deletions
|
@ -281,9 +281,11 @@ namespace LatteDecompiler
|
|||
{
|
||||
if ((decompilerContext->shader->pixelColorOutputMask & (1 << i)) != 0)
|
||||
{
|
||||
//src->addFmt("#ifdef {}" _CRLF, GetColorAttachmentTypeStr(i));
|
||||
src->addFmt("{} passPixelColor{} [[color({})]];" _CRLF, GetColorBufferDataTypeStr(i, *decompilerContext->contextRegistersNew)/*, GetColorAttachmentTypeStr(i)*/, i, i);
|
||||
//src->add("#endif" _CRLF);
|
||||
auto dataType = GetColorBufferDataType(i, *decompilerContext->contextRegistersNew);
|
||||
if (dataType != MetalDataType::NONE)
|
||||
{
|
||||
src->addFmt("{} passPixelColor{} [[color({})]];" _CRLF, GetDataTypeStr(dataType), i, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue