刷新变量多次帧(用于着色器中的纹理阵列)
我想在帧中多次更新整数,以便片段阴影可以访问不同对象的纹理阵列的正确索引。 我首先使用PushConstant尝试了它,但这是不起作用的,因为它只能每次命令的记录一次更改。
因此,如果有人能告诉我如何做到这一点,或者我应该以不同的方式更改正确的对象纹理的过程,那将是非常善良的。
I want to Update an integer multiple times in frame so that the fragment-shader can access the right index of a texture array for different objects.
I first tried it with a PushConstant but this doesn´t work because it can only be changed one time per record of the commandbuffer.
So it would be very kind if somebody could tell me how to do this or if i should change the process of getting the right textures for an object in a different way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论