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.
This commit is contained in:
Benjamin Otte 2024-09-14 19:32:31 +02:00
parent efd5395ecf
commit 28a01ca954
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

@ -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 = {