mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Dump technique sampler flags and technique flags
This commit is contained in:
parent
0ae5afc197
commit
9e063a30f0
@ -409,6 +409,18 @@ namespace IW4
|
|||||||
m_stream << "{\n";
|
m_stream << "{\n";
|
||||||
IncIndent();
|
IncIndent();
|
||||||
|
|
||||||
|
#ifdef TECHSET_DEBUG
|
||||||
|
for (auto i = 0u; i < 8; i++)
|
||||||
|
{
|
||||||
|
const auto mask = 1u << i;
|
||||||
|
if (pass.customSamplerFlags & mask)
|
||||||
|
{
|
||||||
|
Indent();
|
||||||
|
m_stream << "// CUSTOM SAMPLER FLAGS: 0x" << std::hex << mask << "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DumpStateMap();
|
DumpStateMap();
|
||||||
DumpVertexShader(pass);
|
DumpVertexShader(pass);
|
||||||
DumpPixelShader(pass);
|
DumpPixelShader(pass);
|
||||||
@ -426,8 +438,20 @@ namespace IW4
|
|||||||
|
|
||||||
void DumpTechnique(const MaterialTechnique* technique)
|
void DumpTechnique(const MaterialTechnique* technique)
|
||||||
{
|
{
|
||||||
|
#ifdef TECHSET_DEBUG
|
||||||
|
if(technique->flags)
|
||||||
|
{
|
||||||
|
for(auto i = 0u; i < 16; i++)
|
||||||
|
{
|
||||||
|
const auto mask = 1u << i;
|
||||||
|
if(technique->flags & mask)
|
||||||
|
{
|
||||||
Indent();
|
Indent();
|
||||||
m_stream << "// TECHNIQUE FLAGS: 0x" << std::hex << technique->flags << "\n";
|
m_stream << "// TECHNIQUE FLAGS: 0x" << std::hex << mask << "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
for (auto i = 0u; i < technique->passCount; i++)
|
for (auto i = 0u; i < technique->passCount; i++)
|
||||||
DumpPass(technique->passArray[i]);
|
DumpPass(technique->passArray[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user