add letter-/pillar- boxing for aspect ratios outside fo the defined min/max
buildbot/windows Build done.
buildbot/linux Build done.

This commit is contained in:
Sven Balzer
2026-08-08 17:18:59 +02:00
parent b410136b83
commit 2faee35680
4 changed files with 31 additions and 3 deletions
+4
View File
@@ -333,6 +333,10 @@ void renderer_frame_set_shader(R_Shader shader) {
current_shader = shader;
}
void renderer_frame_set_viewport(float x, float y, float width, float height, float min_depth, float max_depth) {
wgpuRenderPassEncoderSetViewport(pass_encoder, x, y, width, height, min_depth, max_depth);
}
void renderer_frame_draw(R_Buffer vertex_buffer, R_Buffer index_buffer, R_Buffer instance_buffer, Uint32 num_indices, Uint32 num_instances, const R_Draw_Resources *resources) {
SDL_assert(pass_encoder);