Hardware rendering operations
Hardware rendering operation parts in interface:
Copy this to your project and extend with your parts or leave functions complete away where not used or supported.
◆ EnableHardwareRendering()
Callback to Kodi Function
Enable hardware rendering functionality
- Returns
- True if hardware rendering was enabled, false otherwise
◆ HwContextReset()
Invalidates the current HW context and reinitializes GPU resources.
Kodi calls this once with the hardware context current after CStream has installed its handle. GetBuffer() is available during this callback. Returning an error closes the stream and calls HwContextDestroy().
- Returns
- The error, or GAME_ERROR_NO_ERROR if the HW context was reset
◆ HwContextDestroy()
Called before the context is destroyed.
Resources can be deinitialized at this step.
- Returns
- The error, or GAME_ERROR_NO_ERROR if the HW context was destroyed
◆ HwGetProcAddress()
Callback to Kodi Function
Get a symbol from the hardware context
- Parameters
-
- Returns
- A function pointer for the specified symbol