From 28a01ca9545ace7e44f9dda6ddbb52af59f649cd Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 14 Sep 2024 19:32:31 +0200 Subject: [PATCH] gpu: Print some tex rects in verbose output In the colorize and texture ops, print the tex rect. This is useful because when adding new features with textures (like atlas usage), these are the ops that I use for testing. --- gsk/gpu/gskgpucolorizeop.c | 1 + gsk/gpu/gskgputextureop.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gsk/gpu/gskgpucolorizeop.c b/gsk/gpu/gskgpucolorizeop.c index cef2a1b507..ebaace467c 100644 --- a/gsk/gpu/gskgpucolorizeop.c +++ b/gsk/gpu/gskgpucolorizeop.c @@ -24,6 +24,7 @@ gsk_gpu_colorize_op_print_instance (GskGpuShaderOp *shader, gsk_gpu_print_rect (string, instance->rect); gsk_gpu_print_image (string, shader->images[0]); + gsk_gpu_print_rect (string, instance->tex_rect); gsk_gpu_print_rgba (string, instance->color); } diff --git a/gsk/gpu/gskgputextureop.c b/gsk/gpu/gskgputextureop.c index ed5db59e77..01ff7c743d 100644 --- a/gsk/gpu/gskgputextureop.c +++ b/gsk/gpu/gskgputextureop.c @@ -24,6 +24,7 @@ gsk_gpu_texture_op_print_instance (GskGpuShaderOp *shader, gsk_gpu_print_rect (string, instance->rect); gsk_gpu_print_image (string, shader->images[0]); + gsk_gpu_print_rect (string, instance->tex_rect); } static const GskGpuShaderOpClass GSK_GPU_TEXTURE_OP_CLASS = {