1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// This source file is generated by a tool
#include "stdafx.h"
#include "shaderNames.h"
static const std::array<const char*, 40> s_shaderNames =
{
"add",
"addInPlace",
"addRepeat",
"addRepeatEx",
"addRepeatGelu",
"addRepeatScale",
"addRows",
"convolutionMain",
"convolutionMain2",
"convolutionMain2Fixed",
"convolutionPrep1",
"convolutionPrep2",
"copyConvert",
"copyTranspose",
"diagMaskInf",
"flashAttention",
"flashAttentionCompat1",
"flashAttentionCompat2",
"flashAttentionCompat3",
"fmaRepeat1",
"fmaRepeat2",
"matReshapePanels",
"mulMatByRow",
"mulMatByRowTiled",
"mulMatByRowTiledEx",
"mulMatByScalar",
"mulMatDotMain",
"mulMatDotReshape",
"mulMatMadMain",
"mulMatTiled",
"mulMatTiledEx",
"norm",
"normCompat",
"normFixed",
"scaleInPlace",
"softMax",
"softMaxCompat",
"softMaxFixed",
"softMaxLong",
"zeroMemory",
};
const char* DirectCompute::computeShaderName( eComputeShader cs )
{
const uint16_t i = (uint16_t)cs;
if( i < s_shaderNames.size() )
return s_shaderNames[ i ];
return nullptr;
}
|