diff options
author | quou <quou@disroot.org> | 2024-12-29 11:28:19 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 11:28:19 +1100 |
commit | dfd95c6e29c25c3ad9acc3e63a790da866339015 (patch) | |
tree | 07a96430f287a4f5303149b97e4adde2e1f67af0 /ui.cpp | |
parent | 82c03019867ed57d35932e5eb015c7e77f8bf1ea (diff) |
seperate framebuffers and renderpasses; depth buffering.
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); |