rendervulkan: Add thread name to shader compile

This commit is contained in:
Joshua Ashton 2022-10-31 01:29:59 +00:00
parent f072cbd58b
commit f65092a441

View file

@ -1273,7 +1273,7 @@ VkPipeline CVulkanDevice::compilePipeline(uint32_t layerCount, uint32_t ycbcrMas
void CVulkanDevice::compileAllPipelines()
{
pthread_setname_np( pthread_self(), "gamescope-shdr" );
std::array<PipelineInfo_t, SHADER_TYPE_COUNT> pipelineInfos;
#define SHADER(type, layer_count, max_ycbcr, max_radius, blur_layers) pipelineInfos[SHADER_TYPE_##type] = {SHADER_TYPE_##type, layer_count, max_ycbcr, max_radius, blur_layers, false}