Skip to content

Commit 1877575

Browse files
committed
Remove outdated comment.
1 parent e9add60 commit 1877575

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

include/nbl/asset/IDescriptorSetLayout.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,6 @@ enum E_DESCRIPTOR_TYPE : uint8_t
5858
layout(set = N, binding = M) TYPE name[K];
5959
\code
6060
61-
The following example shows how to set up one SBinding to create
62-
a basic DescriptorSetLayout with above formula:
63-
64-
\code{.cpp}
65-
// We will use set N, binding M and count K and descriptor type X
66-
67-
asset::ICPUDescriptorSetLayout::SBinding binding;
68-
binding.count = K;
69-
binding.binding = M;
70-
binding.stageFlags = static_cast<asset::ICPUSpecializedShader::E_SHADER_STAGE>(asset::ICPUSpecializedShader::ESS_VERTEX | asset::ICPUSpecializedShader::ESS_FRAGMENT);
71-
binding.type = X; // It might be an asset::EDT_UNIFORM_BUFFER for instance
72-
auto descriptorSetLayout = core::make_smart_refctd_ptr<asset::ICPUDescriptorSetLayout>(&binding, &binding + 1);
73-
74-
// Assuming that set N = 1, you execute std::move() one second constructor's field of available descriptor set layouts
75-
auto pipelineLayout = core::make_smart_refctd_ptr<asset::ICPUPipelineLayout>(nullptr, nullptr, nullptr, std::move(descriptorSetLayout), nullptr, nullptr);
76-
\code
77-
7861
@see IReferenceCounted
7962
*/
8063

0 commit comments

Comments
 (0)