浏览代码

Forget hlsl generator file

/RenderPassXR_Sandbox
sebastienlagarde 8 年前
当前提交
90e6b108
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 9
      Assets/ScriptableRenderPipeline/ShaderGenerator/Editor/ShaderTypeGeneration.cs

9
Assets/ScriptableRenderPipeline/ShaderGenerator/Editor/ShaderTypeGeneration.cs


{
if (field.FieldType.IsPrimitive)
{
m_Statics[field.Name] = field.GetValue(null).ToString();
// Unity convention is to start static of constant with k_ or s_, remove this part
string name = InsertUnderscore(field.Name);
if (name.StartsWith("k_") || name.StartsWith("s_"))
{
name = name.Substring(2);
}
string defineName = name.ToUpper();
m_Statics[defineName] = field.GetValue(null).ToString();
}
continue;
}

正在加载...
取消
保存