Skip to content

Commit

Permalink
igl | metal | Enable null buffer in RenderCommandEncoder::bindBuffer()
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsentli committed Dec 5, 2024
1 parent 85ac0a8 commit f1174a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/igl/metal/RenderCommandEncoder.mm
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@
auto& metalBuffer = static_cast<Buffer&>(*buffer);
[encoder_ setVertexBuffer:metalBuffer.get() offset:offset atIndex:index];
[encoder_ setFragmentBuffer:metalBuffer.get() offset:offset atIndex:index];
} else {
[encoder_ setVertexBuffer:nil offset:0 atIndex:index];
[encoder_ setFragmentBuffer:nil offset:0 atIndex:index];
}
}

Expand Down

0 comments on commit f1174a6

Please sign in to comment.