Cogl.Framebuffer.prototype.get_depth_texture

function get_depth_texture(): Cogl.Texture {
    // Gjs wrapper for cogl_framebuffer_get_depth_texture()
}
  

Retrieves the depth buffer of framebuffer as a Cogl.Texture. You need to call cogl_framebuffer_get_depth_texture(fb, TRUE); before using this function.

<note>Calling this function implicitely allocates the framebuffer.</note> <note>The texture returned stays valid as long as the framebuffer stays valid.</note>

Since 1.14

Returns

the depth texture