Пример #1
0
    private void LoadMtrlHelper(IntPtr mtrlResourceHandle)
    {
        if (mtrlResourceHandle == IntPtr.Zero)
        {
            return;
        }

        var mtrl     = ( MtrlResource * )mtrlResourceHandle;
        var mtrlPath = Utf8String.FromSpanUnsafe(mtrl->Handle.FileNameSpan(), true, null, true);

        _mtrlCollection = PathCollections.TryGetValue(mtrlPath, out var c) ? c : null;
    }