tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
553 stars 95 forks source link

64-bit xint and 16-bit xint and float support (as well as vectors, matrices). #249

Closed Nielsbishere closed 11 months ago

Nielsbishere commented 1 year ago

Added support and unit tests for (u)int(64,16)_t(x[1-4](x[1-4])) as well as float16_t(x[1-4](x[1-4]). Refactored IntrinsicTypes static constructor to be more organized and allow adding of new types (with vectors, matrices, etc.) if needed in the future.

16-bit scalars were added by https://github.com/microsoft/DirectXShaderCompiler/wiki/16-Bit-Scalar-Types, in dxc they need shader model 6.2 and -enable-16bit-types.

The following things aren't fully implemented: Certain unit tests scenarios that I didn't grasp. Some new HLSL functions probably.

mklefrancois commented 1 year ago

I'm looking for this, can it be merged?

tgjones commented 11 months ago

Amazing, thank you!