refactor: fix some static analysis errors
This commit is contained in:
		
							parent
							
								
									3066153d6c
								
							
						
					
					
						commit
						bd8a111607
					
				
					 4 changed files with 12 additions and 17 deletions
				
			
		|  | @ -10,15 +10,16 @@ Pass::Pass( | |||
|     const lt::assets::ShaderAsset &vertex_shader, | ||||
|     const lt::assets::ShaderAsset &fragment_shader | ||||
| ) | ||||
|     : m_device(static_cast<Device *>(device)), m_layout(m_device->create_pipeline_layout( | ||||
| 	    VkPipelineLayoutCreateInfo { | ||||
| 	        .sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, | ||||
| 	        .setLayoutCount = 0u, | ||||
| 	        .pSetLayouts = nullptr, | ||||
| 	        .pushConstantRangeCount = 0u, | ||||
| 	        .pPushConstantRanges = nullptr, | ||||
| 	    } | ||||
| 	)) | ||||
|     : m_device(static_cast<Device *>(device)) | ||||
|     , m_layout(m_device->create_pipeline_layout( | ||||
|           VkPipelineLayoutCreateInfo { | ||||
|               .sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, | ||||
|               .setLayoutCount = 0u, | ||||
|               .pSetLayouts = nullptr, | ||||
|               .pushConstantRangeCount = 0u, | ||||
|               .pPushConstantRanges = nullptr, | ||||
|           } | ||||
|       )) | ||||
| { | ||||
| 	auto *vertex_module = create_module( | ||||
| 	    vertex_shader.unpack(lt::assets::ShaderAsset::BlobTag::code) | ||||
|  | @ -112,7 +113,6 @@ Pass::Pass( | |||
| 	}; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	auto attachment_description = VkAttachmentDescription { | ||||
| 		.format = static_cast<Swapchain *>(swapchain)->get_format(), | ||||
| 		.samples = VK_SAMPLE_COUNT_1_BIT, | ||||
|  |  | |||
|  | @ -46,8 +46,7 @@ System::System(CreateInfo info) | |||
| 	) }; | ||||
| } | ||||
| 
 | ||||
| System::~System() | ||||
| = default; | ||||
| System::~System() = default; | ||||
| 
 | ||||
| void System::on_register() | ||||
| { | ||||
|  |  | |||
|  | @ -14,7 +14,6 @@ | |||
| #include <cfenv> | ||||
| #include <cfloat> | ||||
| #include <cinttypes> | ||||
| #include <ciso646> | ||||
| #include <climits> | ||||
| #include <clocale> | ||||
| #include <cmath> | ||||
|  |  | |||
|  | @ -4,10 +4,7 @@ | |||
| 
 | ||||
| namespace lt::surface { | ||||
| 
 | ||||
| System::System( | ||||
|     memory::Ref<ecs::Registry> registry, | ||||
|     memory::Ref<app::EventMediator> event_mediator | ||||
| ) | ||||
| System::System(memory::Ref<ecs::Registry> registry, memory::Ref<app::EventMediator> event_mediator) | ||||
|     : m_registry(std::move(registry)) | ||||
|     , m_event_mediator(std::move(event_mediator)) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue