Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/ShaderCooker/ShaderCooker/ShaderCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ namespace ShaderCooker
}
else if (_stageInfo.stage == Stage::COMPILATION)
{
ShaderCooker::SlangBridge slangBridge(_sourceDirPath);

for (Shader& shader : _shaders)
{
if (!shader.hasResolvedIncludes)
Expand All @@ -269,8 +271,6 @@ namespace ShaderCooker
continue;
}

ShaderCooker::SlangBridge slangBridge(_sourceDirPath);

// Figure out the actual permutations
u32 numPermutationGroups = static_cast<u32>(shader.permutationGroups.size());

Expand Down
2 changes: 1 addition & 1 deletion Source/ShaderCooker/ShaderCooker/SlangBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace ShaderCooker

SlangBridge::~SlangBridge()
{

delete static_cast<SlangBridgeData*>(_data);
}

void SlangBridge::AddDefine(const std::string& name, const std::string& value)
Expand Down
Loading