diff options
Diffstat (limited to 'editor.cpp')
-rw-r--r-- | editor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -189,7 +189,8 @@ static void init_pso_view(UI::Element* content, const Pipeline* pso) { auto table = ui->create_element<UI::Table>(tree, rows); disp_enum(table, "Type", (int)d.type, "Texture", - "Constant Buffer" + "Constant Buffer", + "Structured Buffer" ); switch (d.type) { case Descriptor::Type::texture: { @@ -198,9 +199,10 @@ static void init_pso_view(UI::Element* content, const Pipeline* pso) { disp_val(table, "Texture ID", "%d", (int)tex.texture.index); disp_val(table, "Sampler ID", "%d", (int)tex.sampler.index); } break; - case Descriptor::Type::constant_buffer: { - Constant_Buffer_Descriptor& cb = - *(Constant_Buffer_Descriptor*)d.payload; + case Descriptor::Type::constant_buffer: + case Descriptor::Type::structured_buffer: { + Buffer_Descriptor& cb = + *(Buffer_Descriptor*)d.payload; disp_val(table, "Offset", "%d", cb.offset); disp_val(table, "Size", "%d", cb.size); disp_val(table, "Buffer ID", "%d", (int)cb.buffer.index); |