Fix incorrect bits in format feature detection
This commit is contained in:
parent
d098f600b2
commit
c85a4ea2e3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue