-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |