浏览代码

defined half* as min16float* as it is required by the HLSLcc compiler to make proper half precision float in mobile

/lw-shader-optimization
Felipe Lira 7 年前
当前提交
84de95bc
共有 1 个文件被更改,包括 14 次插入1 次删除
  1. 15
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl

15
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl


#define real3x3 half3x3
#define real3x4 half3x4
#define real4x3 half4x3
#define real4x4 half4x4
#define real4x4 half4x4
#define half min16float
#define half2 min16float2
#define half3 min16float3
#define half4 min16float4
#define half2x2 min16float2x2
#define half2x3 min16float2x3
#define half3x2 min16float3x2
#define half3x3 min16float3x3
#define half3x4 min16float3x4
#define half4x3 min16float4x3
#define half4x4 min16float4x4
#define REAL_MIN HALF_MIN
#define REAL_MAX HALF_MAX

正在加载...
取消
保存