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
565 stars 97 forks source link

HLSL 2021 #223

Open Eichenherz opened 2 years ago

Eichenherz commented 2 years ago

Very cool extension ! Imo it should be part of VS. It doesn't work with HLSL 2021 though: https://github.com/microsoft/DirectXShaderCompiler/wiki/HLSL-2021

template<typename T>
T UnifomLoadFromBuffer( in uint hlslBufferIdx, in uint entryIdx )
{
    return bufferTable[ hlslBufferIdx ].Load<T>( entryIdx * sizeof( T ) );
}

QiY - Microsoft Visual Studio 1_29_2022 9_27_10 PM

Thanks !