浏览代码

Added proper _half / _float suffix on hlsl as this is what our compiler backend actually expects.

/main
Felipe Lira 7 年前
当前提交
0c03cb67
共有 4 个文件被更改,包括 40 次插入40 次删除
  1. 20
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/GLES3.hlsl
  2. 20
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/Metal.hlsl
  3. 20
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/Switch.hlsl
  4. 20
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/Vulkan.hlsl

20
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/GLES3.hlsl


#define TEXTURECUBE_ARRAY(textureName) TextureCubeArray textureName
#define TEXTURE3D(textureName) Texture3D textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D<float4> textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray<float4> textureName
#define TEXTURECUBE_FLOAT(textureName) TextureCube<float4> textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray<float4> textureName
#define TEXTURE3D_FLOAT(textureName) Texture3D<float4> textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D_float textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_FLOAT(textureName) TextureCube_float textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_FLOAT(textureName) Texture3D_float textureName
#define TEXTURE2D_HALF(textureName) Texture2D<half4> textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray<half4> textureName
#define TEXTURECUBE_HALF(textureName) TextureCube<half4> textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray<half4> textureName
#define TEXTURE3D_HALF(textureName) Texture3D<half4> textureName
#define TEXTURE2D_HALF(textureName) Texture2D_half textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_HALF(textureName) TextureCube_half textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_HALF(textureName) Texture3D_half textureName
#define TEXTURE2D_SHADOW(textureName) TEXTURE2D(textureName)
#define TEXTURE2D_ARRAY_SHADOW(textureName) TEXTURE2D_ARRAY(textureName)

20
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/Metal.hlsl


#define TEXTURECUBE_ARRAY(textureName) TextureCubeArray textureName
#define TEXTURE3D(textureName) Texture3D textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D<float4> textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray<float4> textureName
#define TEXTURECUBE_FLOAT(textureName) TextureCube<float4> textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray<float4> textureName
#define TEXTURE3D_FLOAT(textureName) Texture3D<float4> textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D_float textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_FLOAT(textureName) TextureCube_float textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_FLOAT(textureName) Texture3D_float textureName
#define TEXTURE2D_HALF(textureName) Texture2D<half4> textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray<half4> textureName
#define TEXTURECUBE_HALF(textureName) TextureCube<half4> textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray<half4> textureName
#define TEXTURE3D_HALF(textureName) Texture3D<half4> textureName
#define TEXTURE2D_HALF(textureName) Texture2D_half textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_HALF(textureName) TextureCube_half textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_HALF(textureName) Texture3D_half textureName
#define TEXTURE2D_SHADOW(textureName) TEXTURE2D(textureName)
#define TEXTURE2D_ARRAY_SHADOW(textureName) TEXTURE2D_ARRAY(textureName)

20
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/Switch.hlsl


#define TEXTURECUBE_ARRAY(textureName) TextureCubeArray textureName
#define TEXTURE3D(textureName) Texture3D textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D<float4> textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray<float4> textureName
#define TEXTURECUBE_FLOAT(textureName) TextureCube<float4> textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray<float4> textureName
#define TEXTURE3D_FLOAT(textureName) Texture3D<float4> textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D_float textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_FLOAT(textureName) TextureCube_float textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_FLOAT(textureName) Texture3D_float textureName
#define TEXTURE2D_HALF(textureName) Texture2D<half4> textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray<half4> textureName
#define TEXTURECUBE_HALF(textureName) TextureCube<half4> textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray<half4> textureName
#define TEXTURE3D_HALF(textureName) Texture3D<half4> textureName
#define TEXTURE2D_HALF(textureName) Texture2D_half textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_HALF(textureName) TextureCube_half textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_HALF(textureName) Texture3D_half textureName
#define TEXTURE2D_SHADOW(textureName) TEXTURE2D(textureName)
#define TEXTURE2D_ARRAY_SHADOW(textureName) TEXTURE2D_ARRAY(textureName)

20
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/API/Vulkan.hlsl


#define TEXTURECUBE_ARRAY(textureName) TextureCubeArray textureName
#define TEXTURE3D(textureName) Texture3D textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D<float4> textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray<float4> textureName
#define TEXTURECUBE_FLOAT(textureName) TextureCube<float4> textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray<float4> textureName
#define TEXTURE3D_FLOAT(textureName) Texture3D<float4> textureName
#define TEXTURE2D_FLOAT(textureName) Texture2D_float textureName
#define TEXTURE2D_ARRAY_FLOAT(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_FLOAT(textureName) TextureCube_float textureName
#define TEXTURECUBE_ARRAY_FLOAT(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_FLOAT(textureName) Texture3D_float textureName
#define TEXTURE2D_HALF(textureName) Texture2D<half4> textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray<half4> textureName
#define TEXTURECUBE_HALF(textureName) TextureCube<half4> textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray<half4> textureName
#define TEXTURE3D_HALF(textureName) Texture3D<half4> textureName
#define TEXTURE2D_HALF(textureName) Texture2D_half textureName
#define TEXTURE2D_ARRAY_HALF(textureName) Texture2DArray textureName // no support to _float on Array, it's being added
#define TEXTURECUBE_HALF(textureName) TextureCube_half textureName
#define TEXTURECUBE_ARRAY_HALF(textureName) TextureCubeArray textureName // no support to _float on Array, it's being added
#define TEXTURE3D_HALF(textureName) Texture3D_half textureName
#define TEXTURE2D_SHADOW(textureName) TEXTURE2D(textureName)
#define TEXTURE2D_ARRAY_SHADOW(textureName) TEXTURE2D_ARRAY(textureName)

正在加载...
取消
保存