https://github.com/shader-slang/slang
Revision 372900b5a30de76e86ebc380ce9ad618afea6fdf authored by Tim Foley on 27 February 2018, 00:28:24 UTC, committed by GitHub on 27 February 2018, 00:28:24 UTC
The following translations are added:

* HLSL `countbits` becomes GLSL `bitCount`
* HLSL `firstbitlow` becomes GLSL `findLSB`
* HLSL `firstbithight` becomes GLSL `findMSB`
* HLSL `rerverseBits` becomes GLSL `bitfieldReverse`

There are currently no HLSL equivalents for the bitfield insert/extract operations in GLSL. In the future we could expose those as intrinsics under their GLSL names, with HLSL translations, if desired.
1 parent c3bc496
History
Tip revision: 372900b5a30de76e86ebc380ce9ad618afea6fdf authored by Tim Foley on 27 February 2018, 00:28:24 UTC
Add GLSL translations for bit manipulation intrinsics (#430)
Tip revision: 372900b
File Mode Size
build
docs
examples
external
source
tests
tools
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 398 bytes
.gitmodules -rw-r--r-- 107 bytes
.travis.yml -rw-r--r-- 1.6 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 6.3 KB
README.md -rw-r--r-- 4.9 KB
appveyor.yml -rw-r--r-- 3.5 KB
slang.h -rw-r--r-- 41.9 KB
slang.sln -rw-r--r-- 9.1 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top