Skip to content

Commit bac51be

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.0] Use builtin firstbitlow with DXC
1 parent 16c7924 commit bac51be

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
@@ -495,7 +495,8 @@ uint Select4(uint4 v, uint i)
495495
(((v.y & mask0) | (v.x & ~mask0)) & ~mask1);
496496
}
497497

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

0 commit comments

Comments
 (0)