浏览代码

Use operator[] instead of LOAD on RWTexture2D

/main
Frédéric Vauchelles 6 年前
当前提交
af3007d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/Core/CoreRP/CoreResources/TexturePadding.compute

2
ScriptableRenderPipeline/Core/CoreRP/CoreResources/TexturePadding.compute


const int2 loadId = targetId - int2(1 + dispatchThreadId.x, 0);
#endif
_Source[targetId] = LOAD_TEXTURE2D_LOD(_Source, loadId, 0);
_Source[targetId] = _Source[loadId];
}
正在加载...
取消
保存