浏览代码

Merge branch 'ShaderLibrary' of https://github.com/Unity-Technologies/ScriptableRenderLoop into ShaderLibrary

/main
sebastienlagarde 8 年前
当前提交
4ec829d0
共有 4 个文件被更改,包括 14 次插入12 次删除
  1. 7
      Assets/ScriptableRenderLoop/ShaderLibrary/API/D3D11.hlsl
  2. 7
      Assets/ScriptableRenderLoop/ShaderLibrary/API/D3D11_1.hlsl
  3. 4
      Assets/ScriptableRenderLoop/ShaderLibrary/Common.hlsl
  4. 8
      Assets/ScriptableRenderLoop/ShaderLibrary/API/Validate.hlsl

7
Assets/ScriptableRenderLoop/ShaderLibrary/API/D3D11.hlsl


#ifndef UNITY_D3D11_INCLUDED
#define UNITY_D3D11_INCLUDED
#define UNITY_UV_STARTS_AT_TOP 1
#endif // UNITY_D3D11_INCLUDED
#define UNITY_UV_STARTS_AT_TOP 1

7
Assets/ScriptableRenderLoop/ShaderLibrary/API/D3D11_1.hlsl


#ifndef UNITY_D3D11_INCLUDED
#define UNITY_D3D11_INCLUDED
#define UNITY_UV_STARTS_AT_TOP 1
#endif // UNITY_D3D11_INCLUDED
#define UNITY_UV_STARTS_AT_TOP 1

4
Assets/ScriptableRenderLoop/ShaderLibrary/Common.hlsl


#include "API/D3D11.hlsl"
#elif defined(SHADER_API_XBOXONE)
#include "API/D3D11_1.hlsl"
#else
#error unsupported shader api
#include "API/Validate.hlsl"
// ----------------------------------------------------------------------------
// Common define allowing to include shared file between C# and hlsl

8
Assets/ScriptableRenderLoop/ShaderLibrary/API/Validate.hlsl


// Upgrade NOTE: replaced 'defined in' with 'defined (in)'
#define REQUIRE_DEFINED(X_) \
#ifndef X_ \
#error X_ must be defined (in) the platform include \
#endif X_ \
REQUIRE_DEFINED(UNITY_UV_STARTS_AT_TOP)
正在加载...
取消
保存