msl bitmask fix (#7255)

This commit is contained in:
Kent Slaney authored and GitHub committed 2025-03-03 15:16:57 +01:00
1 parent 6bf1ec34b5
commit 3acac093fd
1 file changed
+1 -2
+1 -2
View File
@@ -1256,8 +1256,7 @@ impl crate::CommandEncoder for super::CommandEncoder {
.zip(pipeline.work_group_memory_sizes.iter())
.enumerate()
{
const ALIGN_MASK: u32 = 0xF; // must be a multiple of 16 bytes
let size = ((*pipeline_size - 1) | ALIGN_MASK) + 1;
let size = pipeline_size.next_multiple_of(16);
if *cur_size != size {
*cur_size = size;
encoder.set_threadgroup_memory_length(index as _, size as _);