3D textures with depth are not supported

博客内容涉及Unity中创建渲染纹理时遇到的问题。作者在尝试创建一个256x256,24位的渲染纹理时遇到了错误。官方论坛指出,深度缓冲设置为128位是无效的,因为最大支持的是24位,并且3D纹理不支持此设置。解决方案是将深度缓冲参数设为0。博客还提到了相关Unity版本和链接到官方更新日志及论坛解答。
摘要由CSDN通过智能技术生成

答案很明显了,如题,下面主要是for 练习英文

我的错误在于:

 texSelf = new RenderTexture(256, 256, 24);

官方论坛的提问:

https://unity3d.com/es/unity/whats-new/2019.1.0
Graphics: Added extra validation for RT volumeDepth. (1096019)

I could not find any documentation about what validation added.

Unity version 2019.2.7f2 Personal (DX11) Windows 10

 

 

=================

Sounds like a terminology issue - It's referring to depth buffers, not volume or slice depth which I agree isn't entirely clear here.

In this case you're setting a depth buffer of 128 bits in the constructor which is not only invalid (max is 24 bits for stencil support), but also simply not supported for 3D textures.

Set the depth buffer parameter to zero:
 

RenderTexture(128, 128, 0, RenderTextureFormat.ARGB32);

==================

Oh my god, it was so clear. I also closed the answer about this error and mentioned about you, hope someone will see this when needed.

https://answers.unity.com/questions/1611445/3d-rendertextures-with-depth-not-supported.html

Thank you

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

avi9111

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值