Skip to content

Commit

Permalink
WIP: start spirv patching
Browse files Browse the repository at this point in the history
  • Loading branch information
nyorain committed Dec 10, 2024
1 parent 2b0f361 commit cf1fb17
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/spirv.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#pragma once

#include <fwd.hpp>
#include <vector>

namespace vil::spirv {

struct Parsed {
std::vector<u32> spirv;

// See spec "2.4. Logical Layout of a Module"
// Offsets to the beginning of the respective sections.
struct {
u32 caps;
u32 exts;
u32 extInstImport;
u32 memModel;
u32 entryPoints;
u32 execMode;
u32 debug;
u32 annotations;
u32 types;
u32 funcDecls;
u32 funcDefs;
} positions;
};

} // namespace

0 comments on commit cf1fb17

Please sign in to comment.