mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
vulkan: Pass bounds to texture op
This way the node can do the normalization (and maybe stop doing it in the future).
This commit is contained in:
parent
f1d81bb7df
commit
e43b7902be
@ -645,7 +645,7 @@ gsk_vulkan_render_pass_add_texture_node (GskVulkanRenderPass *self,
|
||||
GSK_VULKAN_SAMPLER_DEFAULT,
|
||||
&node->bounds,
|
||||
&state->offset,
|
||||
&GRAPHENE_RECT_INIT(0, 0, 1, 1));
|
||||
&node->bounds);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@ -698,7 +698,7 @@ gsk_vulkan_render_pass_add_texture_scale_node (GskVulkanRenderPass *self,
|
||||
sampler,
|
||||
&node->bounds,
|
||||
&state->offset,
|
||||
&GRAPHENE_RECT_INIT(0, 0, 1, 1));
|
||||
&node->bounds);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -144,5 +144,5 @@ gsk_vulkan_texture_op_init (GskVulkanOp *op,
|
||||
self->image = g_object_ref (image);
|
||||
self->sampler = sampler;
|
||||
graphene_rect_offset_r (rect, offset->x, offset->y, &self->rect);
|
||||
self->tex_rect = *tex_rect;
|
||||
gsk_vulkan_normalize_tex_coords (&self->tex_rect, rect, tex_rect);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user