API for supporting fences #3204
Replies: 2 comments 8 replies
-
Fences are too low-level concept to belong to bgfx API. It would be better if you used frame number when result is 100% available, instead fence that would give you mid-frame result or that blocking API you have: |
Beta Was this translation helpful? Give feedback.
-
Okay, I understand that it's a low-level concept. I am enhancing fences by incorporating the capability to wrap externally created textures (fluendo#1), and my next step is to synchronize both libraries (BGFX and the video library) to utilize fences on the GPU side and avoid CPU blocking. Thank you for your response and thanks a lot for all your work :-) |
Beta Was this translation helpful? Give feedback.
-
Dear all,
I am working on a project that uses BGFX as a headless library, for drawing on a texture that comes from a DirectX12 video pipeline.
In order to ensure that the texture has indeed been rendered by the GPU before continuing to send it through the video pipeline, I have implemented a minimal API for DirectX12 only at the moment. It is available in our fork at fluendo@4bd66d0
In this way, my code for a frame looks like this:
I wanted to discuss it here for your opinions on the convenience of having this type of API officially, and of course, so that others with the same need can find it.
Greetings to all,
Nacho Garcia
Fluendo SL
Beta Was this translation helpful? Give feedback.
All reactions