Open Eichenherz opened 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 ) ); }
Thanks !
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
Thanks !