Skip to content

Commit a664348

Browse files
committed
Update after examples-fixes merge
1 parent d717916 commit a664348

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

include/nbl/scene/ISkinInstanceCacheManager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ class NBL_API ISkinInstanceCacheManager : public virtual core::IReferenceCounted
4848

4949
video::IGPUBuffer::SCreationParams initTimestampValueBufferCreationParams = {};
5050
initTimestampValueBufferCreationParams.size = tmp.size();
51-
// initTimestampValueBufferCreationParams.usage = ; TODO: Usage should not be EUF_NONE
52-
51+
initTimestampValueBufferCreationParams.usage = core::bitflag<video::IGPUBuffer::E_USAGE_FLAGS>(video::IGPUBuffer::E_USAGE_FLAGS::EUF_TRANSFER_DST_BIT);
5352
auto initTimestampValue = utils->createFilledDeviceLocalBufferOnDedMem(uploadQueue,std::move(initTimestampValueBufferCreationParams),tmp.data());
5453
if (!initTimestampValue)
5554
return nullptr;

include/nbl/scene/ITransformTreeManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class NBL_API ITransformTreeManager : public virtual core::IReferenceCounted
138138

139139
video::IGPUBuffer::SCreationParams defaultFillValuesBufferCreationParams = {};
140140
defaultFillValuesBufferCreationParams.size = tmp.size();
141-
// defaultFillValuesBufferCreationParams.usage = ; TODO: Usage should not be EUF_NONE
141+
defaultFillValuesBufferCreationParams.usage = core::bitflag<video::IGPUBuffer::E_USAGE_FLAGS>(video::IGPUBuffer::E_USAGE_FLAGS::EUF_TRANSFER_DST_BIT);
142142
auto defaultFillValues = utils->createFilledDeviceLocalBufferOnDedMem(uploadQueue,std::move(defaultFillValuesBufferCreationParams),fillData);
143143
defaultFillValues->setObjectDebugName("ITransformTreeManager::m_defaultFillValues");
144144
tmp.resize(sizeof(uint16_t)*DebugIndexCount);
@@ -175,7 +175,7 @@ class NBL_API ITransformTreeManager : public virtual core::IReferenceCounted
175175

176176
video::IGPUBuffer::SCreationParams debugIndexBufferCreationParams = {};
177177
debugIndexBufferCreationParams.size = tmp.size();
178-
// debugIndexBufferCreationParams.usage = ; TODO: Usage should not be EUF_NONE
178+
debugIndexBufferCreationParams.usage = core::bitflag<video::IGPUBuffer::E_USAGE_FLAGS>(video::IGPUBuffer::E_USAGE_FLAGS::EUF_TRANSFER_DST_BIT);
179179
auto debugIndexBuffer = utils->createFilledDeviceLocalBufferOnDedMem(uploadQueue,std::move(debugIndexBufferCreationParams),fillData);
180180

181181
auto updateLocalDsLayout = createUpdateLocalTransformsDescriptorSetLayout(device);

0 commit comments

Comments
 (0)