Permalink
Browse files

Added translation for UsageSemantic.Depth => DEPTH for HLSL.

This is actually needed for using depth writes.
  • Loading branch information...
1 parent 93a837f commit b0aa7e97a78f98d7b33ff3f784fe8c36998aca93 @WolfgangSt WolfgangSt committed Oct 17, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 IIS.SLSharp/Translation/HLSL/HlslSourceBuilder.cs
@@ -158,6 +158,8 @@ public static string ToHlsl(this UsageSemantic semantic)
case UsageSemantic.Normal13: return "NORMAL13";
case UsageSemantic.Normal14: return "NORMAL14";
case UsageSemantic.Normal15: return "NORMAL15";
+
+ case UsageSemantic.Depth: return "DEPTH";
}
throw new SLSharpException("Usage semantic " + semantic + " currently not supported");

0 comments on commit b0aa7e9

Please sign in to comment.