gpt4 book ai didi

iphone - 可以传递给 ios 中的着色器的统一数组的最大大小是多少?

转载 作者:可可西里 更新时间:2023-11-01 03:52:20 25 4
gpt4 key购买 nike

我通过传递模型 View 矩阵数组来使用实例化渲染。特定制服的最大数组大小是多少?

最佳答案

此值因硬件和实现而异。我相信

int maxUniformVectors;
glGet(GL_MAX_VERTEX_UNIFORM_VECTORS, &maxUniformVectors);

应该回答你的问题。

来自docs :

This should return "the maximum number of four-element floating-point, integer, or boolean vectors that can be held in uniform variable storage for a vertex shader. The value must be at least 128.

关于iphone - 可以传递给 ios 中的着色器的统一数组的最大大小是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16090462/

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