gpt4 book ai didi

c - glGetActiveUniformsiv : find uniformIndices[] when Uniform Block Object contains an array of Struct Objects?

转载 作者:太空宇宙 更新时间:2023-11-04 04:55:35 25 4
gpt4 key购买 nike

<分区>

例如,

struct A{
GLint a1;
GLint a2;
GLint a3;
};

Uniform X{
A a[8];
}x;

GLchar* uniformNames[]={"x.a"};
GLuint uniformIndices[1]={0};

现在,

glGetUniformIndices(programID, 1, &uniformNames, &uniformIndices);

-- 不返回 uniformIndices[]?我想我犯了一个我无法弄清楚的明显错误。请帮帮我。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com