Skip to content

Commit 570c539

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.3] Use builtin firstbitlow with DXC
1 parent 95740fd commit 570c539

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderVariablesFunctions.hlsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ uint Select4(uint4 v, uint i)
591591
(((v.y & mask0) | (v.x & ~mask0)) & ~mask1);
592592
}
593593

594-
#if SHADER_TARGET < 45
594+
#if SHADER_TARGET < 45 && !defined UNITY_COMPILER_DXC
595+
// Workaround is only technically required for GL Core <4.0 and GLES <3.1
595596
uint URP_FirstBitLow(uint m)
596597
{
597598
// http://graphics.stanford.edu/~seander/bithacks.html#ZerosOnRightFloatCast

0 commit comments

Comments
 (0)