yog-runtime 0.109.0

Yog runtime — native library bridging the Fabric host to Rust mods via JNI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! The `YogApi` table a mod registers through.
use yog_abi::ABI_VERSION;
use yog_abi::YogApi;

pub(super) fn build_api_table() -> YogApi {
    YogApi {
        abi_version: ABI_VERSION,
        size: std::mem::size_of::<YogApi>() as u32,
        bus: crate::bus::table(),
        gfx: crate::gfx_frame::api_gfx,
    }
}