spelling: explicitly

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2024-01-01 22:35:22 -05:00
parent dc0661be5a
commit d1db9479aa

View File

@ -18,7 +18,7 @@ void set_array_buffer(
auto offset = a.data<char>() - auto offset = a.data<char>() -
static_cast<char*>(const_cast<MTL::Buffer*>(a_buf)->contents()); static_cast<char*>(const_cast<MTL::Buffer*>(a_buf)->contents());
enc->setBuffer(a_buf, offset, idx); enc->setBuffer(a_buf, offset, idx);
// MTL::Resource usage through argument buffer needs to be explicity // MTL::Resource usage through argument buffer needs to be explicitly
// flagged to enable hazard tracking // flagged to enable hazard tracking
compute_encoder->useResource(a_buf, MTL::ResourceUsageRead); compute_encoder->useResource(a_buf, MTL::ResourceUsageRead);
} }