比较有意思。
问题是如果depth stencil大小和color render target大小不一样,比如depth stencil大小比较小,那么画一个全屏quad,就只能覆盖其中一部分
dx12中rendertarget大小匹配导致的一个bug
比如上图中,只画了一部分,原因就是depth stencil 的resolution其实更小。

做法上,可以选择在渲染底层实现一个check:drawcall之前对size做一个匹配检查,color rt的size要<=depth stencil rt size;

相关文章:

  • 2022-12-23
  • 2022-01-27
  • 2021-12-08
  • 2022-12-23
  • 2021-11-18
  • 2022-01-15
  • 2022-12-23
猜你喜欢
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案