diff options
author | quou <quou@disroot.org> | 2025-02-09 18:49:00 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-02-09 18:51:30 +1100 |
commit | 8c644dd120c63244f4b576b45cd4ae96842736f8 (patch) | |
tree | 6074b73b48f391634f6b8fd431d2391de3a2dbfc /editor.cpp | |
parent | df87506693471686140282e79f5513dfc27a7854 (diff) |
support for structured buffers
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); |