yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

CopilotFix duplicate DiffPair struct generation for row_major matrices in autodiff (#7728)73f9aeb83

master
409 B20 linesraw
1#pragma pack_matrix(column_major)
2#ifdef SLANG_HLSL_ENABLE_NVAPI
3#include "nvHLSLExtns.h"
4#endif
5
6#ifndef __DXC_VERSION_MAJOR
7// warning X3557: loop doesn't seem to do anything, forcing loop to unroll
8#pragma warning(disable : 3557)
9#endif
10
11
12#line 15 "tests/autodiff/matrix-row-major-dedup.slang"
13[numthreads(1, 1, 1)]
14void computeMain(int3 dispathThreadID_0 : SV_DispatchThreadID)
15{
16
17#line 22
18    return;
19}
20