-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer allocation callback function #184
Comments
Or at least provide a method to set custom allocator for std::vector data in tinygltf::Buffer |
There are some situation for reading Buffer data: From base64 encoded string, from URI, from external bin file, from embedded bin section in .glb. At this time, it would be difficult to provide unified callback function for Buffer allocation. What is your actual usecase(e.g. want to read large .bin file)? |
I'm doing some real time rendering/video streaming I'm currently experimenting on adding a new constructor for Model class to pass a custom std::allcoator |
I see. Could you please send a PR? > I'm currently experimenting on adding a new constructor for Model class to pass a custom std::allcoator |
It's on my company's project |
After parsing a gltf file, all the buffers are already allocated in host memory
If we can provide a callback function to handle buffer memory allocation while loading
then it is possible to load binary data directly into staging buffer and save one memory copying on host side
very helpful with large size scene
The text was updated successfully, but these errors were encountered: