Skip to content

Commit

Permalink
Rename CompilationResult::ReflectionInfo to ::Reflection.
Browse files Browse the repository at this point in the history
  • Loading branch information
mellinoe committed Jul 28, 2019
1 parent d99e89a commit f995484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libveldrid-spirv/InteropStructs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ struct CompilationResult
{
Bool32 Succeeded;
InteropArray<InteropArray<uint8_t>> DataBuffers;
ReflectionInfo ReflectionInfo;
ReflectionInfo Reflection;

CompilationResult()
{
Expand Down
6 changes: 3 additions & 3 deletions src/libveldrid-spirv/libveldrid-spirv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ CompilationResult *CompileVertexFragment(const CrossCompileInfo &info)
result->DataBuffers[0].CopyFrom(static_cast<uint32_t>(vsText.length()), (uint8_t *)vsText.c_str());
result->DataBuffers[1].CopyFrom(static_cast<uint32_t>(fsText.length()), (uint8_t *)fsText.c_str());

ReflectVertexInfo(*vsCompiler, vsResources, result->ReflectionInfo);
result->ReflectionInfo.ResourceLayouts = CreateResourceLayoutArray(allResources, false);
ReflectVertexInfo(*vsCompiler, vsResources, result->Reflection);
result->Reflection.ResourceLayouts = CreateResourceLayoutArray(allResources, false);

delete vsCompiler;
delete fsCompiler;
Expand Down Expand Up @@ -534,7 +534,7 @@ CompilationResult *CompileCompute(const CrossCompileInfo &info)
result->DataBuffers.Resize(1);
result->DataBuffers[0].CopyFrom(static_cast<uint32_t>(csText.length()), (uint8_t *)csText.c_str());

result->ReflectionInfo.ResourceLayouts = CreateResourceLayoutArray(allResources, true);
result->Reflection.ResourceLayouts = CreateResourceLayoutArray(allResources, true);

return result;
}
Expand Down

0 comments on commit f995484

Please sign in to comment.