Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HansKristian-Work/dxil-spirv.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-10-16 16:56:05 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-10-16 16:56:05 +0300
commit90e45c06712c8d3e96a4aefd7cda91efea370e2f (patch)
tree6597291e5f3638646d49efd5bb457340158dde3f /dxil_parser.hpp
Initial commit.
Diffstat (limited to 'dxil_parser.hpp')
-rw-r--r--dxil_parser.hpp23
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