Cogl.Framebuffer.prototype.set_depth_texture_enabled
function set_depth_texture_enabled(enabled: Cogl.Bool): void {
// Gjs wrapper for cogl_framebuffer_set_depth_texture_enabled()
}
If enabled is #TRUE, the depth buffer used when rendering to framebuffer is available as a texture. You can retrieve the texture with Cogl.Framebuffer.prototype.get_depth_texture.
<note>It's possible that your GPU does not support depth textures. You should check the Cogl.FeatureID.ogl_feature_id_depth_texture feature before using this function.</note> <note>It's not valid to call this function after the framebuffer has been allocated as the creation of the depth texture is done at allocation time. </note>
Since 1.14
- enabled
TRUE or FALSE