D3D11/12/WGPU: Retried refused swap chain resize. D3D12/MTL/VK/WGPU: Fatal on failed pipeline creation. (#3985)

This commit is contained in:
Branimir Karadžić
2026-09-17 07:14:56 -07:00
committed by GitHub
parent b380f0ee73
commit 5777fe1f66
8 changed files with 111 additions and 20 deletions

View File

@@ -4141,7 +4141,14 @@ VK_IMPORT_DEVICE
cpci.basePipelineHandle = VK_NULL_HANDLE;
cpci.basePipelineIndex = 0;
VK_CHECK(vkCreateComputePipelines(m_device, m_pipelineCache, 1, &cpci, m_allocatorCb, &pipeline) );
const VkResult result = vkCreateComputePipelines(m_device, m_pipelineCache, 1, &cpci, m_allocatorCb, &pipeline);
BGFX_FATAL(VK_SUCCESS == result && VK_NULL_HANDLE != pipeline
, Fatal::InvalidShader
, "Failed to create compute PSO! vkCreateComputePipelines failed %d: %s."
, result
, getName(result)
);
m_pipelineStateCache.add(hash, pipeline);
@@ -4380,14 +4387,22 @@ VK_IMPORT_DEVICE
VkPipelineCache cache;
VK_CHECK(vkCreatePipelineCache(m_device, &pcci, m_allocatorCb, &cache) );
VK_CHECK(vkCreateGraphicsPipelines(
const VkResult result = vkCreateGraphicsPipelines(
m_device
, cache
, 1
, &graphicsPipeline
, m_allocatorCb
, &pipeline
) );
);
BGFX_FATAL(VK_SUCCESS == result && VK_NULL_HANDLE != pipeline
, Fatal::InvalidShader
, "Failed to create graphics PSO! vkCreateGraphicsPipelines failed %d: %s."
, result
, getName(result)
);
m_pipelineStateCache.add(hash, pipeline);
size_t dataSize;
@@ -6900,7 +6915,8 @@ VK_DESTROY
ici.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
ici.pNext = NULL;
ici.flags = 0
| (VK_IMAGE_VIEW_TYPE_CUBE == m_type
| (VK_IMAGE_VIEW_TYPE_CUBE == m_type
|| VK_IMAGE_VIEW_TYPE_CUBE_ARRAY == m_type
? VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT
: 0
)
@@ -7999,7 +8015,7 @@ VK_DESTROY
if (VK_IMAGE_VIEW_TYPE_CUBE == _type
|| VK_IMAGE_VIEW_TYPE_CUBE_ARRAY == _type)
{
BX_ASSERT(_numLayers % 6 == 0, "");
BX_ASSERT(0 < _numLayers, "");
BX_ASSERT(false
|| VK_IMAGE_VIEW_TYPE_3D != m_type
, "3D image can't be aliased as a cube texture"