1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-02 13:29:14 +01:00
dxvk/src/dxbc/dxbc_chunk_shex.h

42 lines
811 B
C
Raw Normal View History

#pragma once
#include "dxbc_common.h"
#include "dxbc_instruction.h"
#include "dxbc_reader.h"
namespace dxvk {
/**
* \brief Shader code chunk
*
* Stores the DXBC shader code itself, as well
* as some meta info about the shader, i.e. what
* type of shader this is.
*/
class DxbcShex : public RcObject {
public:
DxbcShex(DxbcReader reader);
~DxbcShex();
DxbcProgramVersion version() const {
return m_version;
}
DxbcInstructionIterator begin() const {
return DxbcInstructionIterator(m_code.data());
}
DxbcInstructionIterator end() const {
return DxbcInstructionIterator(m_code.data() + m_code.size());
}
private:
DxbcProgramVersion m_version;
std::vector<uint32_t> m_code;
};
}