MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsRegionUsedByGpu

Method IsRegionUsedByGpu

trinity/Tr2DynamicRingBuffer.cpp:153–162  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Checks if the given region is still used by GPU. Arguments: region - Buffer region renderContext - current render context Return value: true If the region is still in use false Otherwise --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

151// false Otherwise
152// --------------------------------------------------------------------------------------
153bool Tr2DynamicRingBuffer::IsRegionUsedByGpu( BufferRegion& region, Tr2RenderContext& renderContext )
154{
155 if( !region.fence )
156 {
157 return false;
158 }
159
160 bool isReached = false;
161 return FAILED( region.fence->IsReached( isReached, renderContext ) ) || !isReached;
162}
163
164// --------------------------------------------------------------------------------------
165// Description:

Callers

nothing calls this directly

Calls 1

IsReachedMethod · 0.45

Tested by

no test coverage detected