浏览代码

Merge pull request #1 from Unity-Technologies/API-Validation

Api validation
/main
GitHub 8 年前
当前提交
213ac319
共有 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)
正在加载...
取消
保存