Skip to content

Commit

Permalink
[Vk] We have C++11 now, let not risk ODR violation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Golushkov committed Dec 24, 2024
1 parent dc15628 commit c849510
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions RenderSystems/Vulkan/src/OgreVulkanProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,41 +51,7 @@ THE SOFTWARE.
#if defined( __GNUC__ ) && !defined( __clang__ )
# pragma GCC diagnostic pop
#endif
#include "glslang/SPIRV/Logger.h"

// Inclusion of SPIRV headers triggers lots of C++11 errors we don't care
namespace glslang
{
struct SpvOptions
{
SpvOptions() :
generateDebugInfo( false ),
stripDebugInfo( false ),
disableOptimizer( true ),
optimizeSize( false ),
disassemble( false ),
validate( false )
{
}
bool generateDebugInfo;
bool stripDebugInfo;
bool disableOptimizer;
bool optimizeSize;
bool disassemble;
bool validate;
};

void GetSpirvVersion( std::string & );
int GetSpirvGeneratorVersion();
void GlslangToSpv( const glslang::TIntermediate &intermediate, std::vector<unsigned int> &spirv,
SpvOptions *options = 0 );
void GlslangToSpv( const glslang::TIntermediate &intermediate, std::vector<unsigned int> &spirv,
spv::SpvBuildLogger *logger, SpvOptions *options = 0 );
void OutputSpvBin( const std::vector<unsigned int> &spirv, const char *baseName );
void OutputSpvHex( const std::vector<unsigned int> &spirv, const char *baseName,
const char *varName );

} // namespace glslang
#include "glslang/SPIRV/GlslangToSpv.h"

namespace Ogre
{
Expand Down

0 comments on commit c849510

Please sign in to comment.