Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 1 of 1

Thread: GLSL.hpp - GLSL emulation library

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Regular Contributor
    Join Date
    Dec 2010
    Oakville, ON, CA

    GLSL.hpp - GLSL emulation library

    No questions to ask - just an item I want to share with the community. I wrote a GLSL emulation library similar to glm, but all in one file. The short-cuts I had to take are:
    -there are no half-float vector types;
    -subvector selection and swizzling looks like a call to a function rather than item selection: MyVec.yz(); MyVec.x;

    Here is the static non-expiring link to the header file location (I use the Google Drive and keep the file up-to date there):


    All GLSL functions are written in assembler (some use SSE4.1). Operators defined as inlines for now.
    More info is inside the file (commented in first lines at the header).

    Bug reports, comments or even code contributions (I don't believe in altruism of the others but...) are appreciated.
    Last edited by Yandersen; 01-11-2015 at 11:04 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts