Skip to content

Commit 2581ed9

Browse files
remove dead variable
1 parent 3c82f40 commit 2581ed9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/nbl/video/utilities/IGPUObjectFromAssetConverter.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,16 +785,13 @@ auto IGPUObjectFromAssetConverter::create(const asset::ICPUImage** const _begin,
785785
const auto assetCount = std::distance(_begin, _end);
786786
auto res = core::make_refctd_dynamic_array<created_gpu_object_array<asset::ICPUImage> >(assetCount);
787787

788-
// This should be the other way round because if a queue supports either compute or graphics
789-
// but not the other way round
788+
// TODO: This should be the other way round because if a queue supports either compute or graphics but not the other way round
790789
const uint32_t transferFamIx = _params.perQueue[EQU_TRANSFER].queue->getFamilyIndex();
791790
const uint32_t computeFamIx = _params.perQueue[EQU_COMPUTE].queue ? _params.perQueue[EQU_COMPUTE].queue->getFamilyIndex() : transferFamIx;
792791

793792
bool oneQueue = _params.perQueue[EQU_TRANSFER].queue == _params.perQueue[EQU_COMPUTE].queue;
794793

795794
bool needToGenMips = false;
796-
core::vector<IGPUCommandBuffer::SImageMemoryBarrier> imgMemBarriers;
797-
imgMemBarriers.reserve(assetCount);
798795

799796
core::unordered_map<const asset::ICPUImage*, core::smart_refctd_ptr<IGPUBuffer>> img2gpubuf;
800797
for (ptrdiff_t i = 0u; i < assetCount; ++i)

0 commit comments

Comments
 (0)