3D textures with depth are not supported

答案很明显了,如题,下面主要是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

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

avi9111

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

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

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

打赏作者

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

抵扣说明:

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

余额充值