mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +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";
|
||||
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();
|
||||
DumpVertexShader(pass);
|
||||
DumpPixelShader(pass);
|
||||
@ -426,8 +438,20 @@ namespace IW4
|
||||
|
||||
void DumpTechnique(const MaterialTechnique* technique)
|
||||
{
|
||||
Indent();
|
||||
m_stream << "// TECHNIQUE FLAGS: 0x" << std::hex << technique->flags << "\n";
|
||||
#ifdef TECHSET_DEBUG
|
||||
if(technique->flags)
|
||||
{
|
||||
for(auto i = 0u; i < 16; i++)
|
||||
{
|
||||
const auto mask = 1u << i;
|
||||
if(technique->flags & mask)
|
||||
{
|
||||
Indent();
|
||||
m_stream << "// TECHNIQUE FLAGS: 0x" << std::hex << mask << "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
for (auto i = 0u; i < technique->passCount; i++)
|
||||
DumpPass(technique->passArray[i]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user