浏览代码

Merge pull request #1521 from Unity-Technologies/lw/computebuffer-fix

Lw/computebuffer fix
/main
GitHub 6 年前
当前提交
6147be48
共有 3 个文件被更改,包括 5 次插入6 次删除
  1. 5
      com.unity.render-pipelines.lightweight/CHANGELOG.md
  2. 4
      com.unity.render-pipelines.lightweight/LWRP/LightweightForwardRenderer.cs
  3. 2
      com.unity.render-pipelines.lightweight/LWRP/ShaderLibrary/Input.hlsl

5
com.unity.render-pipelines.lightweight/CHANGELOG.md


## [Unreleased]
### Fixed
- GLCore compute buffer compiler error
## [2.0.1-preview]
### Fixed
- VR Single Pass Instancing shadows
## [2.0.0-preview]

4
com.unity.render-pipelines.lightweight/LWRP/LightweightForwardRenderer.cs


get
{
return SystemInfo.supportsComputeShaders &&
!Application.isMobilePlatform && Application.platform != RuntimePlatform.WebGLPlayer;
SystemInfo.graphicsDeviceType != GraphicsDeviceType.OpenGLCore &&
!Application.isMobilePlatform &&
Application.platform != RuntimePlatform.WebGLPlayer;
}
}

2
com.unity.render-pipelines.lightweight/LWRP/ShaderLibrary/Input.hlsl


// Must match check of use compute buffer in LightweightPipeline.cs
// GLES check here because of WebGL 1.0 support
// TODO: check performance of using StructuredBuffer on mobile as well
#if defined(SHADER_API_MOBILE) || defined(SHADER_API_GLES)
#if defined(SHADER_API_MOBILE) || defined(SHADER_API_GLES) || defined(SHADER_API_GLCORE)
#define USE_STRUCTURED_BUFFER_FOR_LIGHT_DATA 0
#else
#define USE_STRUCTURED_BUFFER_FOR_LIGHT_DATA 1

正在加载...
取消
保存