2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-04-07 12:18:40 +00:00

chore: add logic for computing precompiled index on material pass

This commit is contained in:
Jan Laupetin
2026-03-02 22:07:55 +00:00
parent 925e51cb10
commit 1611c222cc
10 changed files with 291 additions and 12 deletions

View File

@@ -280,12 +280,14 @@ namespace techset
std::string stateMap,
CommonTechniqueShader vertexShader,
CommonTechniqueShader pixelShader,
CommonVertexDeclaration vertexDeclaration)
CommonVertexDeclaration vertexDeclaration,
std::string comment)
: m_sampler_flags(samplerFlags),
m_state_map(std::move(stateMap)),
m_vertex_shader(std::move(vertexShader)),
m_pixel_shader(std::move(pixelShader)),
m_vertex_declaration(std::move(vertexDeclaration))
m_vertex_declaration(std::move(vertexDeclaration)),
m_comment(std::move(comment))
{
}

View File

@@ -283,7 +283,8 @@ namespace techset
std::string stateMap,
CommonTechniqueShader vertexShader,
CommonTechniqueShader pixelShader,
CommonVertexDeclaration vertexDeclaration);
CommonVertexDeclaration vertexDeclaration,
std::string comment);
[[nodiscard]] FrequencyCounts_t GetFrequencyCounts(const CommonCodeSourceInfos& infos) const;
@@ -292,6 +293,7 @@ namespace techset
CommonTechniqueShader m_vertex_shader;
CommonTechniqueShader m_pixel_shader;
CommonVertexDeclaration m_vertex_declaration;
std::string m_comment;
std::vector<CommonShaderArg> m_args;
};