Skip to content

Commit ed9effb

Browse files
committed
fix wgsl pack clamp
1 parent f933014 commit ed9effb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/slang/hlsl.meta.slang

+1-1
Original file line numberDiff line numberDiff line change
@@ -24389,7 +24389,7 @@ uint packUint4x8Clamp(int32_t4 unpackedValue)
2438924389
__target_switch
2439024390
{
2439124391
case hlsl: __intrinsic_asm "pack_clamp_u8";
24392-
case wgsl: __intrinsic_asm "pack4xU8Clamp";
24392+
case wgsl: __intrinsic_asm "pack4xU8Clamp(vec4<u32>($0))";
2439324393
default:
2439424394
return packInt4x8(clamp(unpackedValue, 0, 255));
2439524395
}

0 commit comments

Comments
 (0)