我想在我的程序中使用计算着色器。我使用 C# 和 OpenTK 来使用着色器。我的问题:我所有的计算机都有 0 workGroupCount 和 0 workGroupSize。我用这个 OpenTK 代码得到这些值:
int workGroupCount = GL.GetInteger((GetPName)All.MaxComputeWorkGroupCount);
int workGroupSize = GL.GetInteger((GetPName)All.MaxComputeWorkGroupSize);
int workGroupInvocations = GL.GetInteger((GetPName)All.MaxComputeWorkGroupInvocations);
Run Code Online (Sandbox Code Playgroud)
Vertex、Fragment 和 Tesselation 着色器在我的计算机上运行良好。OpenGL 4.3 及以上版本。为什么我有 0 个工作组计数?