]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/spirvwriter.h
Use standard fixed-size integer types
[libs/gl.git] / source / glsl / spirvwriter.h
index 94f44e8883971299e73bc0649791f0a52ef6f3a5..95db13c173ec11c819fe4ec5453546c67d82527d 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <string>
 #include <vector>
-#include <msp/core/inttypes.h>
+#include <cstdint>
 #include "spirvconstants.h"
 
 namespace Msp {
@@ -12,7 +12,7 @@ namespace SL {
 
 struct SpirVContent
 {
-       typedef UInt32 Word;
+       typedef std::uint32_t Word;
 
        std::vector<Word> code;
        std::vector<Word> capabilities;
@@ -64,7 +64,7 @@ public:
        bool has_current_block() const { return current_block_id; }
        void begin_function_body(Id);
        void end_function_body();
-       void finalize(Id);
+       void finalize(unsigned, Id);
 };
 
 } // namespace SL