Function gvr_sys::gvr_buffer_spec_set_multiview_layers [] [src]

pub unsafe extern "C" fn gvr_buffer_spec_set_multiview_layers(
    spec: *mut gvr_buffer_spec,
    num_layers: i32
)

Sets the number of layers in a framebuffer backed by an array texture.

Default is 1, which means a non-layered texture will be created. Not all platforms support multiple layers, so clients can call gvr_is_feature_supported(GVR_FEATURE_MULTIVIEW) to check.

@param spec Buffer specification. @param num_layers The number of layers in the array texture.