mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
gsk: Add getter for program id in ShaderBuilder
Since we store it into the ShaderBuilder instance we should also allow getting the program id.
This commit is contained in:
parent
8bb0c9a226
commit
12db9ee164
@ -395,3 +395,11 @@ gsk_shader_builder_get_attribute_location (GskShaderBuilder *builder,
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
gsk_shader_builder_get_program (GskShaderBuilder *builder)
|
||||
{
|
||||
g_return_val_if_fail (GSK_IS_SHADER_BUILDER (builder), -1);
|
||||
|
||||
return builder->program_id;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ int gsk_shader_builder_create_program (GskShad
|
||||
int fragment_id,
|
||||
GError **error);
|
||||
|
||||
int gsk_shader_builder_get_program (GskShaderBuilder *builder);
|
||||
int gsk_shader_builder_get_uniform_location (GskShaderBuilder *builder,
|
||||
GQuark uniform_quark);
|
||||
int gsk_shader_builder_get_attribute_location (GskShaderBuilder *builder,
|
||||
|
Loading…
Reference in New Issue
Block a user