浏览代码

Fixed GLCore compute buffer

/main
Felipe Lira 6 年前
当前提交
21416f83
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 4
      com.unity.render-pipelines.lightweight/LWRP/LightweightForwardRenderer.cs
  2. 2
      com.unity.render-pipelines.lightweight/LWRP/ShaderLibrary/Input.hlsl

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

正在加载...
取消
保存