2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-17 07:21:43 +00:00

chore: move ShaderDumpingZoneState to non-game specific code

This commit is contained in:
Jan Laupetin
2025-11-15 19:21:43 +00:00
parent 930b116ac0
commit f1485fa230
4 changed files with 55 additions and 47 deletions
@@ -0,0 +1,31 @@
#include "ShaderDumpingZoneState.h"
namespace techset
{
bool ShaderDumpingZoneState::ShouldDumpTechnique(const void* technique)
{
if (m_dumped_techniques.contains(technique))
return false;
m_dumped_techniques.emplace(technique);
return true;
}
bool ShaderDumpingZoneState::ShouldDumpVertexShader(const void* vertexShader)
{
if (m_dumped_vertex_shaders.contains(vertexShader))
return false;
m_dumped_vertex_shaders.emplace(vertexShader);
return true;
}
bool ShaderDumpingZoneState::ShouldDumpPixelShader(const void* pixelShader)
{
if (m_dumped_pixel_shaders.contains(pixelShader))
return false;
m_dumped_pixel_shaders.emplace(pixelShader);
return true;
}
} // namespace techset