| 322 | } |
| 323 | |
| 324 | static void _sg_metal_commit_command_buffer() { |
| 325 | SOKOL_ASSERT(!_sg.mtl.in_pass); |
| 326 | if(_sg.mtl.cmd_buffer) { |
| 327 | #if defined(_SG_TARGET_MACOS) |
| 328 | [_sg.mtl.uniform_buffers[_sg.mtl.cur_frame_rotate_index] didModifyRange:NSMakeRange(0, _sg.mtl.cur_ub_offset)]; |
| 329 | #endif |
| 330 | [_sg.mtl.cmd_buffer commit]; |
| 331 | [_sg.mtl.cmd_buffer waitUntilCompleted]; |
| 332 | _sg.mtl.cmd_buffer = [_sg.mtl.cmd_queue commandBufferWithUnretainedReferences]; |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | static void _sg_metal_encode_texture_pixels(int x, int y, int w, int h, id<MTLTexture> mtl_src_texture, void* pixels) { |
| 337 | SOKOL_ASSERT(!_sg.mtl.in_pass); |
no outgoing calls
no test coverage detected