pixo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +23 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ext/CMakeLists.txt +35 -0
- data/ext/libpixgem/extconf.rb +29 -0
- data/ext/libpixgem/include/opengl.h +4 -0
- data/ext/libpixgem/src/application.cpp +135 -0
- data/ext/libpixgem/src/application.hpp +28 -0
- data/ext/libpixgem/src/camera.cpp +28 -0
- data/ext/libpixgem/src/camera.hpp +22 -0
- data/ext/libpixgem/src/fade_candy.cpp +32 -0
- data/ext/libpixgem/src/fade_candy.hpp +22 -0
- data/ext/libpixgem/src/gem.cpp +58 -0
- data/ext/libpixgem/src/holder.cpp +9 -0
- data/ext/libpixgem/src/holder.hpp +8 -0
- data/ext/libpixgem/src/pattern.cpp +57 -0
- data/ext/libpixgem/src/pattern.hpp +25 -0
- data/ext/pixo/CMakeLists.txt +57 -0
- data/ext/pixo/README.md +3 -0
- data/ext/pixo/ext/glew/CMakeLists.txt +118 -0
- data/ext/pixo/ext/glew/LICENSE.txt +73 -0
- data/ext/pixo/ext/glew/Makefile +347 -0
- data/ext/pixo/ext/glew/README.md +192 -0
- data/ext/pixo/ext/glew/auto/Makefile +357 -0
- data/ext/pixo/ext/glew/auto/bin/filter_gl_ext.sh +523 -0
- data/ext/pixo/ext/glew/auto/bin/filter_gles_ext.sh +19 -0
- data/ext/pixo/ext/glew/auto/bin/filter_spec.py +38 -0
- data/ext/pixo/ext/glew/auto/bin/make.pl +223 -0
- data/ext/pixo/ext/glew/auto/bin/make_def_fun.pl +35 -0
- data/ext/pixo/ext/glew/auto/bin/make_def_var.pl +31 -0
- data/ext/pixo/ext/glew/auto/bin/make_enable_index.pl +45 -0
- data/ext/pixo/ext/glew/auto/bin/make_header.pl +71 -0
- data/ext/pixo/ext/glew/auto/bin/make_html.pl +55 -0
- data/ext/pixo/ext/glew/auto/bin/make_index.pl +38 -0
- data/ext/pixo/ext/glew/auto/bin/make_info.pl +59 -0
- data/ext/pixo/ext/glew/auto/bin/make_info_list.pl +47 -0
- data/ext/pixo/ext/glew/auto/bin/make_init.pl +59 -0
- data/ext/pixo/ext/glew/auto/bin/make_initd.pl +43 -0
- data/ext/pixo/ext/glew/auto/bin/make_list.pl +73 -0
- data/ext/pixo/ext/glew/auto/bin/make_list2.pl +44 -0
- data/ext/pixo/ext/glew/auto/bin/make_str.pl +53 -0
- data/ext/pixo/ext/glew/auto/bin/make_struct_fun.pl +36 -0
- data/ext/pixo/ext/glew/auto/bin/make_struct_var.pl +31 -0
- data/ext/pixo/ext/glew/auto/bin/parse_spec.pl +393 -0
- data/ext/pixo/ext/glew/auto/bin/parse_xml.py +131 -0
- data/ext/pixo/ext/glew/auto/bin/update_ext.sh +25 -0
- data/ext/pixo/ext/glew/auto/blacklist +14 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_AMD_gpu_association +23 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_ARB_get_proc_address +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_ATI_pixel_format_float +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_ATI_render_texture +42 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_EXT_create_context_es2_profile +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_EXT_create_context_es_profile +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_EXT_fbconfig_packed_float +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_EXT_framebuffer_sRGB +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_MESA_swap_control +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_NV_float_buffer +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_NV_vertex_array_range +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_SGIS_shared_multisample +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_SGIX_hyperpipe +26 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_SGIX_swap_barrier +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_SGIX_swap_group +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_SGI_video_sync +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_SUN_video_resize +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_VERSION_1_2 +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_VERSION_1_3 +83 -0
- data/ext/pixo/ext/glew/auto/core/gl/GLX_VERSION_1_4 +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_APPLE_float_pixels +18 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_APPLE_pixel_buffer +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_APPLE_texture_range +13 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_draw_instanced +4 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_imaging +113 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_instanced_arrays +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_internalformat_query2 +104 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_matrix_palette +19 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_multitexture +73 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_robustness +31 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_separate_shader_objects +73 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_vertex_attrib_64bit +14 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ARB_vertex_blend +56 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATIX_point_sprites +10 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATIX_texture_env_combine3 +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATIX_texture_env_route +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATIX_vertex_shader_output_point_size +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATI_envmap_bumpmap +16 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATI_map_object_buffer +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATI_pn_triangles +15 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATI_separate_stencil +10 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATI_shader_texture_lod +4 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATI_texture_compression_3dc +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_ATI_vertex_streams +59 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_Cg_shader +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_bindable_uniform +13 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_debug_marker +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_depth_bounds_test +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_draw_instanced +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_draw_range_elements +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_fog_coord +17 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_framebuffer_sRGB +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_geometry_shader4 +27 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_gpu_program_parameters +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_gpu_shader4 +64 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_packed_float +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_pixel_buffer_object +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_secondary_color +28 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_array +13 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_buffer_object +10 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_compression_latc +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_compression_rgtc +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_cube_map +16 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_edge_clamp +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_integer +57 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_rectangle +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_texture_shared_exponent +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_timer_query +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_EXT_vertex_shader +157 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_KTX_buffer_region +13 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NVX_gpu_memory_info +9 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_depth_buffer_float +11 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_depth_range_unclamped +9 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_fragment_program2 +9 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_fragment_program4 +4 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_fragment_program_option +4 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_framebuffer_multisample_coverage +9 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_geometry_program4 +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_geometry_shader4 +4 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_gpu_program4 +24 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_gpu_program5 +10 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_parameter_buffer_object +12 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_present_video +16 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_tessellation_program5 +9 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_transform_feedback +40 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_vdpau_interop +19 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_vertex_program2_option +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_vertex_program3 +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_NV_vertex_program4 +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_SGIX_shadow +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_SUN_read_video_pixels +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_1_2 +50 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_1_2_1 +4 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_1_3 +147 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_1_4 +90 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_1_5 +75 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_2_0 +181 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_2_1 +33 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_3_0 +164 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_3_1 +42 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_3_2 +29 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_3_3 +7 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_4_0 +21 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_4_1 +3 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_4_2 +13 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_4_3 +6 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_4_4 +8 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_VERSION_4_5 +9 -0
- data/ext/pixo/ext/glew/auto/core/gl/GL_WIN_swap_hint +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_ARB_create_context +13 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_ATI_render_texture_rectangle +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_EXT_create_context_es2_profile +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_EXT_create_context_es_profile +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_EXT_framebuffer_sRGB +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_EXT_pixel_format_packed_float +5 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_NV_gpu_affinity +13 -0
- data/ext/pixo/ext/glew/auto/core/gl/WGL_NV_vertex_array_range +6 -0
- data/ext/pixo/ext/glew/auto/custom.txt +7 -0
- data/ext/pixo/ext/glew/auto/doc/advanced.html +130 -0
- data/ext/pixo/ext/glew/auto/doc/basic.html +180 -0
- data/ext/pixo/ext/glew/auto/doc/build.html +49 -0
- data/ext/pixo/ext/glew/auto/doc/credits.html +2 -0
- data/ext/pixo/ext/glew/auto/doc/index.html +111 -0
- data/ext/pixo/ext/glew/auto/doc/install.html +126 -0
- data/ext/pixo/ext/glew/auto/doc/log.html +1073 -0
- data/ext/pixo/ext/glew/auto/src/eglew_head.h +88 -0
- data/ext/pixo/ext/glew/auto/src/eglew_mid.h +4 -0
- data/ext/pixo/ext/glew/auto/src/eglew_tail.h +15 -0
- data/ext/pixo/ext/glew/auto/src/footer.html +4 -0
- data/ext/pixo/ext/glew/auto/src/glew.rc +135 -0
- data/ext/pixo/ext/glew/auto/src/glew_head.c +285 -0
- data/ext/pixo/ext/glew/auto/src/glew_head.h +1129 -0
- data/ext/pixo/ext/glew/auto/src/glew_init_egl.c +45 -0
- data/ext/pixo/ext/glew/auto/src/glew_init_gl.c +206 -0
- data/ext/pixo/ext/glew/auto/src/glew_init_glx.c +53 -0
- data/ext/pixo/ext/glew/auto/src/glew_init_tail.c +67 -0
- data/ext/pixo/ext/glew/auto/src/glew_init_wgl.c +41 -0
- data/ext/pixo/ext/glew/auto/src/glew_license.h +32 -0
- data/ext/pixo/ext/glew/auto/src/glew_str_egl.c +17 -0
- data/ext/pixo/ext/glew/auto/src/glew_str_glx.c +17 -0
- data/ext/pixo/ext/glew/auto/src/glew_str_head.c +9 -0
- data/ext/pixo/ext/glew/auto/src/glew_str_tail.c +7 -0
- data/ext/pixo/ext/glew/auto/src/glew_str_wgl.c +17 -0
- data/ext/pixo/ext/glew/auto/src/glew_tail.h +67 -0
- data/ext/pixo/ext/glew/auto/src/glewinfo.rc +123 -0
- data/ext/pixo/ext/glew/auto/src/glewinfo_egl.c +6 -0
- data/ext/pixo/ext/glew/auto/src/glewinfo_gl.c +7 -0
- data/ext/pixo/ext/glew/auto/src/glewinfo_glx.c +6 -0
- data/ext/pixo/ext/glew/auto/src/glewinfo_head.c +89 -0
- data/ext/pixo/ext/glew/auto/src/glewinfo_tail.c +598 -0
- data/ext/pixo/ext/glew/auto/src/glewinfo_wgl.c +8 -0
- data/ext/pixo/ext/glew/auto/src/glxew_head.h +106 -0
- data/ext/pixo/ext/glew/auto/src/glxew_mid.h +4 -0
- data/ext/pixo/ext/glew/auto/src/glxew_tail.h +20 -0
- data/ext/pixo/ext/glew/auto/src/header.html +98 -0
- data/ext/pixo/ext/glew/auto/src/khronos_license.h +23 -0
- data/ext/pixo/ext/glew/auto/src/mesa_license.h +24 -0
- data/ext/pixo/ext/glew/auto/src/visualinfo.rc +123 -0
- data/ext/pixo/ext/glew/auto/src/wglew_head.h +36 -0
- data/ext/pixo/ext/glew/auto/src/wglew_mid.h +4 -0
- data/ext/pixo/ext/glew/auto/src/wglew_tail.h +22 -0
- data/ext/pixo/ext/glew/build/cmake/CMakeLists.txt +215 -0
- data/ext/pixo/ext/glew/build/cmake/CopyImportedTargetProperties.cmake +88 -0
- data/ext/pixo/ext/glew/build/cmake/glew-config.cmake +60 -0
- data/ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt +25 -0
- data/ext/pixo/ext/glew/build/cmake/testbuild/main.c +23 -0
- data/ext/pixo/ext/glew/build/glew.rc +135 -0
- data/ext/pixo/ext/glew/build/glewinfo.rc +123 -0
- data/ext/pixo/ext/glew/build/vc10/common.props +29 -0
- data/ext/pixo/ext/glew/build/vc10/glew.sln +56 -0
- data/ext/pixo/ext/glew/build/vc10/glew_shared.vcxproj +254 -0
- data/ext/pixo/ext/glew/build/vc10/glew_static.vcxproj +228 -0
- data/ext/pixo/ext/glew/build/vc10/glewinfo.vcxproj +252 -0
- data/ext/pixo/ext/glew/build/vc10/visualinfo.vcxproj +251 -0
- data/ext/pixo/ext/glew/build/vc12/common.props +29 -0
- data/ext/pixo/ext/glew/build/vc12/glew.sln +56 -0
- data/ext/pixo/ext/glew/build/vc12/glew_shared.vcxproj +258 -0
- data/ext/pixo/ext/glew/build/vc12/glew_static.vcxproj +232 -0
- data/ext/pixo/ext/glew/build/vc12/glewinfo.vcxproj +259 -0
- data/ext/pixo/ext/glew/build/vc12/visualinfo.vcxproj +258 -0
- data/ext/pixo/ext/glew/build/vc6/Makefile +21 -0
- data/ext/pixo/ext/glew/build/vc6/glew.dsw +71 -0
- data/ext/pixo/ext/glew/build/vc6/glew_shared.dsp +122 -0
- data/ext/pixo/ext/glew/build/vc6/glew_static.dsp +112 -0
- data/ext/pixo/ext/glew/build/vc6/glewinfo.dsp +103 -0
- data/ext/pixo/ext/glew/build/vc6/visualinfo.dsp +103 -0
- data/ext/pixo/ext/glew/build/visualinfo.rc +123 -0
- data/ext/pixo/ext/glew/cmake-testbuild.sh +71 -0
- data/ext/pixo/ext/glew/config/Makefile.cygming +21 -0
- data/ext/pixo/ext/glew/config/Makefile.cygwin +19 -0
- data/ext/pixo/ext/glew/config/Makefile.darwin +25 -0
- data/ext/pixo/ext/glew/config/Makefile.darwin-ppc +24 -0
- data/ext/pixo/ext/glew/config/Makefile.darwin-universal +27 -0
- data/ext/pixo/ext/glew/config/Makefile.darwin-x86_64 +24 -0
- data/ext/pixo/ext/glew/config/Makefile.fedora-mingw32 +12 -0
- data/ext/pixo/ext/glew/config/Makefile.freebsd +17 -0
- data/ext/pixo/ext/glew/config/Makefile.gnu +17 -0
- data/ext/pixo/ext/glew/config/Makefile.haiku +20 -0
- data/ext/pixo/ext/glew/config/Makefile.irix +17 -0
- data/ext/pixo/ext/glew/config/Makefile.kfreebsd +17 -0
- data/ext/pixo/ext/glew/config/Makefile.linux +34 -0
- data/ext/pixo/ext/glew/config/Makefile.linux-clang +34 -0
- data/ext/pixo/ext/glew/config/Makefile.linux-clang-egl +4 -0
- data/ext/pixo/ext/glew/config/Makefile.linux-egl +4 -0
- data/ext/pixo/ext/glew/config/Makefile.linux-mingw-w64 +22 -0
- data/ext/pixo/ext/glew/config/Makefile.linux-mingw32 +22 -0
- data/ext/pixo/ext/glew/config/Makefile.linux-mingw64 +22 -0
- data/ext/pixo/ext/glew/config/Makefile.linux-osmesa +4 -0
- data/ext/pixo/ext/glew/config/Makefile.mingw +17 -0
- data/ext/pixo/ext/glew/config/Makefile.mingw-win32 +5 -0
- data/ext/pixo/ext/glew/config/Makefile.msys +19 -0
- data/ext/pixo/ext/glew/config/Makefile.msys-win32 +5 -0
- data/ext/pixo/ext/glew/config/Makefile.msys-win64 +5 -0
- data/ext/pixo/ext/glew/config/Makefile.nacl-32 +31 -0
- data/ext/pixo/ext/glew/config/Makefile.nacl-64 +31 -0
- data/ext/pixo/ext/glew/config/Makefile.netbsd +17 -0
- data/ext/pixo/ext/glew/config/Makefile.openbsd +17 -0
- data/ext/pixo/ext/glew/config/Makefile.solaris +14 -0
- data/ext/pixo/ext/glew/config/Makefile.solaris-gcc +15 -0
- data/ext/pixo/ext/glew/config/config.guess +1456 -0
- data/ext/pixo/ext/glew/config/version +7 -0
- data/ext/pixo/ext/glew/doc/advanced.html +232 -0
- data/ext/pixo/ext/glew/doc/basic.html +282 -0
- data/ext/pixo/ext/glew/doc/build.html +151 -0
- data/ext/pixo/ext/glew/doc/credits.html +104 -0
- data/ext/pixo/ext/glew/doc/github.png +0 -0
- data/ext/pixo/ext/glew/doc/glew.css +187 -0
- data/ext/pixo/ext/glew/doc/glew.html +724 -0
- data/ext/pixo/ext/glew/doc/glew.png +0 -0
- data/ext/pixo/ext/glew/doc/glew.txt +29 -0
- data/ext/pixo/ext/glew/doc/glxew.html +185 -0
- data/ext/pixo/ext/glew/doc/gpl.txt +340 -0
- data/ext/pixo/ext/glew/doc/index.html +213 -0
- data/ext/pixo/ext/glew/doc/install.html +228 -0
- data/ext/pixo/ext/glew/doc/khronos.txt +20 -0
- data/ext/pixo/ext/glew/doc/log.html +1175 -0
- data/ext/pixo/ext/glew/doc/mesa.txt +21 -0
- data/ext/pixo/ext/glew/doc/new.png +0 -0
- data/ext/pixo/ext/glew/doc/ogl_sm.jpg +0 -0
- data/ext/pixo/ext/glew/doc/travis.png +0 -0
- data/ext/pixo/ext/glew/doc/wglew.html +168 -0
- data/ext/pixo/ext/glew/glew.pc.in +11 -0
- data/ext/pixo/ext/glew/include/GL/eglew.h +2261 -0
- data/ext/pixo/ext/glew/include/GL/glew.h +20113 -0
- data/ext/pixo/ext/glew/include/GL/glxew.h +1769 -0
- data/ext/pixo/ext/glew/include/GL/wglew.h +1427 -0
- data/ext/pixo/ext/glew/maintain.sh +142 -0
- data/ext/pixo/ext/glew/src/glew.c +23960 -0
- data/ext/pixo/ext/glew/src/glewinfo.c +13912 -0
- data/ext/pixo/ext/glew/src/visualinfo.c +1297 -0
- data/ext/pixo/ext/glfw/CMake/MacOSXBundleInfo.plist.in +38 -0
- data/ext/pixo/ext/glfw/CMake/amd64-mingw32msvc.cmake +13 -0
- data/ext/pixo/ext/glfw/CMake/i586-mingw32msvc.cmake +13 -0
- data/ext/pixo/ext/glfw/CMake/i686-pc-mingw32.cmake +13 -0
- data/ext/pixo/ext/glfw/CMake/i686-w64-mingw32.cmake +13 -0
- data/ext/pixo/ext/glfw/CMake/modules/FindMir.cmake +18 -0
- data/ext/pixo/ext/glfw/CMake/modules/FindVulkan.cmake +34 -0
- data/ext/pixo/ext/glfw/CMake/modules/FindWaylandProtocols.cmake +26 -0
- data/ext/pixo/ext/glfw/CMake/modules/FindXKBCommon.cmake +34 -0
- data/ext/pixo/ext/glfw/CMake/x86_64-w64-mingw32.cmake +13 -0
- data/ext/pixo/ext/glfw/CMakeLists.txt +419 -0
- data/ext/pixo/ext/glfw/COPYING.txt +22 -0
- data/ext/pixo/ext/glfw/README.md +274 -0
- data/ext/pixo/ext/glfw/cmake_uninstall.cmake.in +29 -0
- data/ext/pixo/ext/glfw/deps/KHR/khrplatform.h +282 -0
- data/ext/pixo/ext/glfw/deps/getopt.c +230 -0
- data/ext/pixo/ext/glfw/deps/getopt.h +57 -0
- data/ext/pixo/ext/glfw/deps/glad/glad.h +3520 -0
- data/ext/pixo/ext/glfw/deps/glad.c +1555 -0
- data/ext/pixo/ext/glfw/deps/linmath.h +574 -0
- data/ext/pixo/ext/glfw/deps/mingw/_mingw_dxhelper.h +117 -0
- data/ext/pixo/ext/glfw/deps/mingw/dinput.h +2467 -0
- data/ext/pixo/ext/glfw/deps/mingw/xinput.h +239 -0
- data/ext/pixo/ext/glfw/deps/tinycthread.c +594 -0
- data/ext/pixo/ext/glfw/deps/tinycthread.h +441 -0
- data/ext/pixo/ext/glfw/deps/vulkan/vk_platform.h +120 -0
- data/ext/pixo/ext/glfw/deps/vulkan/vulkan.h +3835 -0
- data/ext/pixo/ext/glfw/docs/CMakeLists.txt +32 -0
- data/ext/pixo/ext/glfw/docs/Doxyfile.in +1859 -0
- data/ext/pixo/ext/glfw/docs/DoxygenLayout.xml +188 -0
- data/ext/pixo/ext/glfw/docs/build.dox +347 -0
- data/ext/pixo/ext/glfw/docs/compat.dox +224 -0
- data/ext/pixo/ext/glfw/docs/compile.dox +284 -0
- data/ext/pixo/ext/glfw/docs/context.dox +345 -0
- data/ext/pixo/ext/glfw/docs/extra.css +1 -0
- data/ext/pixo/ext/glfw/docs/extra.less +370 -0
- data/ext/pixo/ext/glfw/docs/footer.html +7 -0
- data/ext/pixo/ext/glfw/docs/header.html +34 -0
- data/ext/pixo/ext/glfw/docs/input.dox +665 -0
- data/ext/pixo/ext/glfw/docs/internal.dox +116 -0
- data/ext/pixo/ext/glfw/docs/intro.dox +372 -0
- data/ext/pixo/ext/glfw/docs/main.dox +47 -0
- data/ext/pixo/ext/glfw/docs/monitor.dox +216 -0
- data/ext/pixo/ext/glfw/docs/moving.dox +506 -0
- data/ext/pixo/ext/glfw/docs/news.dox +376 -0
- data/ext/pixo/ext/glfw/docs/quick.dox +364 -0
- data/ext/pixo/ext/glfw/docs/spaces.svg +872 -0
- data/ext/pixo/ext/glfw/docs/vulkan.dox +211 -0
- data/ext/pixo/ext/glfw/docs/window.dox +1008 -0
- data/ext/pixo/ext/glfw/examples/CMakeLists.txt +67 -0
- data/ext/pixo/ext/glfw/examples/boing.c +678 -0
- data/ext/pixo/ext/glfw/examples/gears.c +357 -0
- data/ext/pixo/ext/glfw/examples/glfw.icns +0 -0
- data/ext/pixo/ext/glfw/examples/glfw.ico +0 -0
- data/ext/pixo/ext/glfw/examples/glfw.rc +3 -0
- data/ext/pixo/ext/glfw/examples/heightmap.c +511 -0
- data/ext/pixo/ext/glfw/examples/particles.c +1068 -0
- data/ext/pixo/ext/glfw/examples/simple.c +163 -0
- data/ext/pixo/ext/glfw/examples/splitview.c +545 -0
- data/ext/pixo/ext/glfw/examples/wave.c +460 -0
- data/ext/pixo/ext/glfw/include/GLFW/glfw3.h +4248 -0
- data/ext/pixo/ext/glfw/include/GLFW/glfw3native.h +456 -0
- data/ext/pixo/ext/glfw/src/CMakeLists.txt +120 -0
- data/ext/pixo/ext/glfw/src/cocoa_init.m +398 -0
- data/ext/pixo/ext/glfw/src/cocoa_joystick.h +60 -0
- data/ext/pixo/ext/glfw/src/cocoa_joystick.m +511 -0
- data/ext/pixo/ext/glfw/src/cocoa_monitor.m +413 -0
- data/ext/pixo/ext/glfw/src/cocoa_platform.h +150 -0
- data/ext/pixo/ext/glfw/src/cocoa_time.c +60 -0
- data/ext/pixo/ext/glfw/src/cocoa_window.m +1653 -0
- data/ext/pixo/ext/glfw/src/context.c +720 -0
- data/ext/pixo/ext/glfw/src/egl_context.c +746 -0
- data/ext/pixo/ext/glfw/src/egl_context.h +213 -0
- data/ext/pixo/ext/glfw/src/glfw3.pc.in +13 -0
- data/ext/pixo/ext/glfw/src/glfw3Config.cmake.in +1 -0
- data/ext/pixo/ext/glfw/src/glfw_config.h.in +65 -0
- data/ext/pixo/ext/glfw/src/glx_context.c +677 -0
- data/ext/pixo/ext/glfw/src/glx_context.h +182 -0
- data/ext/pixo/ext/glfw/src/init.c +200 -0
- data/ext/pixo/ext/glfw/src/input.c +659 -0
- data/ext/pixo/ext/glfw/src/internal.h +1055 -0
- data/ext/pixo/ext/glfw/src/linux_joystick.c +341 -0
- data/ext/pixo/ext/glfw/src/linux_joystick.h +68 -0
- data/ext/pixo/ext/glfw/src/mir_init.c +238 -0
- data/ext/pixo/ext/glfw/src/mir_monitor.c +182 -0
- data/ext/pixo/ext/glfw/src/mir_platform.h +130 -0
- data/ext/pixo/ext/glfw/src/mir_window.c +848 -0
- data/ext/pixo/ext/glfw/src/monitor.c +477 -0
- data/ext/pixo/ext/glfw/src/nsgl_context.h +60 -0
- data/ext/pixo/ext/glfw/src/nsgl_context.m +308 -0
- data/ext/pixo/ext/glfw/src/posix_time.c +85 -0
- data/ext/pixo/ext/glfw/src/posix_time.h +48 -0
- data/ext/pixo/ext/glfw/src/posix_tls.c +68 -0
- data/ext/pixo/ext/glfw/src/posix_tls.h +49 -0
- data/ext/pixo/ext/glfw/src/vulkan.c +302 -0
- data/ext/pixo/ext/glfw/src/wgl_context.c +718 -0
- data/ext/pixo/ext/glfw/src/wgl_context.h +157 -0
- data/ext/pixo/ext/glfw/src/win32_init.c +473 -0
- data/ext/pixo/ext/glfw/src/win32_joystick.c +763 -0
- data/ext/pixo/ext/glfw/src/win32_joystick.h +64 -0
- data/ext/pixo/ext/glfw/src/win32_monitor.c +401 -0
- data/ext/pixo/ext/glfw/src/win32_platform.h +350 -0
- data/ext/pixo/ext/glfw/src/win32_time.c +74 -0
- data/ext/pixo/ext/glfw/src/win32_tls.c +69 -0
- data/ext/pixo/ext/glfw/src/win32_window.c +1724 -0
- data/ext/pixo/ext/glfw/src/window.c +904 -0
- data/ext/pixo/ext/glfw/src/wl_init.c +658 -0
- data/ext/pixo/ext/glfw/src/wl_monitor.c +269 -0
- data/ext/pixo/ext/glfw/src/wl_platform.h +179 -0
- data/ext/pixo/ext/glfw/src/wl_window.c +1050 -0
- data/ext/pixo/ext/glfw/src/x11_init.c +833 -0
- data/ext/pixo/ext/glfw/src/x11_monitor.c +491 -0
- data/ext/pixo/ext/glfw/src/x11_platform.h +296 -0
- data/ext/pixo/ext/glfw/src/x11_window.c +2475 -0
- data/ext/pixo/ext/glfw/src/xkb_unicode.c +889 -0
- data/ext/pixo/ext/glfw/src/xkb_unicode.h +33 -0
- data/ext/pixo/ext/glfw/tests/CMakeLists.txt +80 -0
- data/ext/pixo/ext/glfw/tests/clipboard.c +157 -0
- data/ext/pixo/ext/glfw/tests/cursor.c +317 -0
- data/ext/pixo/ext/glfw/tests/empty.c +131 -0
- data/ext/pixo/ext/glfw/tests/events.c +620 -0
- data/ext/pixo/ext/glfw/tests/gamma.c +188 -0
- data/ext/pixo/ext/glfw/tests/glfwinfo.c +899 -0
- data/ext/pixo/ext/glfw/tests/icon.c +148 -0
- data/ext/pixo/ext/glfw/tests/iconify.c +298 -0
- data/ext/pixo/ext/glfw/tests/joysticks.c +216 -0
- data/ext/pixo/ext/glfw/tests/monitors.c +243 -0
- data/ext/pixo/ext/glfw/tests/msaa.c +163 -0
- data/ext/pixo/ext/glfw/tests/reopen.c +192 -0
- data/ext/pixo/ext/glfw/tests/sharing.c +186 -0
- data/ext/pixo/ext/glfw/tests/tearing.c +214 -0
- data/ext/pixo/ext/glfw/tests/threads.c +143 -0
- data/ext/pixo/ext/glfw/tests/timeout.c +97 -0
- data/ext/pixo/ext/glfw/tests/title.c +78 -0
- data/ext/pixo/ext/glfw/tests/vulkan.c +2245 -0
- data/ext/pixo/ext/glfw/tests/windows.c +166 -0
- data/ext/pixo/ext/glm/CMakeLists.txt +227 -0
- data/ext/pixo/ext/glm/cmake/CMakePackageConfigHelpers.cmake +227 -0
- data/ext/pixo/ext/glm/cmake/GNUInstallDirs.cmake +188 -0
- data/ext/pixo/ext/glm/cmake/glm.pc.in +7 -0
- data/ext/pixo/ext/glm/cmake/glmBuildConfig.cmake.in +6 -0
- data/ext/pixo/ext/glm/cmake/glmConfig.cmake.in +9 -0
- data/ext/pixo/ext/glm/copying.txt +54 -0
- data/ext/pixo/ext/glm/doc/api/a00001.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00001_source.html +457 -0
- data/ext/pixo/ext/glm/doc/api/a00002.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00002_source.html +83 -0
- data/ext/pixo/ext/glm/doc/api/a00003.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00003_source.html +167 -0
- data/ext/pixo/ext/glm/doc/api/a00004.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00004_source.html +857 -0
- data/ext/pixo/ext/glm/doc/api/a00005.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00005_source.html +754 -0
- data/ext/pixo/ext/glm/doc/api/a00006.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00006_source.html +194 -0
- data/ext/pixo/ext/glm/doc/api/a00007.html +141 -0
- data/ext/pixo/ext/glm/doc/api/a00007_source.html +207 -0
- data/ext/pixo/ext/glm/doc/api/a00008.html +102 -0
- data/ext/pixo/ext/glm/doc/api/a00008_source.html +111 -0
- data/ext/pixo/ext/glm/doc/api/a00009.html +137 -0
- data/ext/pixo/ext/glm/doc/api/a00009_source.html +149 -0
- data/ext/pixo/ext/glm/doc/api/a00010.html +80 -0
- data/ext/pixo/ext/glm/doc/api/a00010_source.html +90 -0
- data/ext/pixo/ext/glm/doc/api/a00011.html +88 -0
- data/ext/pixo/ext/glm/doc/api/a00011_source.html +97 -0
- data/ext/pixo/ext/glm/doc/api/a00012.html +91 -0
- data/ext/pixo/ext/glm/doc/api/a00012_source.html +107 -0
- data/ext/pixo/ext/glm/doc/api/a00013.html +85 -0
- data/ext/pixo/ext/glm/doc/api/a00013_source.html +98 -0
- data/ext/pixo/ext/glm/doc/api/a00014.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00014_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00015.html +81 -0
- data/ext/pixo/ext/glm/doc/api/a00015_source.html +88 -0
- data/ext/pixo/ext/glm/doc/api/a00016.html +327 -0
- data/ext/pixo/ext/glm/doc/api/a00016_source.html +239 -0
- data/ext/pixo/ext/glm/doc/api/a00017.html +93 -0
- data/ext/pixo/ext/glm/doc/api/a00017_source.html +102 -0
- data/ext/pixo/ext/glm/doc/api/a00018.html +162 -0
- data/ext/pixo/ext/glm/doc/api/a00018_source.html +193 -0
- data/ext/pixo/ext/glm/doc/api/a00019.html +129 -0
- data/ext/pixo/ext/glm/doc/api/a00019_source.html +271 -0
- data/ext/pixo/ext/glm/doc/api/a00020.html +89 -0
- data/ext/pixo/ext/glm/doc/api/a00020_source.html +105 -0
- data/ext/pixo/ext/glm/doc/api/a00021.html +126 -0
- data/ext/pixo/ext/glm/doc/api/a00021_source.html +175 -0
- data/ext/pixo/ext/glm/doc/api/a00022.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00022_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00023.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00023_source.html +219 -0
- data/ext/pixo/ext/glm/doc/api/a00024.html +76 -0
- data/ext/pixo/ext/glm/doc/api/a00024_source.html +84 -0
- data/ext/pixo/ext/glm/doc/api/a00025.html +111 -0
- data/ext/pixo/ext/glm/doc/api/a00025_source.html +157 -0
- data/ext/pixo/ext/glm/doc/api/a00026.html +111 -0
- data/ext/pixo/ext/glm/doc/api/a00026_source.html +118 -0
- data/ext/pixo/ext/glm/doc/api/a00027.html +100 -0
- data/ext/pixo/ext/glm/doc/api/a00027_source.html +111 -0
- data/ext/pixo/ext/glm/doc/api/a00028.html +97 -0
- data/ext/pixo/ext/glm/doc/api/a00028_source.html +109 -0
- data/ext/pixo/ext/glm/doc/api/a00029.html +168 -0
- data/ext/pixo/ext/glm/doc/api/a00029_source.html +238 -0
- data/ext/pixo/ext/glm/doc/api/a00030.html +94 -0
- data/ext/pixo/ext/glm/doc/api/a00030_source.html +110 -0
- data/ext/pixo/ext/glm/doc/api/a00031.html +97 -0
- data/ext/pixo/ext/glm/doc/api/a00031_source.html +121 -0
- data/ext/pixo/ext/glm/doc/api/a00032.html +112 -0
- data/ext/pixo/ext/glm/doc/api/a00032_source.html +149 -0
- data/ext/pixo/ext/glm/doc/api/a00033.html +85 -0
- data/ext/pixo/ext/glm/doc/api/a00033_source.html +165 -0
- data/ext/pixo/ext/glm/doc/api/a00034.html +99 -0
- data/ext/pixo/ext/glm/doc/api/a00034_source.html +115 -0
- data/ext/pixo/ext/glm/doc/api/a00035.html +118 -0
- data/ext/pixo/ext/glm/doc/api/a00035_source.html +135 -0
- data/ext/pixo/ext/glm/doc/api/a00036.html +100 -0
- data/ext/pixo/ext/glm/doc/api/a00036_source.html +111 -0
- data/ext/pixo/ext/glm/doc/api/a00037.html +83 -0
- data/ext/pixo/ext/glm/doc/api/a00037_source.html +93 -0
- data/ext/pixo/ext/glm/doc/api/a00038.html +979 -0
- data/ext/pixo/ext/glm/doc/api/a00038_source.html +1716 -0
- data/ext/pixo/ext/glm/doc/api/a00039.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00039_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00040.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00040_source.html +119 -0
- data/ext/pixo/ext/glm/doc/api/a00041.html +81 -0
- data/ext/pixo/ext/glm/doc/api/a00041_source.html +93 -0
- data/ext/pixo/ext/glm/doc/api/a00042.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00042_source.html +91 -0
- data/ext/pixo/ext/glm/doc/api/a00043.html +67 -0
- data/ext/pixo/ext/glm/doc/api/a00043_source.html +185 -0
- data/ext/pixo/ext/glm/doc/api/a00044.html +93 -0
- data/ext/pixo/ext/glm/doc/api/a00044_source.html +104 -0
- data/ext/pixo/ext/glm/doc/api/a00045.html +98 -0
- data/ext/pixo/ext/glm/doc/api/a00045_source.html +107 -0
- data/ext/pixo/ext/glm/doc/api/a00046.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00046_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00047.html +93 -0
- data/ext/pixo/ext/glm/doc/api/a00047_source.html +124 -0
- data/ext/pixo/ext/glm/doc/api/a00048.html +72 -0
- data/ext/pixo/ext/glm/doc/api/a00048_source.html +237 -0
- data/ext/pixo/ext/glm/doc/api/a00049.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00049_source.html +89 -0
- data/ext/pixo/ext/glm/doc/api/a00050_source.html +2457 -0
- data/ext/pixo/ext/glm/doc/api/a00051.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00051_source.html +88 -0
- data/ext/pixo/ext/glm/doc/api/a00052.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00052_source.html +80 -0
- data/ext/pixo/ext/glm/doc/api/a00053.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00053_source.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00054.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00054_source.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00055.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00055_source.html +88 -0
- data/ext/pixo/ext/glm/doc/api/a00056.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00056_source.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00057.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00057_source.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00058_source.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00059.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00059_source.html +88 -0
- data/ext/pixo/ext/glm/doc/api/a00060.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00060_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00061.html +85 -0
- data/ext/pixo/ext/glm/doc/api/a00061_source.html +101 -0
- data/ext/pixo/ext/glm/doc/api/a00062.html +81 -0
- data/ext/pixo/ext/glm/doc/api/a00062_source.html +87 -0
- data/ext/pixo/ext/glm/doc/api/a00063.html +76 -0
- data/ext/pixo/ext/glm/doc/api/a00063_source.html +91 -0
- data/ext/pixo/ext/glm/doc/api/a00064.html +265 -0
- data/ext/pixo/ext/glm/doc/api/a00064_source.html +438 -0
- data/ext/pixo/ext/glm/doc/api/a00065.html +86 -0
- data/ext/pixo/ext/glm/doc/api/a00065_source.html +104 -0
- data/ext/pixo/ext/glm/doc/api/a00066.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00066_source.html +89 -0
- data/ext/pixo/ext/glm/doc/api/a00067.html +111 -0
- data/ext/pixo/ext/glm/doc/api/a00067_source.html +143 -0
- data/ext/pixo/ext/glm/doc/api/a00068.html +100 -0
- data/ext/pixo/ext/glm/doc/api/a00068_source.html +122 -0
- data/ext/pixo/ext/glm/doc/api/a00069.html +99 -0
- data/ext/pixo/ext/glm/doc/api/a00069_source.html +108 -0
- data/ext/pixo/ext/glm/doc/api/a00070.html +158 -0
- data/ext/pixo/ext/glm/doc/api/a00070_source.html +289 -0
- data/ext/pixo/ext/glm/doc/api/a00071.html +89 -0
- data/ext/pixo/ext/glm/doc/api/a00071_source.html +110 -0
- data/ext/pixo/ext/glm/doc/api/a00072.html +77 -0
- data/ext/pixo/ext/glm/doc/api/a00072_source.html +84 -0
- data/ext/pixo/ext/glm/doc/api/a00073.html +82 -0
- data/ext/pixo/ext/glm/doc/api/a00073_source.html +100 -0
- data/ext/pixo/ext/glm/doc/api/a00074.html +99 -0
- data/ext/pixo/ext/glm/doc/api/a00074_source.html +121 -0
- data/ext/pixo/ext/glm/doc/api/a00075.html +78 -0
- data/ext/pixo/ext/glm/doc/api/a00075_source.html +84 -0
- data/ext/pixo/ext/glm/doc/api/a00076.html +81 -0
- data/ext/pixo/ext/glm/doc/api/a00076_source.html +85 -0
- data/ext/pixo/ext/glm/doc/api/a00077.html +107 -0
- data/ext/pixo/ext/glm/doc/api/a00077_source.html +115 -0
- data/ext/pixo/ext/glm/doc/api/a00078.html +82 -0
- data/ext/pixo/ext/glm/doc/api/a00078_source.html +91 -0
- data/ext/pixo/ext/glm/doc/api/a00079.html +81 -0
- data/ext/pixo/ext/glm/doc/api/a00079_source.html +86 -0
- data/ext/pixo/ext/glm/doc/api/a00080.html +175 -0
- data/ext/pixo/ext/glm/doc/api/a00080_source.html +233 -0
- data/ext/pixo/ext/glm/doc/api/a00081.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00081_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00082_source.html +61 -0
- data/ext/pixo/ext/glm/doc/api/a00083.html +78 -0
- data/ext/pixo/ext/glm/doc/api/a00083_source.html +84 -0
- data/ext/pixo/ext/glm/doc/api/a00084.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00084_source.html +87 -0
- data/ext/pixo/ext/glm/doc/api/a00085.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00085_source.html +123 -0
- data/ext/pixo/ext/glm/doc/api/a00086.html +76 -0
- data/ext/pixo/ext/glm/doc/api/a00086_source.html +81 -0
- data/ext/pixo/ext/glm/doc/api/a00087.html +161 -0
- data/ext/pixo/ext/glm/doc/api/a00087_source.html +329 -0
- data/ext/pixo/ext/glm/doc/api/a00088.html +129 -0
- data/ext/pixo/ext/glm/doc/api/a00088_source.html +189 -0
- data/ext/pixo/ext/glm/doc/api/a00089.html +98 -0
- data/ext/pixo/ext/glm/doc/api/a00089_source.html +115 -0
- data/ext/pixo/ext/glm/doc/api/a00090.html +67 -0
- data/ext/pixo/ext/glm/doc/api/a00090_source.html +133 -0
- data/ext/pixo/ext/glm/doc/api/a00091.html +81 -0
- data/ext/pixo/ext/glm/doc/api/a00091_source.html +90 -0
- data/ext/pixo/ext/glm/doc/api/a00092.html +109 -0
- data/ext/pixo/ext/glm/doc/api/a00092_source.html +126 -0
- data/ext/pixo/ext/glm/doc/api/a00093.html +83 -0
- data/ext/pixo/ext/glm/doc/api/a00093_source.html +94 -0
- data/ext/pixo/ext/glm/doc/api/a00094.html +108 -0
- data/ext/pixo/ext/glm/doc/api/a00094_source.html +143 -0
- data/ext/pixo/ext/glm/doc/api/a00095.html +126 -0
- data/ext/pixo/ext/glm/doc/api/a00095_source.html +149 -0
- data/ext/pixo/ext/glm/doc/api/a00096.html +69 -0
- data/ext/pixo/ext/glm/doc/api/a00096_source.html +131 -0
- data/ext/pixo/ext/glm/doc/api/a00097.html +67 -0
- data/ext/pixo/ext/glm/doc/api/a00097_source.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00098.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00098_source.html +827 -0
- data/ext/pixo/ext/glm/doc/api/a00099.html +67 -0
- data/ext/pixo/ext/glm/doc/api/a00099_source.html +219 -0
- data/ext/pixo/ext/glm/doc/api/a00100.html +67 -0
- data/ext/pixo/ext/glm/doc/api/a00100_source.html +282 -0
- data/ext/pixo/ext/glm/doc/api/a00101.html +67 -0
- data/ext/pixo/ext/glm/doc/api/a00101_source.html +402 -0
- data/ext/pixo/ext/glm/doc/api/a00102.html +82 -0
- data/ext/pixo/ext/glm/doc/api/a00102_source.html +105 -0
- data/ext/pixo/ext/glm/doc/api/a00103.html +91 -0
- data/ext/pixo/ext/glm/doc/api/a00103_source.html +102 -0
- data/ext/pixo/ext/glm/doc/api/a00104.html +82 -0
- data/ext/pixo/ext/glm/doc/api/a00104_source.html +89 -0
- data/ext/pixo/ext/glm/doc/api/a00105.html +88 -0
- data/ext/pixo/ext/glm/doc/api/a00105_source.html +95 -0
- data/ext/pixo/ext/glm/doc/api/a00106.html +102 -0
- data/ext/pixo/ext/glm/doc/api/a00106_source.html +144 -0
- data/ext/pixo/ext/glm/doc/api/a00107.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00107_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00108.html +241 -0
- data/ext/pixo/ext/glm/doc/api/a00108_source.html +383 -0
- data/ext/pixo/ext/glm/doc/api/a00109.html +493 -0
- data/ext/pixo/ext/glm/doc/api/a00109_source.html +769 -0
- data/ext/pixo/ext/glm/doc/api/a00110.html +82 -0
- data/ext/pixo/ext/glm/doc/api/a00110_source.html +113 -0
- data/ext/pixo/ext/glm/doc/api/a00111.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00111_source.html +248 -0
- data/ext/pixo/ext/glm/doc/api/a00112.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00112_source.html +79 -0
- data/ext/pixo/ext/glm/doc/api/a00113.html +102 -0
- data/ext/pixo/ext/glm/doc/api/a00113_source.html +352 -0
- data/ext/pixo/ext/glm/doc/api/a00114.html +271 -0
- data/ext/pixo/ext/glm/doc/api/a00114_source.html +469 -0
- data/ext/pixo/ext/glm/doc/api/a00115.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00115_source.html +245 -0
- data/ext/pixo/ext/glm/doc/api/a00116.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00116_source.html +228 -0
- data/ext/pixo/ext/glm/doc/api/a00117.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00117_source.html +230 -0
- data/ext/pixo/ext/glm/doc/api/a00118.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00118_source.html +236 -0
- data/ext/pixo/ext/glm/doc/api/a00119.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00119_source.html +252 -0
- data/ext/pixo/ext/glm/doc/api/a00120.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00120_source.html +235 -0
- data/ext/pixo/ext/glm/doc/api/a00121.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00121_source.html +240 -0
- data/ext/pixo/ext/glm/doc/api/a00122.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00122_source.html +240 -0
- data/ext/pixo/ext/glm/doc/api/a00123.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00123_source.html +257 -0
- data/ext/pixo/ext/glm/doc/api/a00124.html +71 -0
- data/ext/pixo/ext/glm/doc/api/a00124_source.html +692 -0
- data/ext/pixo/ext/glm/doc/api/a00125.html +128 -0
- data/ext/pixo/ext/glm/doc/api/a00125_source.html +158 -0
- data/ext/pixo/ext/glm/doc/api/a00126.html +67 -0
- data/ext/pixo/ext/glm/doc/api/a00126_source.html +299 -0
- data/ext/pixo/ext/glm/doc/api/a00127.html +192 -0
- data/ext/pixo/ext/glm/doc/api/a00127_source.html +435 -0
- data/ext/pixo/ext/glm/doc/api/a00128.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00128_source.html +357 -0
- data/ext/pixo/ext/glm/doc/api/a00129.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00129_source.html +443 -0
- data/ext/pixo/ext/glm/doc/api/a00130.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00130_source.html +461 -0
- data/ext/pixo/ext/glm/doc/api/a00131.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00131_source.html +500 -0
- data/ext/pixo/ext/glm/doc/api/a00132.html +91 -0
- data/ext/pixo/ext/glm/doc/api/a00132_source.html +101 -0
- data/ext/pixo/ext/glm/doc/api/a00133.html +107 -0
- data/ext/pixo/ext/glm/doc/api/a00133_source.html +159 -0
- data/ext/pixo/ext/glm/doc/api/a00134.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00134_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00135.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00135_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00136.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00136_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00137.html +86 -0
- data/ext/pixo/ext/glm/doc/api/a00137_source.html +98 -0
- data/ext/pixo/ext/glm/doc/api/a00138.html +91 -0
- data/ext/pixo/ext/glm/doc/api/a00138_source.html +104 -0
- data/ext/pixo/ext/glm/doc/api/a00139.html +66 -0
- data/ext/pixo/ext/glm/doc/api/a00139_source.html +65 -0
- data/ext/pixo/ext/glm/doc/api/a00140.html +85 -0
- data/ext/pixo/ext/glm/doc/api/a00140_source.html +94 -0
- data/ext/pixo/ext/glm/doc/api/a00146.html +1123 -0
- data/ext/pixo/ext/glm/doc/api/a00147.html +325 -0
- data/ext/pixo/ext/glm/doc/api/a00148.html +367 -0
- data/ext/pixo/ext/glm/doc/api/a00149.html +577 -0
- data/ext/pixo/ext/glm/doc/api/a00150.html +210 -0
- data/ext/pixo/ext/glm/doc/api/a00151.html +364 -0
- data/ext/pixo/ext/glm/doc/api/a00152.html +532 -0
- data/ext/pixo/ext/glm/doc/api/a00153.html +393 -0
- data/ext/pixo/ext/glm/doc/api/a00154.html +103 -0
- data/ext/pixo/ext/glm/doc/api/a00155.html +177 -0
- data/ext/pixo/ext/glm/doc/api/a00156.html +84 -0
- data/ext/pixo/ext/glm/doc/api/a00157.html +808 -0
- data/ext/pixo/ext/glm/doc/api/a00158.html +2827 -0
- data/ext/pixo/ext/glm/doc/api/a00159.html +53 -0
- data/ext/pixo/ext/glm/doc/api/a00160.html +985 -0
- data/ext/pixo/ext/glm/doc/api/a00161.html +141 -0
- data/ext/pixo/ext/glm/doc/api/a00162.html +670 -0
- data/ext/pixo/ext/glm/doc/api/a00163.html +217 -0
- data/ext/pixo/ext/glm/doc/api/a00164.html +137 -0
- data/ext/pixo/ext/glm/doc/api/a00165.html +290 -0
- data/ext/pixo/ext/glm/doc/api/a00166.html +201 -0
- data/ext/pixo/ext/glm/doc/api/a00167.html +1885 -0
- data/ext/pixo/ext/glm/doc/api/a00168.html +129 -0
- data/ext/pixo/ext/glm/doc/api/a00169.html +1690 -0
- data/ext/pixo/ext/glm/doc/api/a00170.html +136 -0
- data/ext/pixo/ext/glm/doc/api/a00171.html +1406 -0
- data/ext/pixo/ext/glm/doc/api/a00172.html +939 -0
- data/ext/pixo/ext/glm/doc/api/a00173.html +303 -0
- data/ext/pixo/ext/glm/doc/api/a00174.html +406 -0
- data/ext/pixo/ext/glm/doc/api/a00175.html +603 -0
- data/ext/pixo/ext/glm/doc/api/a00176.html +688 -0
- data/ext/pixo/ext/glm/doc/api/a00177.html +3678 -0
- data/ext/pixo/ext/glm/doc/api/a00178.html +445 -0
- data/ext/pixo/ext/glm/doc/api/a00179.html +233 -0
- data/ext/pixo/ext/glm/doc/api/a00180.html +53 -0
- data/ext/pixo/ext/glm/doc/api/a00181.html +1293 -0
- data/ext/pixo/ext/glm/doc/api/a00182.html +273 -0
- data/ext/pixo/ext/glm/doc/api/a00183.html +103 -0
- data/ext/pixo/ext/glm/doc/api/a00184.html +213 -0
- data/ext/pixo/ext/glm/doc/api/a00185.html +153 -0
- data/ext/pixo/ext/glm/doc/api/a00186.html +117 -0
- data/ext/pixo/ext/glm/doc/api/a00187.html +312 -0
- data/ext/pixo/ext/glm/doc/api/a00188.html +193 -0
- data/ext/pixo/ext/glm/doc/api/a00189.html +464 -0
- data/ext/pixo/ext/glm/doc/api/a00190.html +565 -0
- data/ext/pixo/ext/glm/doc/api/a00191.html +99 -0
- data/ext/pixo/ext/glm/doc/api/a00192.html +553 -0
- data/ext/pixo/ext/glm/doc/api/a00193.html +355 -0
- data/ext/pixo/ext/glm/doc/api/a00194.html +282 -0
- data/ext/pixo/ext/glm/doc/api/a00195.html +246 -0
- data/ext/pixo/ext/glm/doc/api/a00196.html +143 -0
- data/ext/pixo/ext/glm/doc/api/a00197.html +137 -0
- data/ext/pixo/ext/glm/doc/api/a00198.html +53 -0
- data/ext/pixo/ext/glm/doc/api/a00199.html +314 -0
- data/ext/pixo/ext/glm/doc/api/a00200.html +397 -0
- data/ext/pixo/ext/glm/doc/api/a00201.html +55 -0
- data/ext/pixo/ext/glm/doc/api/a00202.html +126 -0
- data/ext/pixo/ext/glm/doc/api/a00203.html +105 -0
- data/ext/pixo/ext/glm/doc/api/a00204.html +117 -0
- data/ext/pixo/ext/glm/doc/api/a00205.html +191 -0
- data/ext/pixo/ext/glm/doc/api/a00206.html +421 -0
- data/ext/pixo/ext/glm/doc/api/a00207.html +259 -0
- data/ext/pixo/ext/glm/doc/api/a00208.html +317 -0
- data/ext/pixo/ext/glm/doc/api/a00209.html +251 -0
- data/ext/pixo/ext/glm/doc/api/a00210.html +64 -0
- data/ext/pixo/ext/glm/doc/api/a00211.html +293 -0
- data/ext/pixo/ext/glm/doc/api/a00212.html +99 -0
- data/ext/pixo/ext/glm/doc/api/a00213.html +127 -0
- data/ext/pixo/ext/glm/doc/api/a00214.html +90 -0
- data/ext/pixo/ext/glm/doc/api/a00215.html +127 -0
- data/ext/pixo/ext/glm/doc/api/a00216.html +115 -0
- data/ext/pixo/ext/glm/doc/api/a00217.html +93 -0
- data/ext/pixo/ext/glm/doc/api/a00218.html +105 -0
- data/ext/pixo/ext/glm/doc/api/a00219.html +93 -0
- data/ext/pixo/ext/glm/doc/api/a00220.html +613 -0
- data/ext/pixo/ext/glm/doc/api/a00221.html +55 -0
- data/ext/pixo/ext/glm/doc/api/a00222.html +137 -0
- data/ext/pixo/ext/glm/doc/api/a00223.html +165 -0
- data/ext/pixo/ext/glm/doc/api/a00224.html +439 -0
- data/ext/pixo/ext/glm/doc/api/a00225.html +53 -0
- data/ext/pixo/ext/glm/doc/api/a00226.html +53 -0
- data/ext/pixo/ext/glm/doc/api/a00227.html +53 -0
- data/ext/pixo/ext/glm/doc/api/a00228.html +53 -0
- data/ext/pixo/ext/glm/doc/api/a00229.html +211 -0
- data/ext/pixo/ext/glm/doc/api/a00230.html +213 -0
- data/ext/pixo/ext/glm/doc/api/a00231.html +83 -0
- data/ext/pixo/ext/glm/doc/api/a00232.html +143 -0
- data/ext/pixo/ext/glm/doc/api/a00233.html +372 -0
- data/ext/pixo/ext/glm/doc/api/a00234.html +7811 -0
- data/ext/pixo/ext/glm/doc/api/a00235.html +54 -0
- data/ext/pixo/ext/glm/doc/api/a00236.html +163 -0
- data/ext/pixo/ext/glm/doc/api/a00237.html +271 -0
- data/ext/pixo/ext/glm/doc/api/a00238.html +149 -0
- data/ext/pixo/ext/glm/doc/api/arrowdown.png +0 -0
- data/ext/pixo/ext/glm/doc/api/arrowright.png +0 -0
- data/ext/pixo/ext/glm/doc/api/bc_s.png +0 -0
- data/ext/pixo/ext/glm/doc/api/bdwn.png +0 -0
- data/ext/pixo/ext/glm/doc/api/closed.png +0 -0
- data/ext/pixo/ext/glm/doc/api/dir_1f76e953200861345293ade84ac7fb6c.html +61 -0
- data/ext/pixo/ext/glm/doc/api/dir_275089585c7fc1b5fd5d7d42c69cb1da.html +61 -0
- data/ext/pixo/ext/glm/doc/api/dir_577c788b67d63fb3b3b5752bd495d0f2.html +63 -0
- data/ext/pixo/ext/glm/doc/api/dir_5ce58d942b2d0776e17a9a58abc01e04.html +114 -0
- data/ext/pixo/ext/glm/doc/api/dir_7b98f88bffbed4b390b5f8f520d9c08e.html +61 -0
- data/ext/pixo/ext/glm/doc/api/dir_8d176b5b7dd0ae42ea6876078f2bde49.html +177 -0
- data/ext/pixo/ext/glm/doc/api/dir_9440d7c11b99dcd7e5d369c7cf9802fe.html +101 -0
- data/ext/pixo/ext/glm/doc/api/dir_e29b03b892e0e25920d021a614d4db9b.html +63 -0
- data/ext/pixo/ext/glm/doc/api/dir_e529a619cfdec1fa4c331fb042fd332f.html +129 -0
- data/ext/pixo/ext/glm/doc/api/doc.png +0 -0
- data/ext/pixo/ext/glm/doc/api/doxygen.css +865 -0
- data/ext/pixo/ext/glm/doc/api/doxygen.png +0 -0
- data/ext/pixo/ext/glm/doc/api/dynsections.js +104 -0
- data/ext/pixo/ext/glm/doc/api/files.html +200 -0
- data/ext/pixo/ext/glm/doc/api/folderclosed.png +0 -0
- data/ext/pixo/ext/glm/doc/api/folderopen.png +0 -0
- data/ext/pixo/ext/glm/doc/api/index.html +68 -0
- data/ext/pixo/ext/glm/doc/api/jquery.js +68 -0
- data/ext/pixo/ext/glm/doc/api/logo.png +0 -0
- data/ext/pixo/ext/glm/doc/api/modules.html +149 -0
- data/ext/pixo/ext/glm/doc/api/nav_f.png +0 -0
- data/ext/pixo/ext/glm/doc/api/nav_g.png +0 -0
- data/ext/pixo/ext/glm/doc/api/nav_h.png +0 -0
- data/ext/pixo/ext/glm/doc/api/open.png +0 -0
- data/ext/pixo/ext/glm/doc/api/splitbar.png +0 -0
- data/ext/pixo/ext/glm/doc/api/sync_off.png +0 -0
- data/ext/pixo/ext/glm/doc/api/sync_on.png +0 -0
- data/ext/pixo/ext/glm/doc/api/tab_a.png +0 -0
- data/ext/pixo/ext/glm/doc/api/tab_b.png +0 -0
- data/ext/pixo/ext/glm/doc/api/tab_h.png +0 -0
- data/ext/pixo/ext/glm/doc/api/tab_s.png +0 -0
- data/ext/pixo/ext/glm/doc/api/tabs.css +79 -0
- data/ext/pixo/ext/glm/doc/glm.docx +0 -0
- data/ext/pixo/ext/glm/doc/glm.pdf +0 -0
- data/ext/pixo/ext/glm/doc/logo.png +0 -0
- data/ext/pixo/ext/glm/doc/man.doxy +2396 -0
- data/ext/pixo/ext/glm/doc/pages.doxy +32 -0
- data/ext/pixo/ext/glm/doc/theme/doxygen.css +865 -0
- data/ext/pixo/ext/glm/doc/theme/tabs.css +79 -0
- data/ext/pixo/ext/glm/glm/CMakeLists.txt +67 -0
- data/ext/pixo/ext/glm/glm/common.hpp +6 -0
- data/ext/pixo/ext/glm/glm/detail/_features.hpp +399 -0
- data/ext/pixo/ext/glm/glm/detail/_fixes.hpp +30 -0
- data/ext/pixo/ext/glm/glm/detail/_noise.hpp +107 -0
- data/ext/pixo/ext/glm/glm/detail/_swizzle.hpp +797 -0
- data/ext/pixo/ext/glm/glm/detail/_swizzle_func.hpp +696 -0
- data/ext/pixo/ext/glm/glm/detail/_vectorize.hpp +131 -0
- data/ext/pixo/ext/glm/glm/detail/dummy.cpp +207 -0
- data/ext/pixo/ext/glm/glm/detail/func_common.hpp +427 -0
- data/ext/pixo/ext/glm/glm/detail/func_common.inl +848 -0
- data/ext/pixo/ext/glm/glm/detail/func_common_simd.inl +231 -0
- data/ext/pixo/ext/glm/glm/detail/func_exponential.hpp +103 -0
- data/ext/pixo/ext/glm/glm/detail/func_exponential.inl +146 -0
- data/ext/pixo/ext/glm/glm/detail/func_exponential_simd.inl +35 -0
- data/ext/pixo/ext/glm/glm/detail/func_geometric.hpp +113 -0
- data/ext/pixo/ext/glm/glm/detail/func_geometric.inl +247 -0
- data/ext/pixo/ext/glm/glm/detail/func_geometric_simd.inl +99 -0
- data/ext/pixo/ext/glm/glm/detail/func_integer.hpp +203 -0
- data/ext/pixo/ext/glm/glm/detail/func_integer.inl +375 -0
- data/ext/pixo/ext/glm/glm/detail/func_integer_simd.inl +66 -0
- data/ext/pixo/ext/glm/glm/detail/func_matrix.hpp +149 -0
- data/ext/pixo/ext/glm/glm/detail/func_matrix.inl +401 -0
- data/ext/pixo/ext/glm/glm/detail/func_matrix_simd.inl +88 -0
- data/ext/pixo/ext/glm/glm/detail/func_packing.hpp +168 -0
- data/ext/pixo/ext/glm/glm/detail/func_packing.inl +190 -0
- data/ext/pixo/ext/glm/glm/detail/func_packing_simd.inl +9 -0
- data/ext/pixo/ext/glm/glm/detail/func_trigonometric.hpp +176 -0
- data/ext/pixo/ext/glm/glm/detail/func_trigonometric.inl +200 -0
- data/ext/pixo/ext/glm/glm/detail/func_trigonometric_simd.inl +0 -0
- data/ext/pixo/ext/glm/glm/detail/func_vector_relational.hpp +111 -0
- data/ext/pixo/ext/glm/glm/detail/func_vector_relational.inl +105 -0
- data/ext/pixo/ext/glm/glm/detail/func_vector_relational_simd.inl +9 -0
- data/ext/pixo/ext/glm/glm/detail/glm.cpp +257 -0
- data/ext/pixo/ext/glm/glm/detail/precision.hpp +63 -0
- data/ext/pixo/ext/glm/glm/detail/setup.hpp +777 -0
- data/ext/pixo/ext/glm/glm/detail/type_float.hpp +67 -0
- data/ext/pixo/ext/glm/glm/detail/type_gentype.hpp +195 -0
- data/ext/pixo/ext/glm/glm/detail/type_gentype.inl +341 -0
- data/ext/pixo/ext/glm/glm/detail/type_half.hpp +19 -0
- data/ext/pixo/ext/glm/glm/detail/type_half.inl +244 -0
- data/ext/pixo/ext/glm/glm/detail/type_int.hpp +306 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat.hpp +767 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat.inl +3 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat2x2.hpp +183 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat2x2.inl +490 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat2x3.hpp +165 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat2x3.inl +464 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat2x4.hpp +167 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat2x4.inl +473 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat3x2.hpp +173 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat3x2.inl +498 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat3x3.hpp +190 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat3x3.inl +567 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat3x4.hpp +172 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat3x4.inl +538 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat4x2.hpp +177 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat4x2.inl +551 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat4x3.hpp +177 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat4x3.inl +568 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat4x4.hpp +195 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat4x4.inl +677 -0
- data/ext/pixo/ext/glm/glm/detail/type_mat4x4_simd.inl +7 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec.hpp +576 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec.inl +2 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec1.hpp +299 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec1.inl +564 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec2.hpp +385 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec2.inl +900 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec3.hpp +406 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec3.inl +1028 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec4.hpp +451 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec4.inl +975 -0
- data/ext/pixo/ext/glm/glm/detail/type_vec4_simd.inl +481 -0
- data/ext/pixo/ext/glm/glm/exponential.hpp +6 -0
- data/ext/pixo/ext/glm/glm/ext.hpp +117 -0
- data/ext/pixo/ext/glm/glm/fwd.hpp +2570 -0
- data/ext/pixo/ext/glm/glm/geometric.hpp +6 -0
- data/ext/pixo/ext/glm/glm/glm.hpp +88 -0
- data/ext/pixo/ext/glm/glm/gtc/bitfield.hpp +207 -0
- data/ext/pixo/ext/glm/glm/gtc/bitfield.inl +515 -0
- data/ext/pixo/ext/glm/glm/gtc/color_encoding.hpp +50 -0
- data/ext/pixo/ext/glm/glm/gtc/color_encoding.inl +65 -0
- data/ext/pixo/ext/glm/glm/gtc/color_space.hpp +56 -0
- data/ext/pixo/ext/glm/glm/gtc/color_space.inl +75 -0
- data/ext/pixo/ext/glm/glm/gtc/constants.hpp +176 -0
- data/ext/pixo/ext/glm/glm/gtc/constants.inl +181 -0
- data/ext/pixo/ext/glm/glm/gtc/epsilon.hpp +73 -0
- data/ext/pixo/ext/glm/glm/gtc/epsilon.inl +125 -0
- data/ext/pixo/ext/glm/glm/gtc/functions.hpp +53 -0
- data/ext/pixo/ext/glm/glm/gtc/functions.inl +31 -0
- data/ext/pixo/ext/glm/glm/gtc/integer.hpp +102 -0
- data/ext/pixo/ext/glm/glm/gtc/integer.inl +71 -0
- data/ext/pixo/ext/glm/glm/gtc/matrix_access.hpp +59 -0
- data/ext/pixo/ext/glm/glm/gtc/matrix_access.inl +63 -0
- data/ext/pixo/ext/glm/glm/gtc/matrix_integer.hpp +486 -0
- data/ext/pixo/ext/glm/glm/gtc/matrix_inverse.hpp +49 -0
- data/ext/pixo/ext/glm/glm/gtc/matrix_inverse.inl +120 -0
- data/ext/pixo/ext/glm/glm/gtc/matrix_transform.hpp +465 -0
- data/ext/pixo/ext/glm/glm/gtc/matrix_transform.inl +575 -0
- data/ext/pixo/ext/glm/glm/gtc/noise.hpp +60 -0
- data/ext/pixo/ext/glm/glm/gtc/noise.inl +808 -0
- data/ext/pixo/ext/glm/glm/gtc/packing.hpp +579 -0
- data/ext/pixo/ext/glm/glm/gtc/packing.inl +781 -0
- data/ext/pixo/ext/glm/glm/gtc/quaternion.hpp +397 -0
- data/ext/pixo/ext/glm/glm/gtc/quaternion.inl +801 -0
- data/ext/pixo/ext/glm/glm/gtc/quaternion_simd.inl +198 -0
- data/ext/pixo/ext/glm/glm/gtc/random.hpp +98 -0
- data/ext/pixo/ext/glm/glm/gtc/random.inl +350 -0
- data/ext/pixo/ext/glm/glm/gtc/reciprocal.hpp +135 -0
- data/ext/pixo/ext/glm/glm/gtc/reciprocal.inl +192 -0
- data/ext/pixo/ext/glm/glm/gtc/round.hpp +174 -0
- data/ext/pixo/ext/glm/glm/gtc/round.inl +344 -0
- data/ext/pixo/ext/glm/glm/gtc/type_aligned.hpp +362 -0
- data/ext/pixo/ext/glm/glm/gtc/type_precision.hpp +861 -0
- data/ext/pixo/ext/glm/glm/gtc/type_precision.inl +7 -0
- data/ext/pixo/ext/glm/glm/gtc/type_ptr.hpp +149 -0
- data/ext/pixo/ext/glm/glm/gtc/type_ptr.inl +450 -0
- data/ext/pixo/ext/glm/glm/gtc/ulp.hpp +63 -0
- data/ext/pixo/ext/glm/glm/gtc/ulp.inl +321 -0
- data/ext/pixo/ext/glm/glm/gtc/vec1.hpp +164 -0
- data/ext/pixo/ext/glm/glm/gtc/vec1.inl +2 -0
- data/ext/pixo/ext/glm/glm/gtx/associated_min_max.hpp +202 -0
- data/ext/pixo/ext/glm/glm/gtx/associated_min_max.inl +355 -0
- data/ext/pixo/ext/glm/glm/gtx/bit.hpp +95 -0
- data/ext/pixo/ext/glm/glm/gtx/bit.inl +93 -0
- data/ext/pixo/ext/glm/glm/gtx/closest_point.hpp +45 -0
- data/ext/pixo/ext/glm/glm/gtx/closest_point.inl +46 -0
- data/ext/pixo/ext/glm/glm/gtx/color_space.hpp +68 -0
- data/ext/pixo/ext/glm/glm/gtx/color_space.inl +143 -0
- data/ext/pixo/ext/glm/glm/gtx/color_space_YCoCg.hpp +56 -0
- data/ext/pixo/ext/glm/glm/gtx/color_space_YCoCg.inl +108 -0
- data/ext/pixo/ext/glm/glm/gtx/common.hpp +53 -0
- data/ext/pixo/ext/glm/glm/gtx/common.inl +112 -0
- data/ext/pixo/ext/glm/glm/gtx/compatibility.hpp +130 -0
- data/ext/pixo/ext/glm/glm/gtx/compatibility.inl +65 -0
- data/ext/pixo/ext/glm/glm/gtx/component_wise.hpp +65 -0
- data/ext/pixo/ext/glm/glm/gtx/component_wise.inl +128 -0
- data/ext/pixo/ext/glm/glm/gtx/dual_quaternion.hpp +266 -0
- data/ext/pixo/ext/glm/glm/gtx/dual_quaternion.inl +357 -0
- data/ext/pixo/ext/glm/glm/gtx/euler_angles.hpp +143 -0
- data/ext/pixo/ext/glm/glm/gtx/euler_angles.inl +312 -0
- data/ext/pixo/ext/glm/glm/gtx/extend.hpp +38 -0
- data/ext/pixo/ext/glm/glm/gtx/extend.inl +49 -0
- data/ext/pixo/ext/glm/glm/gtx/extended_min_max.hpp +133 -0
- data/ext/pixo/ext/glm/glm/gtx/extended_min_max.inl +140 -0
- data/ext/pixo/ext/glm/glm/gtx/fast_exponential.hpp +91 -0
- data/ext/pixo/ext/glm/glm/gtx/fast_exponential.inl +137 -0
- data/ext/pixo/ext/glm/glm/gtx/fast_square_root.hpp +88 -0
- data/ext/pixo/ext/glm/glm/gtx/fast_square_root.inl +81 -0
- data/ext/pixo/ext/glm/glm/gtx/fast_trigonometry.hpp +75 -0
- data/ext/pixo/ext/glm/glm/gtx/fast_trigonometry.inl +143 -0
- data/ext/pixo/ext/glm/glm/gtx/float_notmalize.inl +14 -0
- data/ext/pixo/ext/glm/glm/gtx/gradient_paint.hpp +48 -0
- data/ext/pixo/ext/glm/glm/gtx/gradient_paint.inl +37 -0
- data/ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.hpp +46 -0
- data/ext/pixo/ext/glm/glm/gtx/handed_coordinate_space.inl +27 -0
- data/ext/pixo/ext/glm/glm/gtx/hash.hpp +134 -0
- data/ext/pixo/ext/glm/glm/gtx/hash.inl +185 -0
- data/ext/pixo/ext/glm/glm/gtx/integer.hpp +72 -0
- data/ext/pixo/ext/glm/glm/gtx/integer.inl +182 -0
- data/ext/pixo/ext/glm/glm/gtx/intersect.hpp +87 -0
- data/ext/pixo/ext/glm/glm/gtx/intersect.inl +170 -0
- data/ext/pixo/ext/glm/glm/gtx/io.hpp +197 -0
- data/ext/pixo/ext/glm/glm/gtx/io.inl +441 -0
- data/ext/pixo/ext/glm/glm/gtx/log_base.hpp +44 -0
- data/ext/pixo/ext/glm/glm/gtx/log_base.inl +18 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_cross_product.hpp +43 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_cross_product.inl +38 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_decompose.hpp +42 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_decompose.inl +194 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_interpolation.hpp +61 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_interpolation.inl +134 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_major_storage.hpp +115 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_major_storage.inl +167 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_operation.hpp +84 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_operation.inl +118 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_query.hpp +73 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_query.inl +114 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_transform_2d.hpp +78 -0
- data/ext/pixo/ext/glm/glm/gtx/matrix_transform_2d.inl +69 -0
- data/ext/pixo/ext/glm/glm/gtx/mixed_product.hpp +37 -0
- data/ext/pixo/ext/glm/glm/gtx/mixed_product.inl +16 -0
- data/ext/pixo/ext/glm/glm/gtx/norm.hpp +86 -0
- data/ext/pixo/ext/glm/glm/gtx/norm.inl +106 -0
- data/ext/pixo/ext/glm/glm/gtx/normal.hpp +39 -0
- data/ext/pixo/ext/glm/glm/gtx/normal.inl +16 -0
- data/ext/pixo/ext/glm/glm/gtx/normalize_dot.hpp +45 -0
- data/ext/pixo/ext/glm/glm/gtx/normalize_dot.inl +17 -0
- data/ext/pixo/ext/glm/glm/gtx/number_precision.hpp +57 -0
- data/ext/pixo/ext/glm/glm/gtx/number_precision.inl +7 -0
- data/ext/pixo/ext/glm/glm/gtx/optimum_pow.hpp +50 -0
- data/ext/pixo/ext/glm/glm/gtx/optimum_pow.inl +23 -0
- data/ext/pixo/ext/glm/glm/gtx/orthonormalize.hpp +45 -0
- data/ext/pixo/ext/glm/glm/gtx/orthonormalize.inl +30 -0
- data/ext/pixo/ext/glm/glm/gtx/perpendicular.hpp +39 -0
- data/ext/pixo/ext/glm/glm/gtx/perpendicular.inl +15 -0
- data/ext/pixo/ext/glm/glm/gtx/polar_coordinates.hpp +44 -0
- data/ext/pixo/ext/glm/glm/gtx/polar_coordinates.inl +37 -0
- data/ext/pixo/ext/glm/glm/gtx/projection.hpp +36 -0
- data/ext/pixo/ext/glm/glm/gtx/projection.inl +11 -0
- data/ext/pixo/ext/glm/glm/gtx/quaternion.hpp +185 -0
- data/ext/pixo/ext/glm/glm/gtx/quaternion.inl +212 -0
- data/ext/pixo/ext/glm/glm/gtx/range.hpp +85 -0
- data/ext/pixo/ext/glm/glm/gtx/raw_data.hpp +47 -0
- data/ext/pixo/ext/glm/glm/gtx/raw_data.inl +2 -0
- data/ext/pixo/ext/glm/glm/gtx/rotate_normalized_axis.hpp +64 -0
- data/ext/pixo/ext/glm/glm/gtx/rotate_normalized_axis.inl +59 -0
- data/ext/pixo/ext/glm/glm/gtx/rotate_vector.hpp +117 -0
- data/ext/pixo/ext/glm/glm/gtx/rotate_vector.inl +188 -0
- data/ext/pixo/ext/glm/glm/gtx/scalar_multiplication.hpp +69 -0
- data/ext/pixo/ext/glm/glm/gtx/scalar_relational.hpp +32 -0
- data/ext/pixo/ext/glm/glm/gtx/scalar_relational.inl +89 -0
- data/ext/pixo/ext/glm/glm/gtx/spline.hpp +61 -0
- data/ext/pixo/ext/glm/glm/gtx/spline.inl +63 -0
- data/ext/pixo/ext/glm/glm/gtx/std_based_type.hpp +63 -0
- data/ext/pixo/ext/glm/glm/gtx/std_based_type.inl +7 -0
- data/ext/pixo/ext/glm/glm/gtx/string_cast.hpp +47 -0
- data/ext/pixo/ext/glm/glm/gtx/string_cast.inl +458 -0
- data/ext/pixo/ext/glm/glm/gtx/transform.hpp +56 -0
- data/ext/pixo/ext/glm/glm/gtx/transform.inl +24 -0
- data/ext/pixo/ext/glm/glm/gtx/transform2.hpp +107 -0
- data/ext/pixo/ext/glm/glm/gtx/transform2.inl +126 -0
- data/ext/pixo/ext/glm/glm/gtx/type_aligned.hpp +966 -0
- data/ext/pixo/ext/glm/glm/gtx/type_aligned.inl +7 -0
- data/ext/pixo/ext/glm/glm/gtx/type_trait.hpp +252 -0
- data/ext/pixo/ext/glm/glm/gtx/type_trait.inl +0 -0
- data/ext/pixo/ext/glm/glm/gtx/vector_angle.hpp +60 -0
- data/ext/pixo/ext/glm/glm/gtx/vector_angle.inl +58 -0
- data/ext/pixo/ext/glm/glm/gtx/vector_query.hpp +62 -0
- data/ext/pixo/ext/glm/glm/gtx/vector_query.inl +193 -0
- data/ext/pixo/ext/glm/glm/gtx/wrap.hpp +51 -0
- data/ext/pixo/ext/glm/glm/gtx/wrap.inl +58 -0
- data/ext/pixo/ext/glm/glm/integer.hpp +6 -0
- data/ext/pixo/ext/glm/glm/mat2x2.hpp +52 -0
- data/ext/pixo/ext/glm/glm/mat2x3.hpp +32 -0
- data/ext/pixo/ext/glm/glm/mat2x4.hpp +31 -0
- data/ext/pixo/ext/glm/glm/mat3x2.hpp +31 -0
- data/ext/pixo/ext/glm/glm/mat3x3.hpp +52 -0
- data/ext/pixo/ext/glm/glm/mat3x4.hpp +31 -0
- data/ext/pixo/ext/glm/glm/mat4x2.hpp +31 -0
- data/ext/pixo/ext/glm/glm/mat4x3.hpp +31 -0
- data/ext/pixo/ext/glm/glm/mat4x4.hpp +52 -0
- data/ext/pixo/ext/glm/glm/matrix.hpp +6 -0
- data/ext/pixo/ext/glm/glm/packing.hpp +6 -0
- data/ext/pixo/ext/glm/glm/simd/common.h +240 -0
- data/ext/pixo/ext/glm/glm/simd/exponential.h +20 -0
- data/ext/pixo/ext/glm/glm/simd/geometric.h +124 -0
- data/ext/pixo/ext/glm/glm/simd/integer.h +115 -0
- data/ext/pixo/ext/glm/glm/simd/matrix.h +1028 -0
- data/ext/pixo/ext/glm/glm/simd/packing.h +8 -0
- data/ext/pixo/ext/glm/glm/simd/platform.h +437 -0
- data/ext/pixo/ext/glm/glm/simd/trigonometric.h +9 -0
- data/ext/pixo/ext/glm/glm/simd/vector_relational.h +8 -0
- data/ext/pixo/ext/glm/glm/trigonometric.hpp +6 -0
- data/ext/pixo/ext/glm/glm/vec2.hpp +6 -0
- data/ext/pixo/ext/glm/glm/vec3.hpp +6 -0
- data/ext/pixo/ext/glm/glm/vec4.hpp +6 -0
- data/ext/pixo/ext/glm/glm/vector_relational.hpp +6 -0
- data/ext/pixo/ext/glm/readme.md +962 -0
- data/ext/pixo/ext/glm/test/CMakeLists.txt +17 -0
- data/ext/pixo/ext/glm/test/bug/CMakeLists.txt +0 -0
- data/ext/pixo/ext/glm/test/core/CMakeLists.txt +38 -0
- data/ext/pixo/ext/glm/test/core/core_func_common.cpp +1272 -0
- data/ext/pixo/ext/glm/test/core/core_func_exponential.cpp +128 -0
- data/ext/pixo/ext/glm/test/core/core_func_geometric.cpp +193 -0
- data/ext/pixo/ext/glm/test/core/core_func_integer.cpp +1554 -0
- data/ext/pixo/ext/glm/test/core/core_func_integer_bit_count.cpp +291 -0
- data/ext/pixo/ext/glm/test/core/core_func_integer_find_lsb.cpp +400 -0
- data/ext/pixo/ext/glm/test/core/core_func_integer_find_msb.cpp +438 -0
- data/ext/pixo/ext/glm/test/core/core_func_matrix.cpp +277 -0
- data/ext/pixo/ext/glm/test/core/core_func_noise.cpp +7 -0
- data/ext/pixo/ext/glm/test/core/core_func_packing.cpp +156 -0
- data/ext/pixo/ext/glm/test/core/core_func_swizzle.cpp +78 -0
- data/ext/pixo/ext/glm/test/core/core_func_trigonometric.cpp +10 -0
- data/ext/pixo/ext/glm/test/core/core_func_vector_relational.cpp +42 -0
- data/ext/pixo/ext/glm/test/core/core_setup_force_cxx98.cpp +10 -0
- data/ext/pixo/ext/glm/test/core/core_setup_message.cpp +263 -0
- data/ext/pixo/ext/glm/test/core/core_setup_precision.cpp +58 -0
- data/ext/pixo/ext/glm/test/core/core_type_aligned.cpp +128 -0
- data/ext/pixo/ext/glm/test/core/core_type_cast.cpp +144 -0
- data/ext/pixo/ext/glm/test/core/core_type_ctor.cpp +358 -0
- data/ext/pixo/ext/glm/test/core/core_type_float.cpp +31 -0
- data/ext/pixo/ext/glm/test/core/core_type_int.cpp +43 -0
- data/ext/pixo/ext/glm/test/core/core_type_length.cpp +79 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat2x2.cpp +145 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat2x3.cpp +118 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat2x4.cpp +121 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat3x2.cpp +124 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat3x3.cpp +184 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat3x4.cpp +123 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat4x2.cpp +127 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat4x3.cpp +128 -0
- data/ext/pixo/ext/glm/test/core/core_type_mat4x4.cpp +313 -0
- data/ext/pixo/ext/glm/test/core/core_type_vec1.cpp +147 -0
- data/ext/pixo/ext/glm/test/core/core_type_vec2.cpp +312 -0
- data/ext/pixo/ext/glm/test/core/core_type_vec3.cpp +486 -0
- data/ext/pixo/ext/glm/test/core/core_type_vec4.cpp +559 -0
- data/ext/pixo/ext/glm/test/external/gli/CMakeLists.txt +27 -0
- data/ext/pixo/ext/glm/test/external/gli/core/dummy.cpp +4 -0
- data/ext/pixo/ext/glm/test/external/gli/core/generate_mipmaps.hpp +25 -0
- data/ext/pixo/ext/glm/test/external/gli/core/generate_mipmaps.inl +69 -0
- data/ext/pixo/ext/glm/test/external/gli/core/image2d.hpp +169 -0
- data/ext/pixo/ext/glm/test/external/gli/core/image2d.inl +229 -0
- data/ext/pixo/ext/glm/test/external/gli/core/operation.hpp +82 -0
- data/ext/pixo/ext/glm/test/external/gli/core/operation.inl +233 -0
- data/ext/pixo/ext/glm/test/external/gli/core/operator.hpp +28 -0
- data/ext/pixo/ext/glm/test/external/gli/core/operator.inl +210 -0
- data/ext/pixo/ext/glm/test/external/gli/core/shared_array.hpp +48 -0
- data/ext/pixo/ext/glm/test/external/gli/core/shared_array.inl +151 -0
- data/ext/pixo/ext/glm/test/external/gli/core/shared_ptr.hpp +41 -0
- data/ext/pixo/ext/glm/test/external/gli/core/shared_ptr.inl +125 -0
- data/ext/pixo/ext/glm/test/external/gli/core/size.hpp +31 -0
- data/ext/pixo/ext/glm/test/external/gli/core/size.inl +47 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture2d.hpp +122 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture2d.inl +304 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture2d_array.hpp +59 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture2d_array.inl +78 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp +65 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture_cube.inl +70 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.hpp +59 -0
- data/ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl +72 -0
- data/ext/pixo/ext/glm/test/external/gli/gli.hpp +31 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/compression.hpp +27 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/compression.inl +8 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/fetch.hpp +46 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/fetch.inl +91 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/gl_texture2d.hpp +33 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/gl_texture2d.inl +210 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/gradient.hpp +38 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/gradient.inl +74 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader.hpp +37 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader.inl +46 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader_dds10.hpp +35 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader_dds10.inl +595 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader_dds9.hpp +39 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader_dds9.inl +790 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader_tga.hpp +36 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/loader_tga.inl +159 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/wavelet.hpp +27 -0
- data/ext/pixo/ext/glm/test/external/gli/gtx/wavelet.inl +8 -0
- data/ext/pixo/ext/glm/test/glm.cppcheck +6 -0
- data/ext/pixo/ext/glm/test/gtc/CMakeLists.txt +22 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_bitfield.cpp +642 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_color_encoding.cpp +51 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_color_space.cpp +50 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_constants.cpp +28 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_epsilon.cpp +77 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_functions.cpp +35 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_integer.cpp +232 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_matrix_access.cpp +381 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_matrix_integer.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_matrix_inverse.cpp +51 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_matrix_transform.cpp +54 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_noise.cpp +188 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_packing.cpp +682 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_quaternion.cpp +312 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_random.cpp +377 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_reciprocal.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_round.cpp +458 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_type_aligned.cpp +118 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_type_precision.cpp +890 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_type_ptr.cpp +252 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_ulp.cpp +96 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_user_defined_types.cpp +30 -0
- data/ext/pixo/ext/glm/test/gtc/gtc_vec1.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/CMakeLists.txt +49 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_associated_min_max.cpp +9 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_closest_point.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_color_space.cpp +19 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_color_space_YCoCg.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_common.cpp +127 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_compatibility.cpp +18 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_component_wise.cpp +115 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_dual_quaternion.cpp +188 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_euler_angle.cpp +328 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_extend.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_extended_min_max.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_extented_min_max.cpp +39 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_fast_exponential.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_fast_square_root.cpp +45 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_fast_trigonometry.cpp +445 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_gradient_paint.cpp +33 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_handed_coordinate_space.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_int_10_10_10_2.cpp +18 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_integer.cpp +64 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_intersect.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_io.cpp +175 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_log_base.cpp +53 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_matrix_cross_product.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_matrix_decompose.cpp +18 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_matrix_interpolation.cpp +10 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_matrix_major_storage.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_matrix_operation.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_matrix_query.cpp +65 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_matrix_transform_2d.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_mixed_product.cpp +18 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_norm.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_normal.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_normalize_dot.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_number_precision.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_optimum_pow.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_orthonormalize.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_perpendicular.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_polar_coordinates.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_projection.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_quaternion.cpp +102 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_random.cpp +99 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_range.cpp +52 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_rotate_normalized_axis.cpp +8 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_rotate_vector.cpp +75 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_scalar_multiplication.cpp +34 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_scalar_relational.cpp +170 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_simd_mat4.cpp +324 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_simd_vec4.cpp +71 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_spline.cpp +99 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_string_cast.cpp +128 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_type_aligned.cpp +113 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_type_trait.cpp +12 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_vector_angle.cpp +58 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_vector_query.cpp +81 -0
- data/ext/pixo/ext/glm/test/gtx/gtx_wrap.cpp +189 -0
- data/ext/pixo/ext/glm/util/autoexp.txt +28 -0
- data/ext/pixo/ext/glm/util/autoexp.vc2010.dat +3896 -0
- data/ext/pixo/ext/glm/util/glm.natvis +69 -0
- data/ext/pixo/ext/glm/util/usertype.dat +407 -0
- data/ext/pixo/ext/tinyobjloader/CMakeLists.txt +146 -0
- data/ext/pixo/ext/tinyobjloader/LICENSE +21 -0
- data/ext/pixo/ext/tinyobjloader/README.md +254 -0
- data/ext/pixo/ext/tinyobjloader/appveyor.yml +22 -0
- data/ext/pixo/ext/tinyobjloader/build.ninja +53 -0
- data/ext/pixo/ext/tinyobjloader/deps/cpplint.py +6323 -0
- data/ext/pixo/ext/tinyobjloader/examples/callback_api/Makefile +2 -0
- data/ext/pixo/ext/tinyobjloader/examples/callback_api/main.cc +166 -0
- data/ext/pixo/ext/tinyobjloader/examples/obj_sticher/obj_sticher.cc +110 -0
- data/ext/pixo/ext/tinyobjloader/examples/obj_sticher/obj_writer.cc +176 -0
- data/ext/pixo/ext/tinyobjloader/examples/obj_sticher/obj_writer.h +9 -0
- data/ext/pixo/ext/tinyobjloader/examples/obj_sticher/premake4.lua +38 -0
- data/ext/pixo/ext/tinyobjloader/examples/viewer/README.md +37 -0
- data/ext/pixo/ext/tinyobjloader/examples/viewer/premake4.lua +44 -0
- data/ext/pixo/ext/tinyobjloader/examples/viewer/stb_image.h +6755 -0
- data/ext/pixo/ext/tinyobjloader/examples/viewer/trackball.cc +292 -0
- data/ext/pixo/ext/tinyobjloader/examples/viewer/trackball.h +75 -0
- data/ext/pixo/ext/tinyobjloader/examples/viewer/viewer.cc +698 -0
- data/ext/pixo/ext/tinyobjloader/examples/voxelize/Makefile +2 -0
- data/ext/pixo/ext/tinyobjloader/examples/voxelize/README.md +5 -0
- data/ext/pixo/ext/tinyobjloader/examples/voxelize/main.cc +74 -0
- data/ext/pixo/ext/tinyobjloader/examples/voxelize/voxelizer.h +764 -0
- data/ext/pixo/ext/tinyobjloader/experimental/LICENSE.ltalloc +26 -0
- data/ext/pixo/ext/tinyobjloader/experimental/README.md +5 -0
- data/ext/pixo/ext/tinyobjloader/experimental/ltalloc.cc +973 -0
- data/ext/pixo/ext/tinyobjloader/experimental/ltalloc.h +14 -0
- data/ext/pixo/ext/tinyobjloader/experimental/ltalloc.hpp +59 -0
- data/ext/pixo/ext/tinyobjloader/experimental/premake5.lua +95 -0
- data/ext/pixo/ext/tinyobjloader/experimental/tinyobj_loader_opt.h +1678 -0
- data/ext/pixo/ext/tinyobjloader/experimental/trackball.cc +292 -0
- data/ext/pixo/ext/tinyobjloader/experimental/trackball.h +75 -0
- data/ext/pixo/ext/tinyobjloader/experimental/viewer.cc +748 -0
- data/ext/pixo/ext/tinyobjloader/images/rungholt.jpg +0 -0
- data/ext/pixo/ext/tinyobjloader/images/sanmugel.png +0 -0
- data/ext/pixo/ext/tinyobjloader/jni/Android.mk +12 -0
- data/ext/pixo/ext/tinyobjloader/jni/Application.mk +2 -0
- data/ext/pixo/ext/tinyobjloader/jni/Makefile +2 -0
- data/ext/pixo/ext/tinyobjloader/jni/README +1 -0
- data/ext/pixo/ext/tinyobjloader/loader_example.cc +419 -0
- data/ext/pixo/ext/tinyobjloader/models/catmark_torus_creases0.obj +101 -0
- data/ext/pixo/ext/tinyobjloader/models/cornell_box.mtl +24 -0
- data/ext/pixo/ext/tinyobjloader/models/cornell_box.obj +145 -0
- data/ext/pixo/ext/tinyobjloader/models/cornell_box_multimaterial.obj +146 -0
- data/ext/pixo/ext/tinyobjloader/models/cube.mtl +24 -0
- data/ext/pixo/ext/tinyobjloader/models/cube.obj +31 -0
- data/ext/pixo/ext/tinyobjloader/models/issue-92.mtl +6 -0
- data/ext/pixo/ext/tinyobjloader/models/issue-92.obj +7 -0
- data/ext/pixo/ext/tinyobjloader/models/issue-95-2.mtl +5 -0
- data/ext/pixo/ext/tinyobjloader/models/issue-95-2.obj +7 -0
- data/ext/pixo/ext/tinyobjloader/models/issue-95.mtl +5 -0
- data/ext/pixo/ext/tinyobjloader/models/issue-95.obj +7 -0
- data/ext/pixo/ext/tinyobjloader/models/missing_material_file.obj +145 -0
- data/ext/pixo/ext/tinyobjloader/models/mtllib-multiple-files-issue-112.mtl +6 -0
- data/ext/pixo/ext/tinyobjloader/models/mtllib-multiple-files-issue-112.obj +7 -0
- data/ext/pixo/ext/tinyobjloader/models/no_material.obj +133 -0
- data/ext/pixo/ext/tinyobjloader/models/pbr-mat-ext.mtl +19 -0
- data/ext/pixo/ext/tinyobjloader/models/pbr-mat-ext.obj +10 -0
- data/ext/pixo/ext/tinyobjloader/models/test-nan.obj +145 -0
- data/ext/pixo/ext/tinyobjloader/models/texture-options-issue-85.mtl +36 -0
- data/ext/pixo/ext/tinyobjloader/models/texture-options-issue-85.obj +7 -0
- data/ext/pixo/ext/tinyobjloader/models/tr-and-d-issue-43.mtl +13 -0
- data/ext/pixo/ext/tinyobjloader/models/tr-and-d-issue-43.obj +817 -0
- data/ext/pixo/ext/tinyobjloader/models/usemtl-issue-104.obj +30 -0
- data/ext/pixo/ext/tinyobjloader/models/usemtl-issue-68.mtl +9 -0
- data/ext/pixo/ext/tinyobjloader/models/usemtl-issue-68.obj +817 -0
- data/ext/pixo/ext/tinyobjloader/premake4.lua +29 -0
- data/ext/pixo/ext/tinyobjloader/python/TODO.md +2 -0
- data/ext/pixo/ext/tinyobjloader/python/cornell_box_multimaterial_output.json +581 -0
- data/ext/pixo/ext/tinyobjloader/python/howto.py +9 -0
- data/ext/pixo/ext/tinyobjloader/python/main.cpp +203 -0
- data/ext/pixo/ext/tinyobjloader/python/setup.py +13 -0
- data/ext/pixo/ext/tinyobjloader/tests/Makefile +16 -0
- data/ext/pixo/ext/tinyobjloader/tests/README.md +37 -0
- data/ext/pixo/ext/tinyobjloader/tests/catch.hpp +10445 -0
- data/ext/pixo/ext/tinyobjloader/tests/config-msvc.py +52 -0
- data/ext/pixo/ext/tinyobjloader/tests/config-posix.py +53 -0
- data/ext/pixo/ext/tinyobjloader/tests/kuroga.py +312 -0
- data/ext/pixo/ext/tinyobjloader/tests/tester.cc +588 -0
- data/ext/pixo/ext/tinyobjloader/tests/vcbuild.bat +4 -0
- data/ext/pixo/ext/tinyobjloader/tiny_obj_loader.cc +2 -0
- data/ext/pixo/ext/tinyobjloader/tiny_obj_loader.h +2029 -0
- data/ext/pixo/ext/tinyobjloader/tinyobjloader-config.cmake.in +9 -0
- data/ext/pixo/ext/tinyobjloader/tinyobjloader.pc.in +15 -0
- data/ext/pixo/ext/tinyobjloader/tools/travis_postbuild.sh +12 -0
- data/ext/pixo/ext/tinyobjloader/tools/windows/premake5.exe +0 -0
- data/ext/pixo/ext/tinyobjloader/vcsetup.bat +1 -0
- data/ext/pixo/ext/tinyobjloader/wercker.yml +10 -0
- data/ext/pixo/fadecandy_configs/4x4x4.json +21 -0
- data/ext/pixo/fadecandy_configs/8x8x8.json +18 -0
- data/ext/pixo/patterns/basic.glsl +20 -0
- data/ext/pixo/patterns/bendy_pipes.glsl +116 -0
- data/ext/pixo/patterns/blades.glsl +69 -0
- data/ext/pixo/patterns/blob_neon.glsl +71 -0
- data/ext/pixo/patterns/bubbles.glsl +58 -0
- data/ext/pixo/patterns/chevron.glsl +45 -0
- data/ext/pixo/patterns/clouds.glsl +382 -0
- data/ext/pixo/patterns/cnoise.glsl +162 -0
- data/ext/pixo/patterns/corrente_continua.glsl +51 -0
- data/ext/pixo/patterns/drain.glsl +32 -0
- data/ext/pixo/patterns/dual_spiral.glsl +21 -0
- data/ext/pixo/patterns/ether.glsl +35 -0
- data/ext/pixo/patterns/fire.glsl +56 -0
- data/ext/pixo/patterns/fireball.glsl +229 -0
- data/ext/pixo/patterns/flame.glsl +101 -0
- data/ext/pixo/patterns/flower.glsl +27 -0
- data/ext/pixo/patterns/galaxy.glsl +50 -0
- data/ext/pixo/patterns/goop.glsl +117 -0
- data/ext/pixo/patterns/hypno_rings.glsl +13 -0
- data/ext/pixo/patterns/lightning.glsl +111 -0
- data/ext/pixo/patterns/paint.glsl +39 -0
- data/ext/pixo/patterns/plad.glsl +22 -0
- data/ext/pixo/patterns/plasam.glsl +30 -0
- data/ext/pixo/patterns/plasma_globe.glsl +215 -0
- data/ext/pixo/patterns/pulse.glsl +44 -0
- data/ext/pixo/patterns/pulsing_circles.glsl +32 -0
- data/ext/pixo/patterns/rainbow_ribbon.glsl +41 -0
- data/ext/pixo/patterns/rings.glsl +62 -0
- data/ext/pixo/patterns/sauron.glsl +220 -0
- data/ext/pixo/patterns/scales.glsl +64 -0
- data/ext/pixo/patterns/soccer.glsl +737 -0
- data/ext/pixo/patterns/spherical_polyhedra.glsl +251 -0
- data/ext/pixo/patterns/spiral.glsl +23 -0
- data/ext/pixo/patterns/star.glsl +518 -0
- data/ext/pixo/patterns/tiedy.glsl +39 -0
- data/ext/pixo/patterns/tunnel.glsl +145 -0
- data/ext/pixo/patterns/warping_grid.glsl +50 -0
- data/ext/pixo/pixlib/CMakeLists.txt +34 -0
- data/ext/pixo/pixlib/include/opc_client.h +205 -0
- data/ext/pixo/pixlib/include/pixlib/app.hpp +41 -0
- data/ext/pixo/pixlib/include/pixlib/camera.hpp +78 -0
- data/ext/pixo/pixlib/include/pixlib/cube.hpp +46 -0
- data/ext/pixo/pixlib/include/pixlib/drawable.hpp +11 -0
- data/ext/pixo/pixlib/include/pixlib/fade_candy.hpp +38 -0
- data/ext/pixo/pixlib/include/pixlib/led_cluster.hpp +58 -0
- data/ext/pixo/pixlib/include/pixlib/led_mesh.hpp +60 -0
- data/ext/pixo/pixlib/include/pixlib/led_renderer.hpp +36 -0
- data/ext/pixo/pixlib/include/pixlib/mesh.hpp +56 -0
- data/ext/pixo/pixlib/include/pixlib/pattern.hpp +21 -0
- data/ext/pixo/pixlib/include/pixlib/pattern_renderer.hpp +28 -0
- data/ext/pixo/pixlib/include/pixlib/renderer.hpp +32 -0
- data/ext/pixo/pixlib/include/pixlib/scene.hpp +39 -0
- data/ext/pixo/pixlib/include/pixlib/shader.hpp +19 -0
- data/ext/pixo/pixlib/include/pixlib/texture.hpp +34 -0
- data/ext/pixo/pixlib/include/pixlib/timer.hpp +19 -0
- data/ext/pixo/pixlib/include/pixlib.hpp +6 -0
- data/ext/pixo/pixlib/src/app.cpp +59 -0
- data/ext/pixo/pixlib/src/camera.cpp +106 -0
- data/ext/pixo/pixlib/src/cube.cpp +100 -0
- data/ext/pixo/pixlib/src/fade_candy.cpp +70 -0
- data/ext/pixo/pixlib/src/led_cluster.cpp +78 -0
- data/ext/pixo/pixlib/src/led_mesh.cpp +123 -0
- data/ext/pixo/pixlib/src/led_renderer.cpp +135 -0
- data/ext/pixo/pixlib/src/mesh.cpp +146 -0
- data/ext/pixo/pixlib/src/pattern.cpp +32 -0
- data/ext/pixo/pixlib/src/pattern_renderer.cpp +103 -0
- data/ext/pixo/pixlib/src/renderer.cpp +127 -0
- data/ext/pixo/pixlib/src/scene.cpp +52 -0
- data/ext/pixo/pixlib/src/shader.cpp +59 -0
- data/ext/pixo/pixlib/src/texture.cpp +62 -0
- data/ext/pixo/pixlib/src/timer.cpp +39 -0
- data/ext/pixo/src/CMakeLists.txt +14 -0
- data/ext/pixo/src/main.cpp +244 -0
- data/ext/pixo/src/opengl.h +4 -0
- data/lib/pixo/version.rb +3 -0
- data/lib/pixo.rb +7 -0
- data/pixo.gemspec +34 -0
- data/pkg/pixo-0.1.0.gem +0 -0
- metadata +1539 -0
@@ -0,0 +1,1554 @@
|
|
1
|
+
#include <glm/integer.hpp>
|
2
|
+
#include <glm/vector_relational.hpp>
|
3
|
+
#include <glm/gtc/vec1.hpp>
|
4
|
+
#include <vector>
|
5
|
+
#include <ctime>
|
6
|
+
#include <cstdio>
|
7
|
+
|
8
|
+
enum result
|
9
|
+
{
|
10
|
+
SUCCESS,
|
11
|
+
FAIL,
|
12
|
+
ASSERT,
|
13
|
+
STATIC_ASSERT
|
14
|
+
};
|
15
|
+
|
16
|
+
namespace bitfieldInsert
|
17
|
+
{
|
18
|
+
template <typename genType, typename sizeType>
|
19
|
+
struct type
|
20
|
+
{
|
21
|
+
genType Base;
|
22
|
+
genType Insert;
|
23
|
+
sizeType Offset;
|
24
|
+
sizeType Bits;
|
25
|
+
genType Return;
|
26
|
+
};
|
27
|
+
|
28
|
+
typedef type<glm::uint, glm::uint> typeU32;
|
29
|
+
|
30
|
+
typeU32 const Data32[] =
|
31
|
+
{
|
32
|
+
{0x00000000, 0xffffffff, 0, 32, 0xffffffff},
|
33
|
+
{0x00000000, 0xffffffff, 0, 31, 0x7fffffff},
|
34
|
+
{0x00000000, 0xffffffff, 0, 0, 0x00000000},
|
35
|
+
{0xff000000, 0x0000ff00, 8, 8, 0xff00ff00},
|
36
|
+
{0xffff0000, 0x0000ffff, 16, 16, 0x00000000},
|
37
|
+
{0x0000ffff, 0xffff0000, 16, 16, 0xffffffff}
|
38
|
+
};
|
39
|
+
|
40
|
+
int test()
|
41
|
+
{
|
42
|
+
int Error = 0;
|
43
|
+
glm::uint count = sizeof(Data32) / sizeof(typeU32);
|
44
|
+
|
45
|
+
for(glm::uint i = 0; i < count; ++i)
|
46
|
+
{
|
47
|
+
glm::uint Return = glm::bitfieldInsert(
|
48
|
+
Data32[i].Base,
|
49
|
+
Data32[i].Insert,
|
50
|
+
Data32[i].Offset,
|
51
|
+
Data32[i].Bits);
|
52
|
+
|
53
|
+
Error += Data32[i].Return == Return ? 0 : 1;
|
54
|
+
}
|
55
|
+
|
56
|
+
return Error;
|
57
|
+
}
|
58
|
+
}//bitfieldInsert
|
59
|
+
|
60
|
+
namespace bitfieldExtract
|
61
|
+
{
|
62
|
+
template <typename genType, typename sizeType>
|
63
|
+
struct type
|
64
|
+
{
|
65
|
+
genType Value;
|
66
|
+
sizeType Offset;
|
67
|
+
sizeType Bits;
|
68
|
+
genType Return;
|
69
|
+
result Result;
|
70
|
+
};
|
71
|
+
|
72
|
+
typedef type<glm::uint, glm::uint> typeU32;
|
73
|
+
|
74
|
+
typeU32 const Data32[] =
|
75
|
+
{
|
76
|
+
{0xffffffff, 0,32, 0xffffffff, SUCCESS},
|
77
|
+
{0xffffffff, 8, 0, 0x00000000, SUCCESS},
|
78
|
+
{0x00000000, 0,32, 0x00000000, SUCCESS},
|
79
|
+
{0x0f0f0f0f, 0,32, 0x0f0f0f0f, SUCCESS},
|
80
|
+
{0x00000000, 8, 0, 0x00000000, SUCCESS},
|
81
|
+
{0x80000000,31, 1, 0x00000001, SUCCESS},
|
82
|
+
{0x7fffffff,31, 1, 0x00000000, SUCCESS},
|
83
|
+
{0x00000300, 8, 8, 0x00000003, SUCCESS},
|
84
|
+
{0x0000ff00, 8, 8, 0x000000ff, SUCCESS},
|
85
|
+
{0xfffffff0, 0, 5, 0x00000010, SUCCESS},
|
86
|
+
{0x000000ff, 1, 3, 0x00000007, SUCCESS},
|
87
|
+
{0x000000ff, 0, 3, 0x00000007, SUCCESS},
|
88
|
+
{0x00000000, 0, 2, 0x00000000, SUCCESS},
|
89
|
+
{0xffffffff, 0, 8, 0x000000ff, SUCCESS},
|
90
|
+
{0xffff0000,16,16, 0x0000ffff, SUCCESS},
|
91
|
+
{0xfffffff0, 0, 8, 0x00000000, FAIL},
|
92
|
+
{0xffffffff,16,16, 0x00000000, FAIL},
|
93
|
+
//{0xffffffff,32, 1, 0x00000000, ASSERT}, // Throw an assert
|
94
|
+
//{0xffffffff, 0,33, 0x00000000, ASSERT}, // Throw an assert
|
95
|
+
//{0xffffffff,16,16, 0x00000000, ASSERT}, // Throw an assert
|
96
|
+
};
|
97
|
+
|
98
|
+
int test()
|
99
|
+
{
|
100
|
+
int Error = 0;
|
101
|
+
|
102
|
+
glm::uint count = sizeof(Data32) / sizeof(typeU32);
|
103
|
+
|
104
|
+
for(glm::uint i = 0; i < count; ++i)
|
105
|
+
{
|
106
|
+
glm::uint Return = glm::bitfieldExtract(
|
107
|
+
Data32[i].Value,
|
108
|
+
Data32[i].Offset,
|
109
|
+
Data32[i].Bits);
|
110
|
+
|
111
|
+
bool Compare = Data32[i].Return == Return;
|
112
|
+
|
113
|
+
if(Data32[i].Result == SUCCESS && Compare)
|
114
|
+
continue;
|
115
|
+
else if(Data32[i].Result == FAIL && !Compare)
|
116
|
+
continue;
|
117
|
+
|
118
|
+
Error += 1;
|
119
|
+
}
|
120
|
+
|
121
|
+
return Error;
|
122
|
+
}
|
123
|
+
}//extractField
|
124
|
+
|
125
|
+
namespace bitfieldReverse
|
126
|
+
{
|
127
|
+
/*
|
128
|
+
GLM_FUNC_QUALIFIER unsigned int bitfieldReverseLoop(unsigned int v)
|
129
|
+
{
|
130
|
+
unsigned int Result(0);
|
131
|
+
unsigned int const BitSize = static_cast<unsigned int>(sizeof(unsigned int) * 8);
|
132
|
+
for(unsigned int i = 0; i < BitSize; ++i)
|
133
|
+
{
|
134
|
+
unsigned int const BitSet(v & (static_cast<unsigned int>(1) << i));
|
135
|
+
unsigned int const BitFirst(BitSet >> i);
|
136
|
+
Result |= BitFirst << (BitSize - 1 - i);
|
137
|
+
}
|
138
|
+
return Result;
|
139
|
+
}
|
140
|
+
|
141
|
+
GLM_FUNC_QUALIFIER glm::uint64_t bitfieldReverseLoop(glm::uint64_t v)
|
142
|
+
{
|
143
|
+
glm::uint64_t Result(0);
|
144
|
+
glm::uint64_t const BitSize = static_cast<glm::uint64_t>(sizeof(unsigned int) * 8);
|
145
|
+
for(glm::uint64_t i = 0; i < BitSize; ++i)
|
146
|
+
{
|
147
|
+
glm::uint64_t const BitSet(v & (static_cast<glm::uint64_t>(1) << i));
|
148
|
+
glm::uint64_t const BitFirst(BitSet >> i);
|
149
|
+
Result |= BitFirst << (BitSize - 1 - i);
|
150
|
+
}
|
151
|
+
return Result;
|
152
|
+
}
|
153
|
+
*/
|
154
|
+
template <typename T, glm::precision P, template <typename, glm::precision> class vecType>
|
155
|
+
GLM_FUNC_QUALIFIER vecType<T, P> bitfieldReverseLoop(vecType<T, P> const & v)
|
156
|
+
{
|
157
|
+
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_integer, "'bitfieldReverse' only accept integer values");
|
158
|
+
|
159
|
+
vecType<T, P> Result(0);
|
160
|
+
T const BitSize = static_cast<T>(sizeof(T) * 8);
|
161
|
+
for(T i = 0; i < BitSize; ++i)
|
162
|
+
{
|
163
|
+
vecType<T, P> const BitSet(v & (static_cast<T>(1) << i));
|
164
|
+
vecType<T, P> const BitFirst(BitSet >> i);
|
165
|
+
Result |= BitFirst << (BitSize - 1 - i);
|
166
|
+
}
|
167
|
+
return Result;
|
168
|
+
}
|
169
|
+
|
170
|
+
template <typename T>
|
171
|
+
GLM_FUNC_QUALIFIER T bitfieldReverseLoop(T v)
|
172
|
+
{
|
173
|
+
return bitfieldReverseLoop(glm::tvec1<T>(v)).x;
|
174
|
+
}
|
175
|
+
|
176
|
+
GLM_FUNC_QUALIFIER glm::uint32_t bitfieldReverseUint32(glm::uint32_t x)
|
177
|
+
{
|
178
|
+
x = (x & 0x55555555) << 1 | (x & 0xAAAAAAAA) >> 1;
|
179
|
+
x = (x & 0x33333333) << 2 | (x & 0xCCCCCCCC) >> 2;
|
180
|
+
x = (x & 0x0F0F0F0F) << 4 | (x & 0xF0F0F0F0) >> 4;
|
181
|
+
x = (x & 0x00FF00FF) << 8 | (x & 0xFF00FF00) >> 8;
|
182
|
+
x = (x & 0x0000FFFF) << 16 | (x & 0xFFFF0000) >> 16;
|
183
|
+
return x;
|
184
|
+
}
|
185
|
+
|
186
|
+
GLM_FUNC_QUALIFIER glm::uint64_t bitfieldReverseUint64(glm::uint64_t x)
|
187
|
+
{
|
188
|
+
x = (x & 0x5555555555555555) << 1 | (x & 0xAAAAAAAAAAAAAAAA) >> 1;
|
189
|
+
x = (x & 0x3333333333333333) << 2 | (x & 0xCCCCCCCCCCCCCCCC) >> 2;
|
190
|
+
x = (x & 0x0F0F0F0F0F0F0F0F) << 4 | (x & 0xF0F0F0F0F0F0F0F0) >> 4;
|
191
|
+
x = (x & 0x00FF00FF00FF00FF) << 8 | (x & 0xFF00FF00FF00FF00) >> 8;
|
192
|
+
x = (x & 0x0000FFFF0000FFFF) << 16 | (x & 0xFFFF0000FFFF0000) >> 16;
|
193
|
+
x = (x & 0x00000000FFFFFFFF) << 32 | (x & 0xFFFFFFFF00000000) >> 32;
|
194
|
+
return x;
|
195
|
+
}
|
196
|
+
|
197
|
+
template <bool EXEC = false>
|
198
|
+
struct compute_bitfieldReverseStep
|
199
|
+
{
|
200
|
+
template <typename T, glm::precision P, template <class, glm::precision> class vecType>
|
201
|
+
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & v, T, T)
|
202
|
+
{
|
203
|
+
return v;
|
204
|
+
}
|
205
|
+
};
|
206
|
+
|
207
|
+
template <>
|
208
|
+
struct compute_bitfieldReverseStep<true>
|
209
|
+
{
|
210
|
+
template <typename T, glm::precision P, template <class, glm::precision> class vecType>
|
211
|
+
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & v, T Mask, T Shift)
|
212
|
+
{
|
213
|
+
return (v & Mask) << Shift | (v & (~Mask)) >> Shift;
|
214
|
+
}
|
215
|
+
};
|
216
|
+
|
217
|
+
template <typename T, glm::precision P, template <typename, glm::precision> class vecType>
|
218
|
+
GLM_FUNC_QUALIFIER vecType<T, P> bitfieldReverseOps(vecType<T, P> const & v)
|
219
|
+
{
|
220
|
+
vecType<T, P> x(v);
|
221
|
+
x = compute_bitfieldReverseStep<sizeof(T) * 8 >= 2>::call(x, T(0x5555555555555555ull), static_cast<T>( 1));
|
222
|
+
x = compute_bitfieldReverseStep<sizeof(T) * 8 >= 4>::call(x, T(0x3333333333333333ull), static_cast<T>( 2));
|
223
|
+
x = compute_bitfieldReverseStep<sizeof(T) * 8 >= 8>::call(x, T(0x0F0F0F0F0F0F0F0Full), static_cast<T>( 4));
|
224
|
+
x = compute_bitfieldReverseStep<sizeof(T) * 8 >= 16>::call(x, T(0x00FF00FF00FF00FFull), static_cast<T>( 8));
|
225
|
+
x = compute_bitfieldReverseStep<sizeof(T) * 8 >= 32>::call(x, T(0x0000FFFF0000FFFFull), static_cast<T>(16));
|
226
|
+
x = compute_bitfieldReverseStep<sizeof(T) * 8 >= 64>::call(x, T(0x00000000FFFFFFFFull), static_cast<T>(32));
|
227
|
+
return x;
|
228
|
+
}
|
229
|
+
|
230
|
+
template <typename genType>
|
231
|
+
GLM_FUNC_QUALIFIER genType bitfieldReverseOps(genType x)
|
232
|
+
{
|
233
|
+
return bitfieldReverseOps(glm::tvec1<genType, glm::defaultp>(x)).x;
|
234
|
+
}
|
235
|
+
|
236
|
+
template <typename genType>
|
237
|
+
struct type
|
238
|
+
{
|
239
|
+
genType Value;
|
240
|
+
genType Return;
|
241
|
+
result Result;
|
242
|
+
};
|
243
|
+
|
244
|
+
typedef type<glm::uint> typeU32;
|
245
|
+
|
246
|
+
typeU32 const Data32[] =
|
247
|
+
{
|
248
|
+
{0x00000001, 0x80000000, SUCCESS},
|
249
|
+
{0x0000000f, 0xf0000000, SUCCESS},
|
250
|
+
{0x000000ff, 0xff000000, SUCCESS},
|
251
|
+
{0xf0000000, 0x0000000f, SUCCESS},
|
252
|
+
{0xff000000, 0x000000ff, SUCCESS},
|
253
|
+
{0xffffffff, 0xffffffff, SUCCESS},
|
254
|
+
{0x00000000, 0x00000000, SUCCESS}
|
255
|
+
};
|
256
|
+
|
257
|
+
typedef type<glm::uint64> typeU64;
|
258
|
+
|
259
|
+
#if(((GLM_COMPILER & GLM_COMPILER_GCC) == GLM_COMPILER_GCC) && (GLM_COMPILER < GLM_COMPILER_GCC44))
|
260
|
+
typeU64 const Data64[] =
|
261
|
+
{
|
262
|
+
{0xf000000000000000LLU, 0x000000000000000fLLU, SUCCESS},
|
263
|
+
{0xffffffffffffffffLLU, 0xffffffffffffffffLLU, SUCCESS},
|
264
|
+
{0x0000000000000000LLU, 0x0000000000000000LLU, SUCCESS}
|
265
|
+
};
|
266
|
+
#else
|
267
|
+
typeU64 const Data64[] =
|
268
|
+
{
|
269
|
+
{0x00000000000000ff, 0xff00000000000000, SUCCESS},
|
270
|
+
{0x000000000000000f, 0xf000000000000000, SUCCESS},
|
271
|
+
{0xf000000000000000, 0x000000000000000f, SUCCESS},
|
272
|
+
{0xffffffffffffffff, 0xffffffffffffffff, SUCCESS},
|
273
|
+
{0x0000000000000000, 0x0000000000000000, SUCCESS}
|
274
|
+
};
|
275
|
+
#endif
|
276
|
+
|
277
|
+
int test32_bitfieldReverse()
|
278
|
+
{
|
279
|
+
int Error = 0;
|
280
|
+
std::size_t const Count = sizeof(Data32) / sizeof(typeU32);
|
281
|
+
|
282
|
+
for(std::size_t i = 0; i < Count; ++i)
|
283
|
+
{
|
284
|
+
glm::uint Return = glm::bitfieldReverse(Data32[i].Value);
|
285
|
+
|
286
|
+
bool Compare = Data32[i].Return == Return;
|
287
|
+
|
288
|
+
if(Data32[i].Result == SUCCESS)
|
289
|
+
Error += Compare ? 0 : 1;
|
290
|
+
else
|
291
|
+
Error += Compare ? 1 : 0;
|
292
|
+
}
|
293
|
+
|
294
|
+
return Error;
|
295
|
+
}
|
296
|
+
|
297
|
+
int test32_bitfieldReverseLoop()
|
298
|
+
{
|
299
|
+
int Error = 0;
|
300
|
+
std::size_t const Count = sizeof(Data32) / sizeof(typeU32);
|
301
|
+
|
302
|
+
for(std::size_t i = 0; i < Count; ++i)
|
303
|
+
{
|
304
|
+
glm::uint Return = bitfieldReverseLoop(Data32[i].Value);
|
305
|
+
|
306
|
+
bool Compare = Data32[i].Return == Return;
|
307
|
+
|
308
|
+
if(Data32[i].Result == SUCCESS)
|
309
|
+
Error += Compare ? 0 : 1;
|
310
|
+
else
|
311
|
+
Error += Compare ? 1 : 0;
|
312
|
+
}
|
313
|
+
|
314
|
+
return Error;
|
315
|
+
}
|
316
|
+
|
317
|
+
int test32_bitfieldReverseUint32()
|
318
|
+
{
|
319
|
+
int Error = 0;
|
320
|
+
std::size_t const Count = sizeof(Data32) / sizeof(typeU32);
|
321
|
+
|
322
|
+
for(std::size_t i = 0; i < Count; ++i)
|
323
|
+
{
|
324
|
+
glm::uint Return = bitfieldReverseUint32(Data32[i].Value);
|
325
|
+
|
326
|
+
bool Compare = Data32[i].Return == Return;
|
327
|
+
|
328
|
+
if(Data32[i].Result == SUCCESS)
|
329
|
+
Error += Compare ? 0 : 1;
|
330
|
+
else
|
331
|
+
Error += Compare ? 1 : 0;
|
332
|
+
}
|
333
|
+
|
334
|
+
return Error;
|
335
|
+
}
|
336
|
+
|
337
|
+
int test32_bitfieldReverseOps()
|
338
|
+
{
|
339
|
+
int Error = 0;
|
340
|
+
std::size_t const Count = sizeof(Data32) / sizeof(typeU32);
|
341
|
+
|
342
|
+
for(std::size_t i = 0; i < Count; ++i)
|
343
|
+
{
|
344
|
+
glm::uint Return = bitfieldReverseOps(Data32[i].Value);
|
345
|
+
|
346
|
+
bool Compare = Data32[i].Return == Return;
|
347
|
+
|
348
|
+
if(Data32[i].Result == SUCCESS)
|
349
|
+
Error += Compare ? 0 : 1;
|
350
|
+
else
|
351
|
+
Error += Compare ? 1 : 0;
|
352
|
+
}
|
353
|
+
|
354
|
+
return Error;
|
355
|
+
}
|
356
|
+
|
357
|
+
int test64_bitfieldReverse()
|
358
|
+
{
|
359
|
+
int Error = 0;
|
360
|
+
std::size_t const Count = sizeof(Data64) / sizeof(typeU64);
|
361
|
+
|
362
|
+
for(std::size_t i = 0; i < Count; ++i)
|
363
|
+
{
|
364
|
+
glm::uint64 Return = glm::bitfieldReverse(Data64[i].Value);
|
365
|
+
|
366
|
+
bool Compare = Data64[i].Return == Return;
|
367
|
+
|
368
|
+
if(Data64[i].Result == SUCCESS)
|
369
|
+
Error += Compare ? 0 : 1;
|
370
|
+
else
|
371
|
+
Error += Compare ? 1 : 0;
|
372
|
+
}
|
373
|
+
|
374
|
+
return Error;
|
375
|
+
}
|
376
|
+
|
377
|
+
int test64_bitfieldReverseLoop()
|
378
|
+
{
|
379
|
+
int Error = 0;
|
380
|
+
std::size_t const Count = sizeof(Data64) / sizeof(typeU64);
|
381
|
+
|
382
|
+
for(std::size_t i = 0; i < Count; ++i)
|
383
|
+
{
|
384
|
+
glm::uint64 Return = bitfieldReverseLoop(Data64[i].Value);
|
385
|
+
|
386
|
+
bool Compare = Data64[i].Return == Return;
|
387
|
+
|
388
|
+
if(Data32[i].Result == SUCCESS)
|
389
|
+
Error += Compare ? 0 : 1;
|
390
|
+
else
|
391
|
+
Error += Compare ? 1 : 0;
|
392
|
+
}
|
393
|
+
|
394
|
+
return Error;
|
395
|
+
}
|
396
|
+
|
397
|
+
int test64_bitfieldReverseUint64()
|
398
|
+
{
|
399
|
+
int Error = 0;
|
400
|
+
std::size_t const Count = sizeof(Data64) / sizeof(typeU64);
|
401
|
+
|
402
|
+
for(std::size_t i = 0; i < Count; ++i)
|
403
|
+
{
|
404
|
+
glm::uint64 Return = bitfieldReverseUint64(Data64[i].Value);
|
405
|
+
|
406
|
+
bool Compare = Data64[i].Return == Return;
|
407
|
+
|
408
|
+
if(Data64[i].Result == SUCCESS)
|
409
|
+
Error += Compare ? 0 : 1;
|
410
|
+
else
|
411
|
+
Error += Compare ? 1 : 0;
|
412
|
+
}
|
413
|
+
|
414
|
+
return Error;
|
415
|
+
}
|
416
|
+
|
417
|
+
int test64_bitfieldReverseOps()
|
418
|
+
{
|
419
|
+
int Error = 0;
|
420
|
+
std::size_t const Count = sizeof(Data64) / sizeof(typeU64);
|
421
|
+
|
422
|
+
for(std::size_t i = 0; i < Count; ++i)
|
423
|
+
{
|
424
|
+
glm::uint64 Return = bitfieldReverseOps(Data64[i].Value);
|
425
|
+
|
426
|
+
bool Compare = Data64[i].Return == Return;
|
427
|
+
|
428
|
+
if(Data64[i].Result == SUCCESS)
|
429
|
+
Error += Compare ? 0 : 1;
|
430
|
+
else
|
431
|
+
Error += Compare ? 1 : 0;
|
432
|
+
}
|
433
|
+
|
434
|
+
return Error;
|
435
|
+
}
|
436
|
+
|
437
|
+
int test()
|
438
|
+
{
|
439
|
+
int Error = 0;
|
440
|
+
|
441
|
+
Error += test32_bitfieldReverse();
|
442
|
+
Error += test32_bitfieldReverseLoop();
|
443
|
+
Error += test32_bitfieldReverseUint32();
|
444
|
+
Error += test32_bitfieldReverseOps();
|
445
|
+
|
446
|
+
Error += test64_bitfieldReverse();
|
447
|
+
Error += test64_bitfieldReverseLoop();
|
448
|
+
Error += test64_bitfieldReverseUint64();
|
449
|
+
Error += test64_bitfieldReverseOps();
|
450
|
+
|
451
|
+
return Error;
|
452
|
+
}
|
453
|
+
|
454
|
+
int perf32(glm::uint32 Count)
|
455
|
+
{
|
456
|
+
int Error = 0;
|
457
|
+
|
458
|
+
std::vector<glm::uint32> Data;
|
459
|
+
Data.resize(static_cast<std::size_t>(Count));
|
460
|
+
|
461
|
+
std::clock_t Timestamps0 = std::clock();
|
462
|
+
|
463
|
+
for(glm::uint32 k = 0; k < Count; ++k)
|
464
|
+
Data[k] = glm::bitfieldReverse(k);
|
465
|
+
|
466
|
+
std::clock_t Timestamps1 = std::clock();
|
467
|
+
|
468
|
+
for(glm::uint32 k = 0; k < Count; ++k)
|
469
|
+
Data[k] = bitfieldReverseLoop(k);
|
470
|
+
|
471
|
+
std::clock_t Timestamps2 = std::clock();
|
472
|
+
|
473
|
+
for(glm::uint32 k = 0; k < Count; ++k)
|
474
|
+
Data[k] = bitfieldReverseUint32(k);
|
475
|
+
|
476
|
+
std::clock_t Timestamps3 = std::clock();
|
477
|
+
|
478
|
+
for(glm::uint32 k = 0; k < Count; ++k)
|
479
|
+
Data[k] = bitfieldReverseOps(k);
|
480
|
+
|
481
|
+
std::clock_t Timestamps4 = std::clock();
|
482
|
+
|
483
|
+
std::printf("glm::bitfieldReverse: %d clocks\n", static_cast<unsigned int>(Timestamps1 - Timestamps0));
|
484
|
+
std::printf("bitfieldReverseLoop: %d clocks\n", static_cast<unsigned int>(Timestamps2 - Timestamps1));
|
485
|
+
std::printf("bitfieldReverseUint32: %d clocks\n", static_cast<unsigned int>(Timestamps3 - Timestamps2));
|
486
|
+
std::printf("bitfieldReverseOps: %d clocks\n", static_cast<unsigned int>(Timestamps4 - Timestamps3));
|
487
|
+
|
488
|
+
return Error;
|
489
|
+
}
|
490
|
+
|
491
|
+
int perf64(glm::uint64 Count)
|
492
|
+
{
|
493
|
+
int Error = 0;
|
494
|
+
|
495
|
+
std::vector<glm::uint64> Data;
|
496
|
+
Data.resize(static_cast<std::size_t>(Count));
|
497
|
+
|
498
|
+
std::clock_t Timestamps0 = std::clock();
|
499
|
+
|
500
|
+
for(glm::uint32 k = 0; k < Count; ++k)
|
501
|
+
Data[k] = glm::bitfieldReverse(k);
|
502
|
+
|
503
|
+
std::clock_t Timestamps1 = std::clock();
|
504
|
+
|
505
|
+
for(glm::uint64 k = 0; k < Count; ++k)
|
506
|
+
Data[k] = bitfieldReverseLoop(k);
|
507
|
+
|
508
|
+
std::clock_t Timestamps2 = std::clock();
|
509
|
+
|
510
|
+
for(glm::uint64 k = 0; k < Count; ++k)
|
511
|
+
Data[k] = bitfieldReverseUint64(k);
|
512
|
+
|
513
|
+
std::clock_t Timestamps3 = std::clock();
|
514
|
+
|
515
|
+
for(glm::uint64 k = 0; k < Count; ++k)
|
516
|
+
Data[k] = bitfieldReverseOps(k);
|
517
|
+
|
518
|
+
std::clock_t Timestamps4 = std::clock();
|
519
|
+
|
520
|
+
std::printf("glm::bitfieldReverse - 64: %d clocks\n", static_cast<unsigned int>(Timestamps1 - Timestamps0));
|
521
|
+
std::printf("bitfieldReverseLoop - 64: %d clocks\n", static_cast<unsigned int>(Timestamps2 - Timestamps1));
|
522
|
+
std::printf("bitfieldReverseUint - 64: %d clocks\n", static_cast<unsigned int>(Timestamps3 - Timestamps2));
|
523
|
+
std::printf("bitfieldReverseOps - 64: %d clocks\n", static_cast<unsigned int>(Timestamps4 - Timestamps3));
|
524
|
+
|
525
|
+
return Error;
|
526
|
+
}
|
527
|
+
|
528
|
+
int perf(std::size_t Samples)
|
529
|
+
{
|
530
|
+
int Error = 0;
|
531
|
+
|
532
|
+
Error += perf32(static_cast<glm::uint32>(Samples));
|
533
|
+
Error += perf64(static_cast<glm::uint64>(Samples));
|
534
|
+
|
535
|
+
return Error;
|
536
|
+
}
|
537
|
+
}//bitfieldReverse
|
538
|
+
|
539
|
+
namespace findMSB
|
540
|
+
{
|
541
|
+
template <typename genType, typename retType>
|
542
|
+
struct type
|
543
|
+
{
|
544
|
+
genType Value;
|
545
|
+
retType Return;
|
546
|
+
};
|
547
|
+
|
548
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
549
|
+
template <typename genIUType>
|
550
|
+
GLM_FUNC_QUALIFIER int findMSB_intrinsic(genIUType Value)
|
551
|
+
{
|
552
|
+
GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'findMSB' only accept integer values");
|
553
|
+
|
554
|
+
if(Value == 0)
|
555
|
+
return -1;
|
556
|
+
|
557
|
+
unsigned long Result(0);
|
558
|
+
_BitScanReverse(&Result, Value);
|
559
|
+
return int(Result);
|
560
|
+
}
|
561
|
+
# endif//GLM_HAS_BITSCAN_WINDOWS
|
562
|
+
|
563
|
+
# if GLM_ARCH & GLM_ARCH_AVX && GLM_COMPILER & GLM_COMPILER_VC
|
564
|
+
template <typename genIUType>
|
565
|
+
GLM_FUNC_QUALIFIER int findMSB_avx(genIUType Value)
|
566
|
+
{
|
567
|
+
GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'findMSB' only accept integer values");
|
568
|
+
|
569
|
+
if(Value == 0)
|
570
|
+
return -1;
|
571
|
+
|
572
|
+
return int(_tzcnt_u32(Value));
|
573
|
+
}
|
574
|
+
# endif//GLM_ARCH & GLM_ARCH_AVX && GLM_PLATFORM & GLM_PLATFORM_WINDOWS
|
575
|
+
|
576
|
+
template <typename genIUType>
|
577
|
+
GLM_FUNC_QUALIFIER int findMSB_095(genIUType Value)
|
578
|
+
{
|
579
|
+
GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'findMSB' only accept integer values");
|
580
|
+
|
581
|
+
if(Value == genIUType(0) || Value == genIUType(-1))
|
582
|
+
return -1;
|
583
|
+
else if(Value > 0)
|
584
|
+
{
|
585
|
+
genIUType Bit = genIUType(-1);
|
586
|
+
for(genIUType tmp = Value; tmp > 0; tmp >>= 1, ++Bit){}
|
587
|
+
return Bit;
|
588
|
+
}
|
589
|
+
else //if(Value < 0)
|
590
|
+
{
|
591
|
+
int const BitCount(sizeof(genIUType) * 8);
|
592
|
+
int MostSignificantBit(-1);
|
593
|
+
for(int BitIndex(0); BitIndex < BitCount; ++BitIndex)
|
594
|
+
MostSignificantBit = (Value & (1 << BitIndex)) ? MostSignificantBit : BitIndex;
|
595
|
+
assert(MostSignificantBit >= 0);
|
596
|
+
return MostSignificantBit;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
|
600
|
+
template <typename genIUType>
|
601
|
+
GLM_FUNC_QUALIFIER int findMSB_nlz1(genIUType x)
|
602
|
+
{
|
603
|
+
GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'findMSB' only accept integer values");
|
604
|
+
|
605
|
+
if (x == 0)
|
606
|
+
return -1;
|
607
|
+
|
608
|
+
int n = 0;
|
609
|
+
if (x <= 0x0000FFFF) {n = n +16; x = x <<16;}
|
610
|
+
if (x <= 0x00FFFFFF) {n = n + 8; x = x << 8;}
|
611
|
+
if (x <= 0x0FFFFFFF) {n = n + 4; x = x << 4;}
|
612
|
+
if (x <= 0x3FFFFFFF) {n = n + 2; x = x << 2;}
|
613
|
+
if (x <= 0x7FFFFFFF) {n = n + 1;}
|
614
|
+
return 31 - n;
|
615
|
+
}
|
616
|
+
|
617
|
+
int findMSB_nlz2(unsigned int x)
|
618
|
+
{
|
619
|
+
unsigned y;
|
620
|
+
int n;
|
621
|
+
|
622
|
+
n = 32;
|
623
|
+
y = x >>16; if (y != 0) {n = n -16; x = y;}
|
624
|
+
y = x >> 8; if (y != 0) {n = n - 8; x = y;}
|
625
|
+
y = x >> 4; if (y != 0) {n = n - 4; x = y;}
|
626
|
+
y = x >> 2; if (y != 0) {n = n - 2; x = y;}
|
627
|
+
y = x >> 1; if (y != 0) return n - 2;
|
628
|
+
return 32 - (n - x);
|
629
|
+
}
|
630
|
+
|
631
|
+
int findMSB_pop(unsigned int x)
|
632
|
+
{
|
633
|
+
x = x | (x >> 1);
|
634
|
+
x = x | (x >> 2);
|
635
|
+
x = x | (x >> 4);
|
636
|
+
x = x | (x >> 8);
|
637
|
+
x = x | (x >>16);
|
638
|
+
return 31 - glm::bitCount(~x);
|
639
|
+
}
|
640
|
+
|
641
|
+
int perf_int(std::size_t Count)
|
642
|
+
{
|
643
|
+
type<int, int> const Data[] =
|
644
|
+
{
|
645
|
+
{0x00000000, -1},
|
646
|
+
{0x00000001, 0},
|
647
|
+
{0x00000002, 1},
|
648
|
+
{0x00000003, 1},
|
649
|
+
{0x00000004, 2},
|
650
|
+
{0x00000005, 2},
|
651
|
+
{0x00000007, 2},
|
652
|
+
{0x00000008, 3},
|
653
|
+
{0x00000010, 4},
|
654
|
+
{0x00000020, 5},
|
655
|
+
{0x00000040, 6},
|
656
|
+
{0x00000080, 7},
|
657
|
+
{0x00000100, 8},
|
658
|
+
{0x00000200, 9},
|
659
|
+
{0x00000400, 10},
|
660
|
+
{0x00000800, 11},
|
661
|
+
{0x00001000, 12},
|
662
|
+
{0x00002000, 13},
|
663
|
+
{0x00004000, 14},
|
664
|
+
{0x00008000, 15},
|
665
|
+
{0x00010000, 16},
|
666
|
+
{0x00020000, 17},
|
667
|
+
{0x00040000, 18},
|
668
|
+
{0x00080000, 19},
|
669
|
+
{0x00100000, 20},
|
670
|
+
{0x00200000, 21},
|
671
|
+
{0x00400000, 22},
|
672
|
+
{0x00800000, 23},
|
673
|
+
{0x01000000, 24},
|
674
|
+
{0x02000000, 25},
|
675
|
+
{0x04000000, 26},
|
676
|
+
{0x08000000, 27},
|
677
|
+
{0x10000000, 28},
|
678
|
+
{0x20000000, 29},
|
679
|
+
{0x40000000, 30}
|
680
|
+
};
|
681
|
+
|
682
|
+
int Error(0);
|
683
|
+
|
684
|
+
std::clock_t Timestamps0 = std::clock();
|
685
|
+
|
686
|
+
for(std::size_t k = 0; k < Count; ++k)
|
687
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<int, int>); ++i)
|
688
|
+
{
|
689
|
+
int Result = glm::findMSB(Data[i].Value);
|
690
|
+
Error += Data[i].Return == Result ? 0 : 1;
|
691
|
+
}
|
692
|
+
|
693
|
+
std::clock_t Timestamps1 = std::clock();
|
694
|
+
|
695
|
+
for(std::size_t k = 0; k < Count; ++k)
|
696
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<int, int>); ++i)
|
697
|
+
{
|
698
|
+
int Result = findMSB_nlz1(Data[i].Value);
|
699
|
+
Error += Data[i].Return == Result ? 0 : 1;
|
700
|
+
}
|
701
|
+
|
702
|
+
std::clock_t Timestamps2 = std::clock();
|
703
|
+
|
704
|
+
for(std::size_t k = 0; k < Count; ++k)
|
705
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<int, int>); ++i)
|
706
|
+
{
|
707
|
+
int Result = findMSB_nlz2(Data[i].Value);
|
708
|
+
Error += Data[i].Return == Result ? 0 : 1;
|
709
|
+
}
|
710
|
+
|
711
|
+
std::clock_t Timestamps3 = std::clock();
|
712
|
+
|
713
|
+
for(std::size_t k = 0; k < Count; ++k)
|
714
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<int, int>); ++i)
|
715
|
+
{
|
716
|
+
int Result = findMSB_095(Data[i].Value);
|
717
|
+
Error += Data[i].Return == Result ? 0 : 1;
|
718
|
+
}
|
719
|
+
|
720
|
+
std::clock_t Timestamps4 = std::clock();
|
721
|
+
|
722
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
723
|
+
for(std::size_t k = 0; k < Count; ++k)
|
724
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<int, int>); ++i)
|
725
|
+
{
|
726
|
+
int Result = findMSB_intrinsic(Data[i].Value);
|
727
|
+
Error += Data[i].Return == Result ? 0 : 1;
|
728
|
+
}
|
729
|
+
# endif//GLM_HAS_BITSCAN_WINDOWS
|
730
|
+
|
731
|
+
std::clock_t Timestamps5 = std::clock();
|
732
|
+
|
733
|
+
for(std::size_t k = 0; k < Count; ++k)
|
734
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<int, int>); ++i)
|
735
|
+
{
|
736
|
+
int Result = findMSB_pop(Data[i].Value);
|
737
|
+
Error += Data[i].Return == Result ? 0 : 1;
|
738
|
+
}
|
739
|
+
|
740
|
+
std::clock_t Timestamps6 = std::clock();
|
741
|
+
|
742
|
+
# if GLM_ARCH & GLM_ARCH_AVX && GLM_COMPILER & GLM_COMPILER_VC
|
743
|
+
for(std::size_t k = 0; k < Count; ++k)
|
744
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<int, int>); ++i)
|
745
|
+
{
|
746
|
+
int Result = findMSB_avx(Data[i].Value);
|
747
|
+
Error += Data[i].Return == Result ? 0 : 1;
|
748
|
+
}
|
749
|
+
# endif
|
750
|
+
|
751
|
+
std::clock_t Timestamps7 = std::clock();
|
752
|
+
|
753
|
+
std::printf("glm::findMSB: %d clocks\n", static_cast<unsigned int>(Timestamps1 - Timestamps0));
|
754
|
+
std::printf("findMSB - nlz1: %d clocks\n", static_cast<unsigned int>(Timestamps2 - Timestamps1));
|
755
|
+
std::printf("findMSB - nlz2: %d clocks\n", static_cast<unsigned int>(Timestamps3 - Timestamps2));
|
756
|
+
std::printf("findMSB - 0.9.5: %d clocks\n", static_cast<unsigned int>(Timestamps4 - Timestamps3));
|
757
|
+
|
758
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
759
|
+
std::printf("findMSB - intrinsics: %d clocks\n", static_cast<unsigned int>(Timestamps5 - Timestamps4));
|
760
|
+
# endif//GLM_HAS_BITSCAN_WINDOWS
|
761
|
+
std::printf("findMSB - pop: %d clocks\n", static_cast<unsigned int>(Timestamps6 - Timestamps5));
|
762
|
+
|
763
|
+
# if GLM_ARCH & GLM_ARCH_AVX && GLM_COMPILER & GLM_COMPILER_VC
|
764
|
+
std::printf("findMSB - avx tzcnt: %d clocks\n", static_cast<unsigned int>(Timestamps7 - Timestamps6));
|
765
|
+
# endif//GLM_ARCH & GLM_ARCH_AVX && GLM_PLATFORM & GLM_PLATFORM_WINDOWS
|
766
|
+
|
767
|
+
return Error;
|
768
|
+
}
|
769
|
+
|
770
|
+
int test_ivec4()
|
771
|
+
{
|
772
|
+
type<glm::ivec4, glm::ivec4> const Data[] =
|
773
|
+
{
|
774
|
+
{glm::ivec4(0x00000000), glm::ivec4(-1)},
|
775
|
+
{glm::ivec4(0x00000001), glm::ivec4( 0)},
|
776
|
+
{glm::ivec4(0x00000002), glm::ivec4( 1)},
|
777
|
+
{glm::ivec4(0x00000003), glm::ivec4( 1)},
|
778
|
+
{glm::ivec4(0x00000004), glm::ivec4( 2)},
|
779
|
+
{glm::ivec4(0x00000005), glm::ivec4( 2)},
|
780
|
+
{glm::ivec4(0x00000007), glm::ivec4( 2)},
|
781
|
+
{glm::ivec4(0x00000008), glm::ivec4( 3)},
|
782
|
+
{glm::ivec4(0x00000010), glm::ivec4( 4)},
|
783
|
+
{glm::ivec4(0x00000020), glm::ivec4( 5)},
|
784
|
+
{glm::ivec4(0x00000040), glm::ivec4( 6)},
|
785
|
+
{glm::ivec4(0x00000080), glm::ivec4( 7)},
|
786
|
+
{glm::ivec4(0x00000100), glm::ivec4( 8)},
|
787
|
+
{glm::ivec4(0x00000200), glm::ivec4( 9)},
|
788
|
+
{glm::ivec4(0x00000400), glm::ivec4(10)},
|
789
|
+
{glm::ivec4(0x00000800), glm::ivec4(11)},
|
790
|
+
{glm::ivec4(0x00001000), glm::ivec4(12)},
|
791
|
+
{glm::ivec4(0x00002000), glm::ivec4(13)},
|
792
|
+
{glm::ivec4(0x00004000), glm::ivec4(14)},
|
793
|
+
{glm::ivec4(0x00008000), glm::ivec4(15)},
|
794
|
+
{glm::ivec4(0x00010000), glm::ivec4(16)},
|
795
|
+
{glm::ivec4(0x00020000), glm::ivec4(17)},
|
796
|
+
{glm::ivec4(0x00040000), glm::ivec4(18)},
|
797
|
+
{glm::ivec4(0x00080000), glm::ivec4(19)},
|
798
|
+
{glm::ivec4(0x00100000), glm::ivec4(20)},
|
799
|
+
{glm::ivec4(0x00200000), glm::ivec4(21)},
|
800
|
+
{glm::ivec4(0x00400000), glm::ivec4(22)},
|
801
|
+
{glm::ivec4(0x00800000), glm::ivec4(23)},
|
802
|
+
{glm::ivec4(0x01000000), glm::ivec4(24)},
|
803
|
+
{glm::ivec4(0x02000000), glm::ivec4(25)},
|
804
|
+
{glm::ivec4(0x04000000), glm::ivec4(26)},
|
805
|
+
{glm::ivec4(0x08000000), glm::ivec4(27)},
|
806
|
+
{glm::ivec4(0x10000000), glm::ivec4(28)},
|
807
|
+
{glm::ivec4(0x20000000), glm::ivec4(29)},
|
808
|
+
{glm::ivec4(0x40000000), glm::ivec4(30)}
|
809
|
+
};
|
810
|
+
|
811
|
+
int Error(0);
|
812
|
+
|
813
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(type<glm::ivec4, glm::ivec4>); ++i)
|
814
|
+
{
|
815
|
+
glm::ivec4 Result0 = glm::findMSB(Data[i].Value);
|
816
|
+
Error += glm::all(glm::equal(Data[i].Return, Result0)) ? 0 : 1;
|
817
|
+
}
|
818
|
+
|
819
|
+
return Error;
|
820
|
+
}
|
821
|
+
|
822
|
+
int test_int()
|
823
|
+
{
|
824
|
+
typedef type<glm::uint, int> entry;
|
825
|
+
|
826
|
+
entry const Data[] =
|
827
|
+
{
|
828
|
+
{0x00000000, -1},
|
829
|
+
{0x00000001, 0},
|
830
|
+
{0x00000002, 1},
|
831
|
+
{0x00000003, 1},
|
832
|
+
{0x00000004, 2},
|
833
|
+
{0x00000005, 2},
|
834
|
+
{0x00000007, 2},
|
835
|
+
{0x00000008, 3},
|
836
|
+
{0x00000010, 4},
|
837
|
+
{0x00000020, 5},
|
838
|
+
{0x00000040, 6},
|
839
|
+
{0x00000080, 7},
|
840
|
+
{0x00000100, 8},
|
841
|
+
{0x00000200, 9},
|
842
|
+
{0x00000400, 10},
|
843
|
+
{0x00000800, 11},
|
844
|
+
{0x00001000, 12},
|
845
|
+
{0x00002000, 13},
|
846
|
+
{0x00004000, 14},
|
847
|
+
{0x00008000, 15},
|
848
|
+
{0x00010000, 16},
|
849
|
+
{0x00020000, 17},
|
850
|
+
{0x00040000, 18},
|
851
|
+
{0x00080000, 19},
|
852
|
+
{0x00100000, 20},
|
853
|
+
{0x00200000, 21},
|
854
|
+
{0x00400000, 22},
|
855
|
+
{0x00800000, 23},
|
856
|
+
{0x01000000, 24},
|
857
|
+
{0x02000000, 25},
|
858
|
+
{0x04000000, 26},
|
859
|
+
{0x08000000, 27},
|
860
|
+
{0x10000000, 28},
|
861
|
+
{0x20000000, 29},
|
862
|
+
{0x40000000, 30}
|
863
|
+
};
|
864
|
+
|
865
|
+
int Error(0);
|
866
|
+
|
867
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(entry); ++i)
|
868
|
+
{
|
869
|
+
int Result0 = glm::findMSB(Data[i].Value);
|
870
|
+
Error += Data[i].Return == Result0 ? 0 : 1;
|
871
|
+
}
|
872
|
+
|
873
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(entry); ++i)
|
874
|
+
{
|
875
|
+
int Result0 = findMSB_nlz1(Data[i].Value);
|
876
|
+
Error += Data[i].Return == Result0 ? 0 : 1;
|
877
|
+
}
|
878
|
+
/*
|
879
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(entry); ++i)
|
880
|
+
{
|
881
|
+
int Result0 = findMSB_nlz2(Data[i].Value);
|
882
|
+
Error += Data[i].Return == Result0 ? 0 : 1;
|
883
|
+
}
|
884
|
+
*/
|
885
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(entry); ++i)
|
886
|
+
{
|
887
|
+
int Result0 = findMSB_095(Data[i].Value);
|
888
|
+
Error += Data[i].Return == Result0 ? 0 : 1;
|
889
|
+
}
|
890
|
+
|
891
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
892
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(entry); ++i)
|
893
|
+
{
|
894
|
+
int Result0 = findMSB_intrinsic(Data[i].Value);
|
895
|
+
Error += Data[i].Return == Result0 ? 0 : 1;
|
896
|
+
}
|
897
|
+
# endif//GLM_HAS_BITSCAN_WINDOWS
|
898
|
+
|
899
|
+
for(std::size_t i = 0; i < sizeof(Data) / sizeof(entry); ++i)
|
900
|
+
{
|
901
|
+
int Result0 = findMSB_pop(Data[i].Value);
|
902
|
+
Error += Data[i].Return == Result0 ? 0 : 1;
|
903
|
+
}
|
904
|
+
|
905
|
+
return Error;
|
906
|
+
}
|
907
|
+
|
908
|
+
int test()
|
909
|
+
{
|
910
|
+
int Error(0);
|
911
|
+
|
912
|
+
Error += test_ivec4();
|
913
|
+
Error += test_int();
|
914
|
+
|
915
|
+
return Error;
|
916
|
+
}
|
917
|
+
|
918
|
+
int perf(std::size_t Samples)
|
919
|
+
{
|
920
|
+
int Error(0);
|
921
|
+
|
922
|
+
Error += perf_int(Samples);
|
923
|
+
|
924
|
+
return Error;
|
925
|
+
}
|
926
|
+
}//findMSB
|
927
|
+
|
928
|
+
namespace findLSB
|
929
|
+
{
|
930
|
+
template <typename genType, typename retType>
|
931
|
+
struct type
|
932
|
+
{
|
933
|
+
genType Value;
|
934
|
+
retType Return;
|
935
|
+
};
|
936
|
+
|
937
|
+
typedef type<int, int> entry;
|
938
|
+
|
939
|
+
entry const DataI32[] =
|
940
|
+
{
|
941
|
+
{0x00000001, 0},
|
942
|
+
{0x00000003, 0},
|
943
|
+
{0x00000002, 1},
|
944
|
+
// {0x80000000, 31}, // Clang generates an error with this
|
945
|
+
{0x00010000, 16},
|
946
|
+
{0x7FFF0000, 16},
|
947
|
+
{0x7F000000, 24},
|
948
|
+
{0x7F00FF00, 8},
|
949
|
+
{0x00000000, -1}
|
950
|
+
};
|
951
|
+
|
952
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
953
|
+
template <typename genIUType>
|
954
|
+
GLM_FUNC_QUALIFIER int findLSB_intrinsic(genIUType Value)
|
955
|
+
{
|
956
|
+
GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'findLSB' only accept integer values");
|
957
|
+
|
958
|
+
if(Value == 0)
|
959
|
+
return -1;
|
960
|
+
|
961
|
+
unsigned long Result(0);
|
962
|
+
_BitScanForward(&Result, Value);
|
963
|
+
return int(Result);
|
964
|
+
}
|
965
|
+
# endif
|
966
|
+
|
967
|
+
template <typename genIUType>
|
968
|
+
GLM_FUNC_QUALIFIER int findLSB_095(genIUType Value)
|
969
|
+
{
|
970
|
+
GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'findLSB' only accept integer values");
|
971
|
+
if(Value == 0)
|
972
|
+
return -1;
|
973
|
+
|
974
|
+
genIUType Bit;
|
975
|
+
for(Bit = genIUType(0); !(Value & (1 << Bit)); ++Bit){}
|
976
|
+
return Bit;
|
977
|
+
}
|
978
|
+
|
979
|
+
template <typename genIUType>
|
980
|
+
GLM_FUNC_QUALIFIER int findLSB_ntz2(genIUType x)
|
981
|
+
{
|
982
|
+
if(x == 0)
|
983
|
+
return -1;
|
984
|
+
|
985
|
+
return glm::bitCount(~x & (x - static_cast<genIUType>(1)));
|
986
|
+
}
|
987
|
+
|
988
|
+
template <typename genIUType>
|
989
|
+
GLM_FUNC_QUALIFIER int findLSB_branchfree(genIUType x)
|
990
|
+
{
|
991
|
+
bool IsNull(x == 0);
|
992
|
+
int const Keep(!IsNull);
|
993
|
+
int const Discard(IsNull);
|
994
|
+
|
995
|
+
return static_cast<int>(glm::bitCount(~x & (x - static_cast<genIUType>(1)))) * Keep + Discard * -1;
|
996
|
+
}
|
997
|
+
|
998
|
+
int test_int()
|
999
|
+
{
|
1000
|
+
int Error(0);
|
1001
|
+
|
1002
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1003
|
+
{
|
1004
|
+
int Result = glm::findLSB(DataI32[i].Value);
|
1005
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1006
|
+
}
|
1007
|
+
|
1008
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1009
|
+
{
|
1010
|
+
int Result = findLSB_095(DataI32[i].Value);
|
1011
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
1015
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1016
|
+
{
|
1017
|
+
int Result = findLSB_intrinsic(DataI32[i].Value);
|
1018
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1019
|
+
}
|
1020
|
+
# endif
|
1021
|
+
|
1022
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1023
|
+
{
|
1024
|
+
int Result = findLSB_ntz2(DataI32[i].Value);
|
1025
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1029
|
+
{
|
1030
|
+
int Result = findLSB_branchfree(DataI32[i].Value);
|
1031
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1032
|
+
}
|
1033
|
+
|
1034
|
+
return Error;
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
int test()
|
1038
|
+
{
|
1039
|
+
int Error(0);
|
1040
|
+
|
1041
|
+
Error += test_int();
|
1042
|
+
|
1043
|
+
return Error;
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
int perf_int(std::size_t Count)
|
1047
|
+
{
|
1048
|
+
int Error(0);
|
1049
|
+
|
1050
|
+
std::clock_t Timestamps0 = std::clock();
|
1051
|
+
|
1052
|
+
for(std::size_t k = 0; k < Count; ++k)
|
1053
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1054
|
+
{
|
1055
|
+
int Result = glm::findLSB(DataI32[i].Value);
|
1056
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
std::clock_t Timestamps1 = std::clock();
|
1060
|
+
|
1061
|
+
for(std::size_t k = 0; k < Count; ++k)
|
1062
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1063
|
+
{
|
1064
|
+
int Result = findLSB_095(DataI32[i].Value);
|
1065
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
std::clock_t Timestamps2 = std::clock();
|
1069
|
+
|
1070
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
1071
|
+
for(std::size_t k = 0; k < Count; ++k)
|
1072
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1073
|
+
{
|
1074
|
+
int Result = findLSB_intrinsic(DataI32[i].Value);
|
1075
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1076
|
+
}
|
1077
|
+
# endif
|
1078
|
+
|
1079
|
+
std::clock_t Timestamps3 = std::clock();
|
1080
|
+
|
1081
|
+
for(std::size_t k = 0; k < Count; ++k)
|
1082
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1083
|
+
{
|
1084
|
+
int Result = findLSB_ntz2(DataI32[i].Value);
|
1085
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
std::clock_t Timestamps4 = std::clock();
|
1089
|
+
|
1090
|
+
for(std::size_t k = 0; k < Count; ++k)
|
1091
|
+
for(std::size_t i = 0; i < sizeof(DataI32) / sizeof(entry); ++i)
|
1092
|
+
{
|
1093
|
+
int Result = findLSB_branchfree(DataI32[i].Value);
|
1094
|
+
Error += DataI32[i].Return == Result ? 0 : 1;
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
std::clock_t Timestamps5 = std::clock();
|
1098
|
+
|
1099
|
+
std::printf("glm::findLSB: %d clocks\n", static_cast<unsigned int>(Timestamps1 - Timestamps0));
|
1100
|
+
std::printf("findLSB - 0.9.5: %d clocks\n", static_cast<unsigned int>(Timestamps2 - Timestamps1));
|
1101
|
+
|
1102
|
+
# if GLM_HAS_BITSCAN_WINDOWS
|
1103
|
+
std::printf("findLSB - intrinsics: %d clocks\n", static_cast<unsigned int>(Timestamps3 - Timestamps2));
|
1104
|
+
# endif
|
1105
|
+
|
1106
|
+
std::printf("findLSB - ntz2: %d clocks\n", static_cast<unsigned int>(Timestamps4 - Timestamps3));
|
1107
|
+
std::printf("findLSB - branchfree: %d clocks\n", static_cast<unsigned int>(Timestamps5 - Timestamps4));
|
1108
|
+
|
1109
|
+
return Error;
|
1110
|
+
}
|
1111
|
+
|
1112
|
+
int perf(std::size_t Samples)
|
1113
|
+
{
|
1114
|
+
int Error(0);
|
1115
|
+
|
1116
|
+
Error += perf_int(Samples);
|
1117
|
+
|
1118
|
+
return Error;
|
1119
|
+
}
|
1120
|
+
}//findLSB
|
1121
|
+
|
1122
|
+
namespace uaddCarry
|
1123
|
+
{
|
1124
|
+
int test()
|
1125
|
+
{
|
1126
|
+
int Error(0);
|
1127
|
+
|
1128
|
+
{
|
1129
|
+
glm::uint x = std::numeric_limits<glm::uint>::max();
|
1130
|
+
glm::uint y = 0;
|
1131
|
+
glm::uint Carry = 0;
|
1132
|
+
glm::uint Result = glm::uaddCarry(x, y, Carry);
|
1133
|
+
|
1134
|
+
Error += Carry == 0 ? 0 : 1;
|
1135
|
+
Error += Result == std::numeric_limits<glm::uint>::max() ? 0 : 1;
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
{
|
1139
|
+
glm::uint x = std::numeric_limits<glm::uint>::max();
|
1140
|
+
glm::uint y = 1;
|
1141
|
+
glm::uint Carry = 0;
|
1142
|
+
glm::uint Result = glm::uaddCarry(x, y, Carry);
|
1143
|
+
|
1144
|
+
Error += Carry == 1 ? 0 : 1;
|
1145
|
+
Error += Result == 0 ? 0 : 1;
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
{
|
1149
|
+
glm::uvec1 x(std::numeric_limits<glm::uint>::max());
|
1150
|
+
glm::uvec1 y(0);
|
1151
|
+
glm::uvec1 Carry(0);
|
1152
|
+
glm::uvec1 Result(glm::uaddCarry(x, y, Carry));
|
1153
|
+
|
1154
|
+
Error += glm::all(glm::equal(Carry, glm::uvec1(0))) ? 0 : 1;
|
1155
|
+
Error += glm::all(glm::equal(Result, glm::uvec1(std::numeric_limits<glm::uint>::max()))) ? 0 : 1;
|
1156
|
+
}
|
1157
|
+
|
1158
|
+
{
|
1159
|
+
glm::uvec1 x(std::numeric_limits<glm::uint>::max());
|
1160
|
+
glm::uvec1 y(1);
|
1161
|
+
glm::uvec1 Carry(0);
|
1162
|
+
glm::uvec1 Result(glm::uaddCarry(x, y, Carry));
|
1163
|
+
|
1164
|
+
Error += glm::all(glm::equal(Carry, glm::uvec1(1))) ? 0 : 1;
|
1165
|
+
Error += glm::all(glm::equal(Result, glm::uvec1(0))) ? 0 : 1;
|
1166
|
+
}
|
1167
|
+
|
1168
|
+
return Error;
|
1169
|
+
}
|
1170
|
+
}//namespace uaddCarry
|
1171
|
+
|
1172
|
+
namespace usubBorrow
|
1173
|
+
{
|
1174
|
+
int test()
|
1175
|
+
{
|
1176
|
+
int Error(0);
|
1177
|
+
|
1178
|
+
{
|
1179
|
+
glm::uint x = 16;
|
1180
|
+
glm::uint y = 17;
|
1181
|
+
glm::uint Borrow = 0;
|
1182
|
+
glm::uint Result = glm::usubBorrow(x, y, Borrow);
|
1183
|
+
|
1184
|
+
Error += Borrow == 1 ? 0 : 1;
|
1185
|
+
Error += Result == 1 ? 0 : 1;
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
{
|
1189
|
+
glm::uvec1 x(16);
|
1190
|
+
glm::uvec1 y(17);
|
1191
|
+
glm::uvec1 Borrow(0);
|
1192
|
+
glm::uvec1 Result(glm::usubBorrow(x, y, Borrow));
|
1193
|
+
|
1194
|
+
Error += glm::all(glm::equal(Borrow, glm::uvec1(1))) ? 0 : 1;
|
1195
|
+
Error += glm::all(glm::equal(Result, glm::uvec1(1))) ? 0 : 1;
|
1196
|
+
}
|
1197
|
+
|
1198
|
+
{
|
1199
|
+
glm::uvec2 x(16);
|
1200
|
+
glm::uvec2 y(17);
|
1201
|
+
glm::uvec2 Borrow(0);
|
1202
|
+
glm::uvec2 Result(glm::usubBorrow(x, y, Borrow));
|
1203
|
+
|
1204
|
+
Error += glm::all(glm::equal(Borrow, glm::uvec2(1))) ? 0 : 1;
|
1205
|
+
Error += glm::all(glm::equal(Result, glm::uvec2(1))) ? 0 : 1;
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
{
|
1209
|
+
glm::uvec3 x(16);
|
1210
|
+
glm::uvec3 y(17);
|
1211
|
+
glm::uvec3 Borrow(0);
|
1212
|
+
glm::uvec3 Result(glm::usubBorrow(x, y, Borrow));
|
1213
|
+
|
1214
|
+
Error += glm::all(glm::equal(Borrow, glm::uvec3(1))) ? 0 : 1;
|
1215
|
+
Error += glm::all(glm::equal(Result, glm::uvec3(1))) ? 0 : 1;
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
{
|
1219
|
+
glm::uvec4 x(16);
|
1220
|
+
glm::uvec4 y(17);
|
1221
|
+
glm::uvec4 Borrow(0);
|
1222
|
+
glm::uvec4 Result(glm::usubBorrow(x, y, Borrow));
|
1223
|
+
|
1224
|
+
Error += glm::all(glm::equal(Borrow, glm::uvec4(1))) ? 0 : 1;
|
1225
|
+
Error += glm::all(glm::equal(Result, glm::uvec4(1))) ? 0 : 1;
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
return Error;
|
1229
|
+
}
|
1230
|
+
}//namespace usubBorrow
|
1231
|
+
|
1232
|
+
namespace umulExtended
|
1233
|
+
{
|
1234
|
+
int test()
|
1235
|
+
{
|
1236
|
+
int Error(0);
|
1237
|
+
|
1238
|
+
{
|
1239
|
+
glm::uint x = 2;
|
1240
|
+
glm::uint y = 3;
|
1241
|
+
glm::uint msb = 0;
|
1242
|
+
glm::uint lsb = 0;
|
1243
|
+
glm::umulExtended(x, y, msb, lsb);
|
1244
|
+
|
1245
|
+
Error += msb == 0 ? 0 : 1;
|
1246
|
+
Error += lsb == 6 ? 0 : 1;
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
{
|
1250
|
+
glm::uvec1 x(2);
|
1251
|
+
glm::uvec1 y(3);
|
1252
|
+
glm::uvec1 msb(0);
|
1253
|
+
glm::uvec1 lsb(0);
|
1254
|
+
glm::umulExtended(x, y, msb, lsb);
|
1255
|
+
|
1256
|
+
Error += glm::all(glm::equal(msb, glm::uvec1(0))) ? 0 : 1;
|
1257
|
+
Error += glm::all(glm::equal(lsb, glm::uvec1(6))) ? 0 : 1;
|
1258
|
+
}
|
1259
|
+
|
1260
|
+
{
|
1261
|
+
glm::uvec2 x(2);
|
1262
|
+
glm::uvec2 y(3);
|
1263
|
+
glm::uvec2 msb(0);
|
1264
|
+
glm::uvec2 lsb(0);
|
1265
|
+
glm::umulExtended(x, y, msb, lsb);
|
1266
|
+
|
1267
|
+
Error += glm::all(glm::equal(msb, glm::uvec2(0))) ? 0 : 1;
|
1268
|
+
Error += glm::all(glm::equal(lsb, glm::uvec2(6))) ? 0 : 1;
|
1269
|
+
}
|
1270
|
+
|
1271
|
+
{
|
1272
|
+
glm::uvec3 x(2);
|
1273
|
+
glm::uvec3 y(3);
|
1274
|
+
glm::uvec3 msb(0);
|
1275
|
+
glm::uvec3 lsb(0);
|
1276
|
+
glm::umulExtended(x, y, msb, lsb);
|
1277
|
+
|
1278
|
+
Error += glm::all(glm::equal(msb, glm::uvec3(0))) ? 0 : 1;
|
1279
|
+
Error += glm::all(glm::equal(lsb, glm::uvec3(6))) ? 0 : 1;
|
1280
|
+
}
|
1281
|
+
|
1282
|
+
{
|
1283
|
+
glm::uvec4 x(2);
|
1284
|
+
glm::uvec4 y(3);
|
1285
|
+
glm::uvec4 msb(0);
|
1286
|
+
glm::uvec4 lsb(0);
|
1287
|
+
glm::umulExtended(x, y, msb, lsb);
|
1288
|
+
|
1289
|
+
Error += glm::all(glm::equal(msb, glm::uvec4(0))) ? 0 : 1;
|
1290
|
+
Error += glm::all(glm::equal(lsb, glm::uvec4(6))) ? 0 : 1;
|
1291
|
+
}
|
1292
|
+
|
1293
|
+
return Error;
|
1294
|
+
}
|
1295
|
+
}//namespace umulExtended
|
1296
|
+
|
1297
|
+
namespace imulExtended
|
1298
|
+
{
|
1299
|
+
int test()
|
1300
|
+
{
|
1301
|
+
int Error(0);
|
1302
|
+
|
1303
|
+
{
|
1304
|
+
int x = 2;
|
1305
|
+
int y = 3;
|
1306
|
+
int msb = 0;
|
1307
|
+
int lsb = 0;
|
1308
|
+
glm::imulExtended(x, y, msb, lsb);
|
1309
|
+
|
1310
|
+
Error += msb == 0 ? 0 : 1;
|
1311
|
+
Error += lsb == 6 ? 0 : 1;
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
{
|
1315
|
+
glm::ivec1 x(2);
|
1316
|
+
glm::ivec1 y(3);
|
1317
|
+
glm::ivec1 msb(0);
|
1318
|
+
glm::ivec1 lsb(0);
|
1319
|
+
glm::imulExtended(x, y, msb, lsb);
|
1320
|
+
|
1321
|
+
Error += glm::all(glm::equal(msb, glm::ivec1(0))) ? 0 : 1;
|
1322
|
+
Error += glm::all(glm::equal(lsb, glm::ivec1(6))) ? 0 : 1;
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
{
|
1326
|
+
glm::ivec2 x(2);
|
1327
|
+
glm::ivec2 y(3);
|
1328
|
+
glm::ivec2 msb(0);
|
1329
|
+
glm::ivec2 lsb(0);
|
1330
|
+
glm::imulExtended(x, y, msb, lsb);
|
1331
|
+
|
1332
|
+
Error += glm::all(glm::equal(msb, glm::ivec2(0))) ? 0 : 1;
|
1333
|
+
Error += glm::all(glm::equal(lsb, glm::ivec2(6))) ? 0 : 1;
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
{
|
1337
|
+
glm::ivec3 x(2);
|
1338
|
+
glm::ivec3 y(3);
|
1339
|
+
glm::ivec3 msb(0);
|
1340
|
+
glm::ivec3 lsb(0);
|
1341
|
+
glm::imulExtended(x, y, msb, lsb);
|
1342
|
+
|
1343
|
+
Error += glm::all(glm::equal(msb, glm::ivec3(0))) ? 0 : 1;
|
1344
|
+
Error += glm::all(glm::equal(lsb, glm::ivec3(6))) ? 0 : 1;
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
{
|
1348
|
+
glm::ivec4 x(2);
|
1349
|
+
glm::ivec4 y(3);
|
1350
|
+
glm::ivec4 msb(0);
|
1351
|
+
glm::ivec4 lsb(0);
|
1352
|
+
glm::imulExtended(x, y, msb, lsb);
|
1353
|
+
|
1354
|
+
Error += glm::all(glm::equal(msb, glm::ivec4(0))) ? 0 : 1;
|
1355
|
+
Error += glm::all(glm::equal(lsb, glm::ivec4(6))) ? 0 : 1;
|
1356
|
+
}
|
1357
|
+
|
1358
|
+
return Error;
|
1359
|
+
}
|
1360
|
+
}//namespace imulExtended
|
1361
|
+
|
1362
|
+
namespace bitCount
|
1363
|
+
{
|
1364
|
+
template <typename genType>
|
1365
|
+
struct type
|
1366
|
+
{
|
1367
|
+
genType Value;
|
1368
|
+
genType Return;
|
1369
|
+
};
|
1370
|
+
|
1371
|
+
type<int> const DataI32[] =
|
1372
|
+
{
|
1373
|
+
{0x00000001, 1},
|
1374
|
+
{0x00000003, 2},
|
1375
|
+
{0x00000002, 1},
|
1376
|
+
{0x7fffffff, 31},
|
1377
|
+
{0x00000000, 0}
|
1378
|
+
};
|
1379
|
+
|
1380
|
+
template <typename T>
|
1381
|
+
inline int bitCount_if(T v)
|
1382
|
+
{
|
1383
|
+
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_integer, "'bitCount' only accept integer values");
|
1384
|
+
|
1385
|
+
int Count(0);
|
1386
|
+
for(T i = 0, n = static_cast<T>(sizeof(T) * 8); i < n; ++i)
|
1387
|
+
{
|
1388
|
+
if(v & static_cast<T>(1 << i))
|
1389
|
+
++Count;
|
1390
|
+
}
|
1391
|
+
return Count;
|
1392
|
+
}
|
1393
|
+
|
1394
|
+
template <typename T>
|
1395
|
+
inline int bitCount_vec(T v)
|
1396
|
+
{
|
1397
|
+
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_integer, "'bitCount' only accept integer values");
|
1398
|
+
|
1399
|
+
int Count(0);
|
1400
|
+
for(T i = 0, n = static_cast<T>(sizeof(T) * 8); i < n; ++i)
|
1401
|
+
{
|
1402
|
+
Count += static_cast<int>((v >> i) & static_cast<T>(1));
|
1403
|
+
}
|
1404
|
+
return Count;
|
1405
|
+
}
|
1406
|
+
|
1407
|
+
template <bool EXEC = false>
|
1408
|
+
struct compute_bitfieldBitCountStep
|
1409
|
+
{
|
1410
|
+
template <typename T, glm::precision P, template <class, glm::precision> class vecType>
|
1411
|
+
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & v, T, T)
|
1412
|
+
{
|
1413
|
+
return v;
|
1414
|
+
}
|
1415
|
+
};
|
1416
|
+
|
1417
|
+
template <>
|
1418
|
+
struct compute_bitfieldBitCountStep<true>
|
1419
|
+
{
|
1420
|
+
template <typename T, glm::precision P, template <class, glm::precision> class vecType>
|
1421
|
+
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & v, T Mask, T Shift)
|
1422
|
+
{
|
1423
|
+
return (v & Mask) + ((v >> Shift) & Mask);
|
1424
|
+
}
|
1425
|
+
};
|
1426
|
+
|
1427
|
+
template <typename T, glm::precision P, template <typename, glm::precision> class vecType>
|
1428
|
+
GLM_FUNC_QUALIFIER vecType<int, P> bitCount_bitfield(vecType<T, P> const & v)
|
1429
|
+
{
|
1430
|
+
vecType<typename glm::detail::make_unsigned<T>::type, P> x(*reinterpret_cast<vecType<typename glm::detail::make_unsigned<T>::type, P> const *>(&v));
|
1431
|
+
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 2>::call(x, typename glm::detail::make_unsigned<T>::type(0x5555555555555555ull), typename glm::detail::make_unsigned<T>::type( 1));
|
1432
|
+
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 4>::call(x, typename glm::detail::make_unsigned<T>::type(0x3333333333333333ull), typename glm::detail::make_unsigned<T>::type( 2));
|
1433
|
+
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 8>::call(x, typename glm::detail::make_unsigned<T>::type(0x0F0F0F0F0F0F0F0Full), typename glm::detail::make_unsigned<T>::type( 4));
|
1434
|
+
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 16>::call(x, typename glm::detail::make_unsigned<T>::type(0x00FF00FF00FF00FFull), typename glm::detail::make_unsigned<T>::type( 8));
|
1435
|
+
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 32>::call(x, typename glm::detail::make_unsigned<T>::type(0x0000FFFF0000FFFFull), typename glm::detail::make_unsigned<T>::type(16));
|
1436
|
+
x = compute_bitfieldBitCountStep<sizeof(T) * 8 >= 64>::call(x, typename glm::detail::make_unsigned<T>::type(0x00000000FFFFFFFFull), typename glm::detail::make_unsigned<T>::type(32));
|
1437
|
+
return vecType<int, P>(x);
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
template <typename genType>
|
1441
|
+
GLM_FUNC_QUALIFIER int bitCount_bitfield(genType x)
|
1442
|
+
{
|
1443
|
+
return bitCount_bitfield(glm::tvec1<genType, glm::defaultp>(x)).x;
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
int perf(std::size_t Size)
|
1447
|
+
{
|
1448
|
+
int Error(0);
|
1449
|
+
|
1450
|
+
std::vector<int> v;
|
1451
|
+
v.resize(Size);
|
1452
|
+
|
1453
|
+
std::vector<glm::ivec4> w;
|
1454
|
+
w.resize(Size);
|
1455
|
+
|
1456
|
+
|
1457
|
+
std::clock_t TimestampsA = std::clock();
|
1458
|
+
|
1459
|
+
// bitCount - TimeIf
|
1460
|
+
{
|
1461
|
+
for(std::size_t i = 0, n = v.size(); i < n; ++i)
|
1462
|
+
v[i] = bitCount_if(static_cast<int>(i));
|
1463
|
+
}
|
1464
|
+
|
1465
|
+
std::clock_t TimestampsB = std::clock();
|
1466
|
+
|
1467
|
+
// bitCount - TimeVec
|
1468
|
+
{
|
1469
|
+
for(std::size_t i = 0, n = v.size(); i < n; ++i)
|
1470
|
+
v[i] = bitCount_vec(i);
|
1471
|
+
}
|
1472
|
+
|
1473
|
+
std::clock_t TimestampsC = std::clock();
|
1474
|
+
|
1475
|
+
// bitCount - TimeDefault
|
1476
|
+
{
|
1477
|
+
for(std::size_t i = 0, n = v.size(); i < n; ++i)
|
1478
|
+
v[i] = glm::bitCount(i);
|
1479
|
+
}
|
1480
|
+
|
1481
|
+
std::clock_t TimestampsD = std::clock();
|
1482
|
+
|
1483
|
+
// bitCount - TimeVec4
|
1484
|
+
{
|
1485
|
+
for(std::size_t i = 0, n = v.size(); i < n; ++i)
|
1486
|
+
w[i] = glm::bitCount(glm::ivec4(static_cast<int>(i)));
|
1487
|
+
}
|
1488
|
+
|
1489
|
+
std::clock_t TimestampsE = std::clock();
|
1490
|
+
|
1491
|
+
{
|
1492
|
+
for(std::size_t i = 0, n = v.size(); i < n; ++i)
|
1493
|
+
v[i] = bitCount_bitfield(static_cast<int>(i));
|
1494
|
+
}
|
1495
|
+
|
1496
|
+
std::clock_t TimestampsF = std::clock();
|
1497
|
+
|
1498
|
+
std::printf("bitCount - TimeIf %d\n", static_cast<unsigned int>(TimestampsB - TimestampsA));
|
1499
|
+
std::printf("bitCount - TimeVec %d\n", static_cast<unsigned int>(TimestampsC - TimestampsB));
|
1500
|
+
std::printf("bitCount - TimeDefault %d\n", static_cast<unsigned int>(TimestampsD - TimestampsC));
|
1501
|
+
std::printf("bitCount - TimeVec4 %d\n", static_cast<unsigned int>(TimestampsE - TimestampsD));
|
1502
|
+
std::printf("bitCount - bitfield %d\n", static_cast<unsigned int>(TimestampsF - TimestampsE));
|
1503
|
+
|
1504
|
+
return Error;
|
1505
|
+
}
|
1506
|
+
|
1507
|
+
int test()
|
1508
|
+
{
|
1509
|
+
int Error(0);
|
1510
|
+
|
1511
|
+
for(std::size_t i = 0, n = sizeof(DataI32) / sizeof(type<int>); i < n; ++i)
|
1512
|
+
{
|
1513
|
+
int ResultA = glm::bitCount(DataI32[i].Value);
|
1514
|
+
int ResultB = bitCount_if(DataI32[i].Value);
|
1515
|
+
int ResultC = bitCount_vec(DataI32[i].Value);
|
1516
|
+
int ResultE = bitCount_bitfield(DataI32[i].Value);
|
1517
|
+
|
1518
|
+
Error += DataI32[i].Return == ResultA ? 0 : 1;
|
1519
|
+
Error += DataI32[i].Return == ResultB ? 0 : 1;
|
1520
|
+
Error += DataI32[i].Return == ResultC ? 0 : 1;
|
1521
|
+
Error += DataI32[i].Return == ResultE ? 0 : 1;
|
1522
|
+
|
1523
|
+
assert(!Error);
|
1524
|
+
}
|
1525
|
+
|
1526
|
+
return Error;
|
1527
|
+
}
|
1528
|
+
}//bitCount
|
1529
|
+
|
1530
|
+
int main()
|
1531
|
+
{
|
1532
|
+
int Error = 0;
|
1533
|
+
|
1534
|
+
Error += ::bitCount::test();
|
1535
|
+
Error += ::bitfieldReverse::test();
|
1536
|
+
Error += ::findMSB::test();
|
1537
|
+
Error += ::findLSB::test();
|
1538
|
+
Error += ::umulExtended::test();
|
1539
|
+
Error += ::imulExtended::test();
|
1540
|
+
Error += ::uaddCarry::test();
|
1541
|
+
Error += ::usubBorrow::test();
|
1542
|
+
Error += ::bitfieldInsert::test();
|
1543
|
+
Error += ::bitfieldExtract::test();
|
1544
|
+
|
1545
|
+
# ifdef NDEBUG
|
1546
|
+
std::size_t const Samples = 1000;
|
1547
|
+
::bitCount::perf(Samples);
|
1548
|
+
::bitfieldReverse::perf(Samples);
|
1549
|
+
::findMSB::perf(Samples);
|
1550
|
+
::findLSB::perf(Samples);
|
1551
|
+
# endif
|
1552
|
+
|
1553
|
+
return Error;
|
1554
|
+
}
|