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

Function _sg_metal_query_image_pixels

source/graphics_platform_d3d11.cpp:371–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371static void _sg_metal_query_image_pixels(_sg_image_t* img, void* pixels) {
372 id<MTLTexture> mtl_src_texture = _sg.mtl.idpool.pool[img->mtl.tex[0]];
373 _sg_metal_encode_texture_pixels(0, 0, mtl_src_texture.width, mtl_src_texture.height, true, mtl_src_texture, pixels);
374}
375
376static void _sg_metal_query_pixels(int x, int y, int w, int h, void *pixels) {
377 id<CAMetalDrawable> mtl_drawable = (__bridge id<CAMetalDrawable>)_sg.mtl.drawable_cb();

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected