FastUIDraw
Classes | Macros | Functions
fastuidraw_atlas_image_fetch.glsl.hpp File Reference

file fastuidraw_atlas_image_fetch.glsl.hpp More...

Go to the source code of this file.

Classes

struct  fastuidraw_compute_image_atlas_coord_type
 Structure to give information about what tile and where within a tile an image texel is located. Only available if FASTUIDRAW_IMAGE_ATLAS_DISABLED is not defined. More...
 
struct  fastuidraw_image_extended_info_type
 Structure that fully describes a fastuidraw::Image or a sub-image of one. Only available if FASTUIDRAW_IMAGE_ATLAS_DISABLED is not defined. More...
 
struct  fastuidraw_image_info_type
 Structure that describes the relationship between the master index tile and the color tiles of an image. Only available if FASTUIDRAW_IMAGE_ATLAS_DISABLED is not defined. More...
 
struct  fastuidraw_image_texture_gather_output_type
 Structure that holds the 2x2 texel block. Only available if FASTUIDRAW_IMAGE_ATLAS_DISABLED is not defined. More...
 

Macros

#define FASTUIDRAW_IMAGE_ATLAS_COLOR_TILE_LOG2_SIZE
 
#define FASTUIDRAW_IMAGE_ATLAS_COLOR_TILE_RECIP_SIZE
 
#define FASTUIDRAW_IMAGE_ATLAS_COLOR_TILE_SIZE
 
#define FASTUIDRAW_IMAGE_ATLAS_DISABLED
 
#define FASTUIDRAW_IMAGE_ATLAS_INDEX_TILE_LOG2_SIZE
 
#define FASTUIDRAW_IMAGE_ATLAS_INDEX_TILE_RECIP_SIZE
 
#define FASTUIDRAW_IMAGE_ATLAS_INDEX_TILE_SIZE
 

Functions

void fastuidraw_compute_image_atlas_coord (in vec2 master_tile_texel_coord, in uint index_layer, in uint num_levels, out fastuidraw_compute_image_atlas_coord_type return_value)
 
void fastuidraw_compute_image_atlas_coord (in vec2 image_texel_coordinate, in fastuidraw_image_extended_info_type image_info, out fastuidraw_compute_image_atlas_coord_type return_value)
 
vec2 fastuidraw_compute_image_coordinate (in vec2 master_tile_tex_coord, in fastuidraw_image_extended_info_type image_info)
 
void fastuidraw_compute_image_info (in uint num_levels, out fastuidraw_image_info_type d)
 
vec2 fastuidraw_compute_master_index_tile_coordinate (in vec2 image_coordinate, in fastuidraw_image_extended_info_type image_info)
 
vec2 fastuidraw_compute_root_image_coordinate (in vec2 master_tile_tex_coord, in fastuidraw_image_info_type image_info)
 
vec4 fastuidraw_cubic_filter_atlas_image (in vec2 image_coordinate, in fastuidraw_image_extended_info_type image_info)
 
void fastuidraw_image_atlas_compute_tile_range (in float root_image_coordinate, out float tile_min_dist, out float tile_max_dist)
 
void fastuidraw_image_atlas_compute_tile_range (in vec2 root_image_coord, out vec2 tile_min_dist, out vec2 tile_max_dist)
 
vec2 fastuidraw_image_coordinate_clamp_for_cubic_filtering (in vec2 image_coordinate, in fastuidraw_image_extended_info_type image_info)
 
vec2 fastuidraw_image_coordinate_clamp_for_linear_filtering (in vec2 image_coordinate, in fastuidraw_image_extended_info_type image_info, float pow2_lod)
 
vec2 fastuidraw_image_coordinate_clamp_for_nearest_filtering (in vec2 image_coordinate, in fastuidraw_image_extended_info_type image_info)
 
vec4 fastuidraw_linear_filter_atlas_image (in vec2 master_tile_texel_coord, in uint index_layer, in fastuidraw_image_info_type image_info, in int lod_i, in float lod_factor)
 
vec4 fastuidraw_linear_filter_atlas_image (in vec2 image_coordinate, in fastuidraw_image_extended_info_type image_info, in int lod_i)
 
vec4 fastuidraw_nearest_filter_atlas_image (in vec2 image_texel_coordinate, in fastuidraw_image_extended_info_type image_info, in float lod)
 

Detailed Description

file fastuidraw_atlas_image_fetch.glsl.hpp

Copyright 2018 by Intel.

Contact: kevin.nosp@m..rog.nosp@m.ovin@.nosp@m.gmai.nosp@m.l.com

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Author
Kevin Rogovin kevin.nosp@m..rog.nosp@m.ovin@.nosp@m.gmai.nosp@m.l.com

Definition in file fastuidraw_atlas_image_fetch.glsl.hpp.