From cd5ac9366f8cdc8255f0e45fdd6a73cddd072409 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 10 Feb 2024 15:04:55 +0100 Subject: sokol_gfx.h metal: replace sg_metal_swapchain.render_pass_encoder with individual textures --- sokol_glue.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sokol_glue.h') diff --git a/sokol_glue.h b/sokol_glue.h index 28a76e46..9c80568c 100644 --- a/sokol_glue.h +++ b/sokol_glue.h @@ -142,8 +142,9 @@ SOKOL_API_IMPL sg_swapchain sglue_swapchain(void) { swapchain.sample_count = sapp_sample_count(); swapchain.color_format = (sg_pixel_format)sapp_color_format(); swapchain.depth_format = (sg_pixel_format)sapp_depth_format(); - swapchain.metal.render_pass_descriptor = sapp_metal_get_renderpass_descriptor(); - swapchain.metal.drawable = sapp_metal_get_drawable(); + swapchain.metal.current_drawable = sapp_metal_get_current_drawable(); + swapchain.metal.depth_stencil_texture = sapp_metal_get_depth_stencil_texture(); + swapchain.metal.msaa_color_texture = sapp_metal_get_msaa_color_texture(); swapchain.d3d11.render_view = sapp_d3d11_get_render_view(); swapchain.d3d11.resolve_view = sapp_d3d11_get_resolve_view(); swapchain.d3d11.depth_stencil_view = sapp_d3d11_get_depth_stencil_view(); -- cgit v1.2.3