Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_IContext.h
| Show All 34 Lines | public: | ||||
| /** | /** | ||||
| * Release the drawing context of the calling thread. | * Release the drawing context of the calling thread. | ||||
| * \return A boolean success indicator. | * \return A boolean success indicator. | ||||
| */ | */ | ||||
| virtual GHOST_TSuccess releaseDrawingContext() = 0; | virtual GHOST_TSuccess releaseDrawingContext() = 0; | ||||
| virtual unsigned int getDefaultFramebuffer() = 0; | virtual unsigned int getDefaultFramebuffer() = 0; | ||||
| virtual GHOST_TSuccess getVulkanHandles(void *, void *, void *, uint32_t *) = 0; | |||||
| /** | |||||
| * Gets the Vulkan framebuffer related resource handles associated with the Vulkan context. | |||||
| * Needs to be called after each swap events as the framebuffer will change. | |||||
| * \return A boolean success indicator. | |||||
| */ | |||||
| virtual GHOST_TSuccess getVulkanBackbuffer(void *image, | |||||
| void *framebuffer, | |||||
| void *command_buffer, | |||||
| void *render_pass, | |||||
| void *extent, | |||||
| uint32_t *fb_id) = 0; | |||||
| virtual GHOST_TSuccess swapBuffers() = 0; | virtual GHOST_TSuccess swapBuffers() = 0; | ||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_IContext") | MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_IContext") | ||||
| #endif | #endif | ||||
| }; | }; | ||||