#include "libANGLE/renderer/vulkan/SecondaryCommandBuffer.h"
#include "common/debug.h"
#include "libANGLE/renderer/vulkan/vk_utils.h"
#include "libANGLE/trace.h"
namespace rx
{
namespace vk
{
namespace priv
{
namespace
{
const char *GetCommandString(CommandID id)
{ … }
template <typename T, typename StructType>
ANGLE_INLINE const T *GetFirstArrayParameter(StructType *param)
{ … }
template <typename NextT, typename PrevT>
ANGLE_INLINE const NextT *GetNextArrayParameter(const PrevT *array, size_t arrayLen)
{ … }
}
ANGLE_INLINE const CommandHeader *NextCommand(const CommandHeader *command)
{ … }
void SecondaryCommandBuffer::executeCommands(PrimaryCommandBuffer *primary)
{ … }
void SecondaryCommandBuffer::getMemoryUsageStats(size_t *usedMemoryOut,
size_t *allocatedMemoryOut) const
{ … }
void SecondaryCommandBuffer::getMemoryUsageStatsForPoolAlloc(size_t blockSize,
size_t *usedMemoryOut,
size_t *allocatedMemoryOut) const
{ … }
std::string SecondaryCommandBuffer::dumpCommands(const char *separator) const
{ … }
}
}
}