mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-23 19:54:16 +01:00
Removed the old decoder and the old shader compiler and added documentation to the new structures.
39 lines
704 B
C++
39 lines
704 B
C++
#pragma once
|
|
|
|
#include "dxbc_common.h"
|
|
#include "dxbc_decoder.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;
|
|
}
|
|
|
|
DxbcCodeSlice slice() const {
|
|
return DxbcCodeSlice(m_code.data(),
|
|
m_code.data() + m_code.size());
|
|
}
|
|
|
|
private:
|
|
|
|
DxbcProgramVersion m_version;
|
|
std::vector<uint32_t> m_code;
|
|
|
|
};
|
|
|
|
} |