Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aras-p/glsl-optimizer
/ functions
Functions
1,941 in github.com/aras-p/glsl-optimizer
⨍
Functions
1,941
◇
Types & classes
790
↓ 1 callers
Method
process
src/glsl/link_uniforms.cpp:59
↓ 1 callers
Function
process_array_size
* Evaluate the given exec_node (which should be an ast_node representing * a single array dimension) and return its integer value. */
src/glsl/ast_to_hir.cpp:1886
↓ 1 callers
Function
process_assignment
* Adds an entry to the available copy list if it's a plain assignment * of a variable to a variable. */
src/glsl/opt_dead_code_local.cpp:163
↓ 1 callers
Function
process_initializer
* Generate the IR for an initializer in a variable declaration */
src/glsl/ast_to_hir.cpp:2995
↓ 1 callers
Function
process_vec_mat_constructor
src/glsl/ast_function.cpp:723
↓ 1 callers
Method
qualifiers_match
src/glsl/ir.cpp:1762
↓ 1 callers
Function
ralloc_autofree_context
src/util/ralloc.c:294
↓ 1 callers
Function
ralloc_set_destructor
src/util/ralloc.c:304
↓ 1 callers
Function
ralloc_strndup
src/util/ralloc.c:327
↓ 1 callers
Function
range_intersection
Returns a range so that lower limit is the larger of the two lower limits, * and higher limit is the smaller of the two higher limits. */
src/glsl/opt_minmax.cpp:250
↓ 1 callers
Function
read_atom
src/glsl/s_expression.cpp:57
↓ 1 callers
Method
record_reference
* Record the fact that the given loop variable was referenced inside the loop. * * \arg in_assignee is true if the reference was on the LHS of an as
src/glsl/loop_analysis.cpp:49
↓ 1 callers
Function
relational_result_type
src/glsl/ast_to_hir.cpp:583
↓ 1 callers
Method
release
src/glsl/builtin_functions.cpp:771
↓ 1 callers
Method
release
src/node/compiler.cpp:22
↓ 1 callers
Method
release
src/node/shader.cpp:31
↓ 1 callers
Function
remap_variables
* Remap variables referenced in an instruction tree * * This is used when instruction trees are cloned from one shader and placed in * another. Th
src/glsl/linker.cpp:1005
↓ 1 callers
Function
remove_line_continuations
Remove any line continuation characters in the shader, (whether in * preprocessing directives or in GLSL code). */
src/glsl/glcpp/pp.c:112
↓ 1 callers
Function
reserve_explicit_locations
* Initializes explicit location slots to INACTIVE_UNIFORM_EXPLICIT_LOCATION * for a variable, checks for overlaps between other uniforms using explic
src/glsl/linker.cpp:2375
↓ 1 callers
Function
rsq
src/glsl/ir_builder.cpp:307
↓ 1 callers
Method
run
src/glsl/lower_named_interface_blocks.cpp:90
↓ 1 callers
Function
rzalloc_array_size
src/util/ralloc.c:190
↓ 1 callers
Function
rzalloc_size
src/util/ralloc.c:131
↓ 1 callers
Method
sampler_index
src/glsl/glsl_types.cpp:200
↓ 1 callers
Function
saveFile
contrib/glslopt/Main.cpp:56
↓ 1 callers
Method
set_and_process
src/glsl/link_uniforms.cpp:409
↓ 1 callers
Method
set_num_state_slots
src/glsl/ir.h:557
↓ 1 callers
Function
set_sampler_binding
src/glsl/link_uniform_initializers.cpp:97
↓ 1 callers
Function
set_shader_inout_layout
src/glsl/glsl_parser_extras.cpp:1374
↓ 1 callers
Function
set_uniform_initializer
src/glsl/link_uniform_initializers.cpp:157
↓ 1 callers
Function
sin
src/glsl/ir_builder.cpp:289
↓ 1 callers
Function
single_channel_write_mask
* Returns whether the write mask is a single channel. */
src/glsl/opt_vectorize.cpp:214
↓ 1 callers
Method
storage_type_needs_lowering
src/glsl/lower_variable_index_to_cond_assign.cpp:356
↓ 1 callers
Function
store_fragdepth_layout
* Store the gl_FragDepth layout in the gl_shader_program struct. */
src/glsl/linker.cpp:2204
↓ 1 callers
Method
store_locations
* Update the producer and consumer shaders to reflect the locations * assignments that were made by varying_matches::assign_locations(). */
src/glsl/link_varyings.cpp:920
↓ 1 callers
Function
store_tfeedback_info
* Store transform feedback location assignments into * prog->LinkedTransformFeedback based on the data stored in tfeedback_decls. * * If an error o
src/glsl/link_varyings.cpp:602
↓ 1 callers
Function
term
contrib/glslopt/Main.cpp:30
↓ 1 callers
Function
tex3d
True if sampler3D exists */
src/glsl/builtin_functions.cpp:361
↓ 1 callers
Function
tree_to_vine
The DSW algorithm generates a degenerate tree (really, a linked list) in * tree_to_vine(). We'd rather not leave a binary expression with only one *
src/glsl/opt_rebalance_tree.cpp:70
↓ 1 callers
Function
truncf
src/mesa/main/imports.h:130
↓ 1 callers
Function
try_print_increment
Try to print (X = X + const) as (X += const), mostly to satisfy OpenGL ES 2.0 loop syntax restrictions.
src/glsl/ir_print_glsl_visitor.cpp:1172
↓ 1 callers
Function
try_print_increment
Try to print (X = X + const) as (X += const), mostly to satisfy OpenGL ES 2.0 loop syntax restrictions.
src/glsl/ir_print_metal_visitor.cpp:1511
↓ 1 callers
Function
try_replace_with_dot
Recognize (v.x + v.y) + (v.z + v.w) as dot(v, 1.0) */
src/glsl/opt_algebraic.cpp:171
↓ 1 callers
Function
try_tree_grafting
src/glsl/opt_tree_grafting.cpp:324
↓ 1 callers
Method
try_vectorize
* Attempt to vectorize the previously saved assignments, and clear them from * consideration. * * If the assignments are able to be combined, it mo
src/glsl/opt_vectorize.cpp:177
↓ 1 callers
Function
unsafe_free
src/util/ralloc.c:240
↓ 1 callers
Function
update_array_sizes
* Update the sizes of linked shader uniform arrays to the maximum * array index used. * * From page 81 (page 95 of the PDF) of the OpenGL 2.1 spec:
src/glsl/linker.cpp:1790
↓ 1 callers
Function
update_max_array_access
* If \c ir is a reference to an array for which we are tracking the max array * element accessed, track that the given element has been accessed. *
src/glsl/ast_array_index.cpp:51
↓ 1 callers
Method
uses_end_primitive
src/glsl/linker.cpp:336
↓ 1 callers
Method
uses_streams
src/glsl/linker.cpp:331
↓ 1 callers
Function
v130
src/glsl/builtin_functions.cpp:119
↓ 1 callers
Function
validate_binding_qualifier
src/glsl/ast_to_hir.cpp:2090
↓ 1 callers
Function
validate_explicit_location
src/glsl/ast_to_hir.cpp:2206
↓ 1 callers
Function
validate_fragment_shader_executable
* Verify that a fragment shader executable meets all semantic requirements * * \param shader Fragment shader executable to be verified */
src/glsl/linker.cpp:591
↓ 1 callers
Function
validate_geometry_shader_emissions
* Check if geometry shaders emit to non-zero streams and do corresponding * validations. */
src/glsl/linker.cpp:636
↓ 1 callers
Function
validate_geometry_shader_executable
* Verify that a geometry shader executable meets all semantic requirements * * Also sets prog->Geom.VerticesIn, prog->Geom.UsesClipDistance, and *
src/glsl/linker.cpp:618
↓ 1 callers
Function
validate_interstage_inout_blocks
src/glsl/link_interface_blocks.cpp:310
↓ 1 callers
Function
validate_interstage_uniform_blocks
src/glsl/link_interface_blocks.cpp:351
↓ 1 callers
Function
validate_intrastage_interface_blocks
src/glsl/link_interface_blocks.cpp:249
↓ 1 callers
Function
validate_vertex_shader_executable
* Verify that a vertex shader executable meets all semantic requirements. * * Also sets prog->Vert.UsesClipDistance and prog->Vert.ClipDistanceArray
src/glsl/linker.cpp:532
↓ 1 callers
Method
value
src/glsl/s_expression.h:99
↓ 1 callers
Function
vasprintf_rewrite_tail
src/glsl/ir_print_glsl_visitor.h:77
↓ 1 callers
Function
verify_image_parameter
src/glsl/ast_function.cpp:145
↓ 1 callers
Function
verify_parameter_modes
* Verify that 'out' and 'inout' actual parameters are lvalues. Also, verify * that 'const_in' formal parameters (an extension in our IR) correspond
src/glsl/ast_function.cpp:202
↓ 1 callers
Function
vine_to_tree
src/glsl/opt_rebalance_tree.cpp:115
↓ 1 callers
Function
visit_exec_list
src/glsl/ir.cpp:1829
↓ 1 callers
Method
visit_general
src/glsl/loop_analysis.cpp:655
↓ 1 callers
Function
write_mask_matches_swizzle
* Returns whether a single-channeled write mask matches a swizzle. */
src/glsl/opt_vectorize.cpp:238
↓ 1 callers
Function
yy_pop_state
src/glsl/glcpp/glcpp-lex.c:2483
↓ 1 callers
Function
yy_push_state
src/glsl/glcpp/glcpp-lex.c:2458
↓ 1 callers
Function
yy_top_state
src/glsl/glcpp/glcpp-lex.c:2492
↓ 1 callers
Function
yy_try_NUL_trans
yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */
src/glsl/glsl_lexer.cpp:3245
↓ 1 callers
Function
yy_try_NUL_trans
yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */
src/glsl/glcpp/glcpp-lex.c:1964
Function
COPY_4FV
Copy a 4-element float vector */
src/mesa/main/macros.h:274
Function
COPY_4UBV
Copy a 4-element unsigned byte vector */
src/mesa/main/macros.h:262
Function
COPY_CLEAN_4V_TYPE_AS_FLOAT
Copy \p sz elements into a homegeneous (4-element) vector, giving * default values to the remaining components. * The default values are chosen base
src/mesa/main/macros.h:618
Function
CPU_TO_LE32
src/mesa/main/compiler.h:154
Function
CROSS3
Cross product of two 3-element vectors */
src/mesa/main/macros.h:729
Method
Compiler
src/node/compiler.cpp:8
Function
DIFFERENT_SIGNS
Test two floats have opposite signs */
src/mesa/main/macros.h:799
Function
DOT4
src/mesa/main/macros.h:751
Function
DeleteFile
tests/glsl_optimizer_tests.cpp:413
Function
DeleteShader
src/glsl/glsl_optimizer.cpp:19
Function
FLT_AS_UINT
src/mesa/main/macros.h:183
Function
F_TO_I
* Convert float to int using a fast method. The rounding mode may vary. */
src/mesa/main/imports.h:260
Function
ICEIL
Return (as an integer) ceiling of float */
src/mesa/main/imports.h:314
Function
IFLOOR
Return (as an integer) floor of float */
src/mesa/main/imports.h:282
Function
INTERP_3F
src/mesa/main/macros.h:650
Function
INTERP_4F
src/mesa/main/macros.h:658
Function
IROUND_POS
* Convert positive float to int by rounding to nearest integer. */
src/mesa/main/imports.h:247
Function
InitAll
src/node/binding.cpp:9
Function
LEN_2FV
src/mesa/main/macros.h:777
Function
LEN_3FV
src/mesa/main/macros.h:771
Function
LOG2
*** LOG2: Log base 2 of float ***/
src/mesa/main/imports.h:164
Function
NAN_METHOD
src/node/compiler.cpp:34
Function
NAN_METHOD
src/node/shader.cpp:64
Method
NAN_MODULE_INIT
src/node/compiler.h:10
Method
NAN_MODULE_INIT
src/node/shader.h:13
Function
NORMALIZE_3FV
Normalize a 3-element vector to unit length. */
src/mesa/main/macros.h:785
Function
S_FIXED
* Convert a floating point value to an signed fixed point value. * * \param frac_bits The number of bits used to store the fractional part. */
src/mesa/main/macros.h:207
← previous
next →
901–1,000 of 1,941, ranked by callers