misc: chore: Use collection expressions in OpenGL project

This commit is contained in:
Evan Husted
2025-01-26 15:50:22 -06:00
parent aa0cb50c5d
commit a5dbcb75d0
8 changed files with 18 additions and 17 deletions

View File

@@ -190,7 +190,8 @@ void main()
{
int csHandle = GL.CreateShader(ShaderType.ComputeShader);
string[] formatTable = new[] { "r8ui", "r16ui", "r32ui", "rg8ui", "rg16ui", "rg32ui", "rgba8ui", "rgba16ui", "rgba32ui" };
string[] formatTable = ["r8ui", "r16ui", "r32ui", "rg8ui", "rg16ui", "rg32ui", "rgba8ui", "rgba16ui", "rgba32ui"
];
string srcFormat = formatTable[srcIndex];
string dstFormat = formatTable[dstIndex];