mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/vulkan: add more 8 bits per channel formats
This commit is contained in:
		
							parent
							
								
									e31c741d2a
								
							
						
					
					
						commit
						171c9081d1
					
				
					 1 changed files with 20 additions and 0 deletions
				
			
		| 
						 | 
					@ -10,6 +10,26 @@ static const struct wlr_vk_format formats[] = {
 | 
				
			||||||
	// order compared to the DRM formats, because DRM format channel order
 | 
						// order compared to the DRM formats, because DRM format channel order
 | 
				
			||||||
	// is little-endian while Vulkan format channel order is in memory byte
 | 
						// is little-endian while Vulkan format channel order is in memory byte
 | 
				
			||||||
	// order.
 | 
						// order.
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							.drm = DRM_FORMAT_R8,
 | 
				
			||||||
 | 
							.vk = VK_FORMAT_R8_SRGB,
 | 
				
			||||||
 | 
							.is_srgb = true,
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							.drm = DRM_FORMAT_GR88,
 | 
				
			||||||
 | 
							.vk = VK_FORMAT_R8G8_SRGB,
 | 
				
			||||||
 | 
							.is_srgb = true,
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							.drm = DRM_FORMAT_RGB888,
 | 
				
			||||||
 | 
							.vk = VK_FORMAT_B8G8R8_SRGB,
 | 
				
			||||||
 | 
							.is_srgb = true,
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							.drm = DRM_FORMAT_BGR888,
 | 
				
			||||||
 | 
							.vk = VK_FORMAT_R8G8B8_SRGB,
 | 
				
			||||||
 | 
							.is_srgb = true,
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		.drm = DRM_FORMAT_ARGB8888,
 | 
							.drm = DRM_FORMAT_ARGB8888,
 | 
				
			||||||
		.vk = VK_FORMAT_B8G8R8A8_SRGB,
 | 
							.vk = VK_FORMAT_B8G8R8A8_SRGB,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue