MCPcopy Create free account
hub / github.com/defold/defold / IsRenderTargetbound

Function IsRenderTargetbound

engine/graphics/src/vulkan/graphics_vulkan.cpp:261–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259 }
260
261 static inline bool IsRenderTargetbound(VulkanContext* context, HRenderTarget rt)
262 {
263 DM_MUTEX_SCOPED_LOCK(context->m_BaseContext.m_AssetHandleContainerMutex);
264 RenderTarget* current_rt = GetAssetFromContainer<RenderTarget>(context->m_BaseContext.m_AssetHandleContainer, rt);
265 return current_rt ? current_rt->m_IsBound : 0;
266 }
267
268 static void FlushPendingRenderTargetClear(VulkanContext* context, HRenderTarget render_target)
269 {

Callers 2

VulkanDispatchComputeFunction · 0.70
VulkanReadPixelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected