summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui.cpp b/ui.cpp
index d142586..47c362c 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -99,6 +99,7 @@ static Texture_Id create_atlas(Device* d, Arena* a) {
d->unmap_buffer(buf);
tex = d->create_texture(
texture_format_r8i,
+ Texture_Flags::sampleable | Texture_Flags::copy_dst,
font_w,
10,
buf
@@ -267,12 +268,12 @@ void UI::render(Arena* s, Texture_Id target) {
}
}
- Pipeline_Builder pb(s);
+ Pipeline_Builder pb(s, device);
pb.begin_rp();
pb.rp_target(device->get_backbuffer(), Clear_Mode::restore);
Render_Pass& pass = pb.build_rp();
- pb.begin(device);
+ pb.begin();
pb.shader(shader);
pb.vertex_format(vertex_format);
pb.cbuffer(shader_info.config_binding, config_buf);