Change ColumnLimit with clang-format from 120 to 160.

This commit is contained in:
asuessenbach
2022-02-28 10:11:04 +01:00
parent 89e4213296
commit 5fe410279a
127 changed files with 37432 additions and 57496 deletions

View File

@@ -45,9 +45,7 @@ namespace vk
}
}
bool GLSLtoSPV( const vk::ShaderStageFlagBits shaderType,
std::string const & glslShader,
std::vector<unsigned int> & spvShader )
bool GLSLtoSPV( const vk::ShaderStageFlagBits shaderType, std::string const & glslShader, std::vector<unsigned int> & spvShader )
{
EShLanguage stage = translateShaderStage( shaderType );
@@ -58,7 +56,7 @@ namespace vk
shader.setStrings( shaderStrings, 1 );
// Enable SPIR-V and Vulkan rules when parsing GLSL
EShMessages messages = ( EShMessages )( EShMsgSpvRules | EShMsgVulkanRules );
EShMessages messages = (EShMessages)( EShMsgSpvRules | EShMsgVulkanRules );
if ( !shader.parse( &glslang::DefaultTBuiltInResource, 100, false, messages ) )
{
@@ -86,9 +84,7 @@ namespace vk
return true;
}
vk::ShaderModule createShaderModule( vk::Device const & device,
vk::ShaderStageFlagBits shaderStage,
std::string const & shaderText )
vk::ShaderModule createShaderModule( vk::Device const & device, vk::ShaderStageFlagBits shaderStage, std::string const & shaderText )
{
std::vector<unsigned int> shaderSPV;
if ( !GLSLtoSPV( shaderStage, shaderText, shaderSPV ) )