summaryrefslogtreecommitdiff
path: root/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor.cpp')
-rw-r--r--editor.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/editor.cpp b/editor.cpp
index 455b194..c4c18d0 100644
--- a/editor.cpp
+++ b/editor.cpp
@@ -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);