Skip to content

Commit 2c46f2d

Browse files
author
devsh
committed
Correct indentation in SubAllocDescriptorSetRange and do small touch ups due to changed APIs
1 parent 3ac2a89 commit 2c46f2d

File tree

3 files changed

+329
-318
lines changed

3 files changed

+329
-318
lines changed

include/nbl/asset/IDescriptorSet.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ class IDescriptorSet : public virtual core::IReferenceCounted // TODO: try to re
8585
info.buffer.offset = range.offset;
8686
info.buffer.size = range.size;
8787
}
88+
template<typename ImageType>
89+
SDescriptorInfo(const core::smart_refctd_ptr<IImageView<ImageType>>& image, const IImage::LAYOUT layout, const core::smart_refctd_ptr<typename layout_t::sampler_type>& sampler={}) : desc()
90+
{
91+
desc = image;
92+
info.image.imageLayout = layout;
93+
info.combinedImageSampler.sampler = sampler;
94+
}
8895
SDescriptorInfo(const SDescriptorInfo& other) : SDescriptorInfo()
8996
{
9097
operator=(other);

0 commit comments

Comments
 (0)