From 4f2e3f97be8ef122bbf7c5a426f6cb6b723c78cd Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Fri, 4 Apr 2025 10:55:35 +0800 Subject: [PATCH] [Fix] (gl.h|doc.cpp): Fix the wrong operations that make all "Depth" into "Common". --- include/GL/gl.h | 4 ++-- include/SPIRV/doc.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/GL/gl.h b/include/GL/gl.h index 4d62ca5d..9c5ccb1e 100644 --- a/include/GL/gl.h +++ b/include/GL/gl.h @@ -255,7 +255,7 @@ typedef double GLclampd; /* double precision float in [0,1] */ #define GL_LIST_INDEX 0x0B33 #define GL_LIST_MODE 0x0B30 -/* Common buffer */ +/* Depth buffer */ #define GL_NEVER 0x0200 #define GL_LESS 0x0201 #define GL_EQUAL 0x0202 @@ -833,7 +833,7 @@ GLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode ); /* - * Common Buffer + * Depth buffer */ GLAPI void GLAPIENTRY glClearDepth( GLclampd depth ); diff --git a/include/SPIRV/doc.cpp b/include/SPIRV/doc.cpp index a5d74d80..dce8a71a 100644 --- a/include/SPIRV/doc.cpp +++ b/include/SPIRV/doc.cpp @@ -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'");