mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 11:18:29 +12:00
23 lines
552 B
C++
23 lines
552 B
C++
#pragma once
|
|
|
|
#include "Cafe/HW/Latte/Core/LatteQueryObject.h"
|
|
|
|
#include "Cafe/HW/Latte/Renderer/Metal/MetalCommon.h"
|
|
|
|
class LatteQueryObjectMtl : public LatteQueryObject
|
|
{
|
|
public:
|
|
LatteQueryObjectMtl(class MetalRenderer* mtlRenderer) : m_mtlr{mtlRenderer} {}
|
|
~LatteQueryObjectMtl();
|
|
|
|
bool getResult(uint64& numSamplesPassed) override;
|
|
void begin() override;
|
|
void end() override;
|
|
|
|
private:
|
|
class MetalRenderer* m_mtlr;
|
|
|
|
uint32 m_queryIndex = INVALID_UINT32;
|
|
// TODO: make this a list of command buffers
|
|
MTL::CommandBuffer* m_commandBuffer;
|
|
};
|