Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/roles/     Datei vom 1.9.2026 mit Größe 580 B image not shown  

SSL gskgpuconvert.glsl  Sprache: unbekannt

 
Spracherkennung für: .glsl vermutete Sprache: Lisp {Lisp[38] Masm[38] Apollo[12]} [Methode: maximale Elemente, drei Dimensionen]

#ifdef GSK_PREAMBLE
textures = 1;
ccs_premultiplied = argument;
acs_premultiplied = true;

graphene_rect_t bounds;
graphene_rect_t tex_rect;
float opacity;
#endif /* GSK_PREAMBLE */

#include "gskgpuconvertinstance.glsl"

PASS(0) vec2 _pos;
PASS_FLAT(1) Rect _bounds;
PASS(2) vec2 _tex_coord;
PASS_FLAT(3) float _opacity;

#ifdef GSK_VERTEX_SHADER

void
run (out vec2 pos)
{
  Rect b = rect_from_gsk (in_bounds);

  pos = rect_get_position (b);

  _pos = pos;
  _bounds= b;
  _tex_coord = rect_get_coord (rect_from_gsk (in_tex_rect), pos);
  _opacity = in_opacity;
}

#endif



#ifdef GSK_FRAGMENT_SHADER

void
run (out vec4 color,
     out vec2 position)
{
  vec4 pixel = gsk_texture0 (_tex_coord);

  pixel = output_color_from_alt (pixel);

  float alpha = rect_coverage (_bounds, _pos) * _opacity;

  color = output_color_alpha (pixel, alpha);

  position = _pos;
}

#endif

[Verzeichnis aufwärts0.132unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-10-21]