diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-10-16 16:56:05 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-10-16 16:56:05 +0300 |
commit | 90e45c06712c8d3e96a4aefd7cda91efea370e2f (patch) | |
tree | 6597291e5f3638646d49efd5bb457340158dde3f /dxil_parser.hpp |
Initial commit.
Diffstat (limited to 'dxil_parser.hpp')
-rw-r--r-- | dxil_parser.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dxil_parser.hpp b/dxil_parser.hpp new file mode 100644 index 0000000..cbd2d04 --- /dev/null +++ b/dxil_parser.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include <stddef.h> +#include <stdint.h> +#include <vector> + +namespace DXIL2SPIRV +{ +class MemoryStream; + +class DXILContainerParser +{ +public: + bool parse_container(const void *data, size_t size); + + const void *get_bitcode_data() const; + size_t get_bitcode_size() const; + +private: + std::vector<uint8_t> dxil_blob; + bool parse_dxil(MemoryStream &stream); +}; +}
\ No newline at end of file |