@@ -269,10 +269,10 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
269
269
smart_refctd_ptr<IGPUDescriptorSetLayout> dsLayout;
270
270
core::smart_refctd_ptr<IGPUDescriptorSet> descSets[FRAMES_IN_FLIGHT];
271
271
{
272
- nbl::video::IGPUDescriptorSetLayout::SBinding bindings[2 ] = {
272
+ const nbl::video::IGPUDescriptorSetLayout::SBinding bindings[2 ] = {
273
273
{
274
274
.binding = 0 ,
275
- .type = nbl::asset::IDescriptor::E_TYPE::ET_COMBINED_IMAGE_SAMPLER , // TODO: just an image descriptor type when separable samplers arrive
275
+ .type = nbl::asset::IDescriptor::E_TYPE::ET_SAMPLED_IMAGE , // TODO: just an image descriptor type when separable samplers arrive
276
276
.createFlags = IGPUDescriptorSetLayout::SBinding::E_CREATE_FLAGS::ECF_NONE,
277
277
.stageFlags = IGPUShader::E_SHADER_STAGE::ESS_COMPUTE,
278
278
.count = 1 ,
@@ -379,10 +379,10 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
379
379
m_histogramBufferMemPtrs[2 ] = m_histogramBufferMemPtrs[1 ] + HISTOGRAM_SIZE;
380
380
}
381
381
382
- // TODO: will no longer be necessary after separable samplers and images
383
- IGPUSampler::SParams samplerParams;
382
+ // TODO: Remove commented stuff below
383
+ /* IGPUSampler::SParams samplerParams;
384
384
samplerParams.AnisotropicFilter = false;
385
- core::smart_refctd_ptr<IGPUSampler> sampler = m_device->createSampler (samplerParams);
385
+ core::smart_refctd_ptr<IGPUSampler> sampler = m_device->createSampler(samplerParams);*/
386
386
387
387
IGPUDescriptorSet::SDescriptorInfo bufInfo;
388
388
bufInfo.desc = smart_refctd_ptr (histogramBuffer);
@@ -425,7 +425,7 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
425
425
logFailAndTerminate (" Couldn't create descriptor." );
426
426
view->setObjectDebugName ((" Image View #" +std::to_string (imageToProcessId)).c_str ());
427
427
imgInfo.desc = std::move (view);
428
- imgInfo.info .image = { .sampler = sampler , .imageLayout = IImage::LAYOUT::READ_ONLY_OPTIMAL };
428
+ imgInfo.info .image = { .sampler = nullptr , .imageLayout = IImage::LAYOUT::READ_ONLY_OPTIMAL };
429
429
430
430
IGPUDescriptorSet::SWriteDescriptorSet write[1 ] = {
431
431
{.dstSet = descSets[resourceIdx].get (), .binding = 0 , .arrayElement = 0 , .count = 1 , .info = &imgInfo }
0 commit comments