https://github.com/shader-slang/slang
Revision f5acb6b987609cc6c1d859120cd327c57c344803 authored by venkataram-nv on 27 June 2024, 23:09:33 UTC, committed by GitHub on 27 June 2024, 23:09:33 UTC
* Extend `countbits` intrinsic for vector types

This commit implements the overloading function for `countbits` function.
Because HLSL has following overloadings,
```
uint count_bits(uint value);
uint2 count_bits(uint2 value);
uint3 count_bits(uint3 value);
uint4 count_bits(uint4 value);
```
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/countbits
1 parent 8172751
History
Tip revision: f5acb6b987609cc6c1d859120cd327c57c344803 authored by venkataram-nv on 27 June 2024, 23:09:33 UTC
Extend `countbits` intrinsic for vector types (#4499)
Tip revision: f5acb6b
File Mode Size
.github
build
cmake
deps
docs
examples
external
extras
prelude
source
tests
tools
.editorconfig -rw-r--r-- 984 bytes
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 1.6 KB
.gitmodules -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 84 bytes
CMakeLists.txt -rw-r--r-- 23.7 KB
CMakePresets.json -rw-r--r-- 4.0 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
CONTRIBUTION.md -rw-r--r-- 10.2 KB
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 8.5 KB
github_build.sh -rw-r--r-- 1.6 KB
github_macos_build.sh -rw-r--r-- 1.3 KB
make-slang-tag-version.bat -rw-r--r-- 210 bytes
premake.bat -rw-r--r-- 120 bytes
premake5.lua -rw-r--r-- 66.6 KB
slang-com-helper.h -rw-r--r-- 4.9 KB
slang-com-ptr.h -rw-r--r-- 5.0 KB
slang-gfx.h -rw-r--r-- 88.8 KB
slang-tag-version.h -rw-r--r-- 36 bytes
slang.h -rw-r--r-- 211.5 KB
slang.sln -rw-r--r-- 51.5 KB
test.bat -rw-r--r-- 1.4 KB
test.ps1 -rw-r--r-- 154 bytes

README.md

back to top