Skip to content

Commit aae0623

Browse files
author
devsh
committed
remove cruft
1 parent d654a25 commit aae0623

File tree

3 files changed

+0
-72
lines changed

3 files changed

+0
-72
lines changed

include/nbl/asset/asset.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
#include "nbl/system/declarations.h"
1111
#include "nbl/system/definitions.h" // TODO: split `asset.h` into decl and def
1212

13-
// utils
14-
#include "nbl/asset/asset_utils.h"
15-
1613
// format
1714
#include "nbl/asset/format/EFormat.h"
1815
#include "nbl/asset/format/convertColor.h"

include/nbl/asset/asset_utils.h

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/nbl/asset/IAssetManager.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -383,24 +383,6 @@ void IAssetManager::insertBuiltinAssets()
383383
//it's intentionally added to cache later, see comments below, dont touch this order of insertions
384384
}
385385

386-
//desc sets
387-
{
388-
auto ds1 = core::make_smart_refctd_ptr<asset::ICPUDescriptorSet>(core::smart_refctd_ptr<asset::ICPUDescriptorSetLayout>(defaultDs1Layout.get()));
389-
{
390-
constexpr size_t UBO_SZ = sizeof(asset::SBasicViewParameters);
391-
auto ubo = asset::ICPUBuffer::create({ UBO_SZ });
392-
//for filling this UBO with actual data, one can use asset::SBasicViewParameters struct defined in nbl/asset/asset_utils.h
393-
asset::fillBufferWithDeadBeef(ubo.get());
394-
395-
auto descriptorInfos = ds1->getDescriptorInfos(ICPUDescriptorSetLayout::CBindingRedirect::binding_number_t(0), IDescriptor::E_TYPE::ET_UNIFORM_BUFFER);
396-
descriptorInfos.begin()[0].desc = std::move(ubo);
397-
descriptorInfos.begin()[0].info.buffer.offset = 0ull;
398-
descriptorInfos.begin()[0].info.buffer.size = UBO_SZ;
399-
}
400-
addBuiltInToCaches(ds1, "nbl/builtin/descriptor_set/basic_view_parameters");
401-
addBuiltInToCaches(defaultDs1Layout, "nbl/builtin/descriptor_set_layout/basic_view_parameters");
402-
}
403-
404386
// pipeline layout
405387
core::smart_refctd_ptr<asset::ICPUPipelineLayout> pipelineLayout;
406388
{

0 commit comments

Comments
 (0)