Blender V5.3
builtin::text::Resources Struct Reference

#include <gpu_shader_text.bsl.hh>

Public Member Functions

float texel_fetch (int index) const
float sample_glyph_bilinear (int2 glyph_size, int glyph_ofs, float2 bilin_f, float2 uv) const
float4 sample_glyph_rgba (int2 glyph_size, int glyph_ofs, float2 uv) const

Public Attributes

float4x4 ModelViewProjectionMatrix
int glyph_tex_width_mask
int glyph_tex_width_shift
sampler2D glyph
GlyphQuad(& glyphs )[]

Detailed Description

Definition at line 17 of file gpu_shader_text.bsl.hh.

Member Function Documentation

◆ sample_glyph_bilinear()

float builtin::text::Resources::sample_glyph_bilinear ( int2 glyph_size,
int glyph_ofs,
float2 bilin_f,
float2 uv ) const
inline

◆ sample_glyph_rgba()

float4 builtin::text::Resources::sample_glyph_rgba ( int2 glyph_size,
int glyph_ofs,
float2 uv ) const
inline

◆ texel_fetch()

float builtin::text::Resources::texel_fetch ( int index) const
inline

Definition at line 35 of file gpu_shader_text.bsl.hh.

References glyph, index, and texelFetch().

Referenced by sample_glyph_bilinear(), and sample_glyph_rgba().

Member Data Documentation

◆ glyph

sampler2D builtin::text::Resources::glyph

Definition at line 22 of file gpu_shader_text.bsl.hh.

Referenced by texel_fetch().

◆ glyph_tex_width_mask

int builtin::text::Resources::glyph_tex_width_mask

Definition at line 19 of file gpu_shader_text.bsl.hh.

◆ glyph_tex_width_shift

int builtin::text::Resources::glyph_tex_width_shift

Definition at line 20 of file gpu_shader_text.bsl.hh.

◆ glyphs

GlyphQuad(& builtin::text::Resources::glyphs)[]

Definition at line 24 of file gpu_shader_text.bsl.hh.

◆ ModelViewProjectionMatrix

float4x4 builtin::text::Resources::ModelViewProjectionMatrix

Definition at line 18 of file gpu_shader_text.bsl.hh.


The documentation for this struct was generated from the following file: