yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
6437c38e0
master
1#pragma pack_matrix(column_major) 2#ifdef SLANG_HLSL_ENABLE_NVAPI 3#include "nvHLSLExtns.h" 4#endif 5#pragma warning(disable: 3557) 6 7struct SLANG_ParameterGroup_C_0 8{ 9uint index_0 ; 10}; 11 12cbuffer C_0 :register ( b0 ) 13{ 14SLANG_ParameterGroup_C_0 C_0 ; 15} 16struct S_0 17{ 18float4 f_0 ; 19}; 20 21ConstantBuffer < S_0 > cb_0 [ int ( 3 )] :register ( b1 ); 22 23StructuredBuffer < S_0 > sb1_0 [ int ( 4 )] :register ( t0 ); 24 25RWStructuredBuffer < float4 > sb2_0 [ int ( 5 )] :register ( u0 ); 26 27ByteAddressBuffer bb_0 [ int ( 6 )] :register ( t4 ); 28float4 main () : SV_TARGET 29{ 30 31float4 _S1 = cb_0 [ C_0 . index_0 ]. f_0 + sb1_0 [ C_0 . index_0 ]. Load ( C_0 . index_0 ). f_0 + sb2_0 [ C_0 . index_0 ][ C_0 . index_0 ]; 32uint _S2 = bb_0 [ C_0 . index_0 ]. Load ( int ( C_0 . index_0 * 4U )); 33return _S1 + ( float4 ) float ( _S2 ); 34} 35