mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
54ed8f0bb0
Co-authored-by: Philip Rebohle <philip.rebohle@tu-dortmund.de> Co-authored-by: Robin Kertels <robin.kertels@gmail.com> Co-authored-by: pchome <pchome@users.noreply.github.com> Co-authored-by: Christopher Egert <cme3000@gmail.com> Co-authored-by: Derek Lesho <dereklesho52@Gmail.com> Co-authored-by: Luis Cáceres <lacaceres97@gmail.com> Co-authored-by: Nelson Chen <crazysim@gmail.com> Co-authored-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> Co-authored-by: Riesi <riesi@opentrash.com> Co-authored-by: gbMichelle <gbmichelle.dev@gmail.com>
37 lines
591 B
C++
37 lines
591 B
C++
#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;
|
|
|
|
};
|
|
|
|
} |