Program Listing for File range-repeat-api-utils.h

Return to documentation for file (include\playback\range-repeat-api-utils.h)

/******************************************************************************
© Intel Corporation.

This software and the related documents are Intel copyrighted materials,
and your use of them is governed by the express license under which they
were provided to you ("License"). Unless the License provides otherwise,
you may not use, modify, copy, publish, distribute, disclose or transmit
this software or the related documents without Intel's prior written
permission.


 This software and the related documents are provided as is, with no express
or implied warranties, other than those that are expressly stated in the
License.

******************************************************************************/

#pragma once

namespace gpa {
namespace serialization {
struct GPAToken;
}  // namespace serialization

namespace playback {

class Callable;
class CallableCache;

namespace repeat {
class StreamBuilder;
}  // namespace repeat

namespace utils {

bool IsValidRepeatCall(Callable* callable);
bool IsCommandBufferCall(Callable* callable);
bool IsCommandBufferSubmissionCall(Callable* callable);
bool IsSecondaryBufferExecutionCall(Callable* callable);
bool IsSecondaryCommandBufferBoundaryMarker(Callable* callable);
bool IsCommandBufferBoundaryCall(Callable* callable);
bool IsBeginRenderPassCall(Callable* callable);
bool IsEndRenderPassCall(Callable* callable);
bool IsRenderPassBoundaryCall(Callable* callable);
bool IsSubPassBoundaryCall(Callable* callable);
bool WaitUntilQueuedSubmissionsAreCompleted(serialization::GPAToken callableToken, void* commandQueue);
void WaitUntilSubmissionIsCompleted(Callable* callable);
void EnumerateCommandBufferObjectsApiCache(Callable* jobSubmissionCall, CallableCache* cache, repeat::StreamBuilder* streamBuilder);
void EnumerateSecondaryBuffersExecutedOnCall(Callable* callable, void* callbackUserData,
                                             void (*callback)(void* secondaryCmdBuffer,
                                                              void* userData));

}  // namespace utils
}  // namespace playback
}  // namespace gpa