MCPcopy Create free account
hub / github.com/DavidColson/Polybox / _sg_metal_commit_command_buffer

Function _sg_metal_commit_command_buffer

source/graphics_platform_d3d11.cpp:324–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static 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
336static 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);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected