diff options
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |