Skip to content

Commit

Permalink
mesh shaders in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Aug 21, 2022
1 parent 203ab2d commit 532a8b2
Show file tree
Hide file tree
Showing 10 changed files with 872 additions and 567 deletions.
1,009 changes: 716 additions & 293 deletions Engine/gapi/spirv/meshconverter.cpp

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions Engine/gapi/spirv/meshconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class MeshConverter {
explicit MeshConverter(libspirv::MutableBytecode& code);
libspirv::MutableBytecode& vertexPassthrough() { return vert; }

void exec();
void generateVs();
void exec();

private:
void avoidReservedFixup();
Expand All @@ -30,6 +29,13 @@ class MeshConverter {

void vsTypeRemaps(libspirv::MutableBytecode::Iterator& fn, std::unordered_map<uint32_t, uint32_t>& typeRemaps,
const libspirv::Bytecode::AccessChain* ids, uint32_t len);
uint32_t mappingTable(libspirv::MutableBytecode::Iterator& fn, uint32_t arrType, uint32_t eltType);
uint32_t declareGlPerVertex(libspirv::MutableBytecode::Iterator& fn);

void generateVsDefault();
void generateVsSplit();

void annotateVertexBuiltins(libspirv::MutableBytecode& vert, uint32_t idVertexIndex, uint32_t glPerVertexT);

libspirv::MutableBytecode& code;
ShaderAnalyzer an;
Expand Down
Loading

0 comments on commit 532a8b2

Please sign in to comment.