Fix incorrect bits in format feature detection

This commit is contained in:
mittorn 2024-12-09 18:11:26 +00:00
parent d098f600b2
commit c85a4ea2e3

View file

@ -208,7 +208,8 @@ struct ReconstructionSource
$(semaphoreType) = VK_SEMAPHORE_TYPE_TIMELINE_KHR,
$(initialValue) = 4)
), vkCreateSemaphore(dev.device, &ref, NULL, &outputSemaphore));
bool needTransfer = !(props.linearTilingFeatures & (USE_SAMPLER?VK_IMAGE_USAGE_SAMPLED_BIT:VK_IMAGE_USAGE_STORAGE_BIT));
bool needTransfer = !(props.linearTilingFeatures & (USE_SAMPLER?VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT:VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT));
printf("needTransfer %d\n", needTransfer);
if(needTransfer)
{
if(cpyQueue == dev.defaultQueue)