[Fix] (gl.h|doc.cpp): Fix the wrong operations that make all "Depth" into "Common".

This commit is contained in:
BZLZHH
2025-04-04 10:55:35 +08:00
parent d64eb04dd5
commit 4f2e3f97be
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -591,7 +591,7 @@ const char* ImageChannelOrderString(int format)
case 10: return "Rx";
case 11: return "RGx";
case 12: return "RGBx";
case 13: return "Common";
case 13: return "Depth";
case 14: return "DepthStencil";
case 15: return "sRGB";
case 16: return "sRGBx";
@@ -1885,7 +1885,7 @@ void Parameterize()
InstructionDesc[OpTypeImage].operands.push(OperandId, "'Sampled Type'");
InstructionDesc[OpTypeImage].operands.push(OperandDimensionality, "");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Common'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Depth'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Arrayed'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'MS'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Sampled'");