1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 16:08:50 +01:00
dxvk/src/dxso/dxso_analysis.h

37 lines
591 B
C
Raw Normal View History

#pragma once
#include "dxso_modinfo.h"
#include "dxso_decoder.h"
namespace dxvk {
struct DxsoAnalysisInfo {
uint32_t bytecodeByteLength;
bool usesDerivatives = false;
bool usesKill = false;
};
class DxsoAnalyzer {
public:
DxsoAnalyzer(
DxsoAnalysisInfo& analysis);
/**
* \brief Processes a single instruction
* \param [in] ins The instruction
*/
void processInstruction(
const DxsoInstructionContext& ctx);
void finalize(size_t tokenCount);
private:
DxsoAnalysisInfo* m_analysis = nullptr;
};
}