File tree 7 files changed +20
-233
lines changed
7 files changed +20
-233
lines changed Original file line number Diff line number Diff line change 10
10
11
11
src /Tests /[Dd ]ebug * /
12
12
src /Tests /[Rr ]elease /
13
- Library /[Dd ]ebug * /
14
- Library /[Rr ]elease /
13
+ src / SDK / Library /[Dd ]ebug * /
14
+ src / SDK / Library /[Rr ]elease /
15
15
16
16
build /
17
17
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
1
3
#include " PCH.h"
2
4
3
5
namespace SlimShader
Original file line number Diff line number Diff line change @@ -9,13 +9,12 @@ namespace SlimShader
9
9
// / <summary>
10
10
// / Represents an int, float or uint.
11
11
// / </summary>
12
- struct Number
12
+ class Number
13
13
{
14
14
public :
15
15
static Number Parse (BytecodeReader& reader, NumberType type);
16
-
17
- Number (uint8_t rawBytes[4 ], NumberType type);
18
- Number () { }
16
+ static Number FromRawBytes (uint8_t rawBytes[4 ], NumberType type);
17
+ static Number FromFloat (float value);
19
18
20
19
NumberType GetType () const ;
21
20
@@ -36,4 +35,17 @@ namespace SlimShader
36
35
float f;
37
36
} _value;
38
37
};
38
+
39
+ // / <summary>
40
+ // / Represents four Numbers, or two doubles.
41
+ // / </summary>
42
+ union Number4
43
+ {
44
+ public :
45
+ static Number4 FromRawBytes (uint8_t rawBytes[16 ]);
46
+
47
+ uint8_t RawBytes[16 ];
48
+ Number Numbers[4 ];
49
+ double Doubles[2 ];
50
+ };
39
51
};
Original file line number Diff line number Diff line change @@ -209,7 +209,6 @@ copy Util\*.h ..\SDK\Include</Command>
209
209
<ClInclude Include =" Util\BytecodeReader.h" />
210
210
<ClInclude Include =" Util\Decoder.h" />
211
211
<ClInclude Include =" Util\PCH.h" />
212
- <ClInclude Include =" VirtualMachine\VirtualMachine.h" />
213
212
</ItemGroup >
214
213
<ItemGroup >
215
214
<ClCompile Include =" Chunks\Common\ComponentMask.cpp" />
@@ -311,7 +310,6 @@ copy Util\*.h ..\SDK\Include</Command>
311
310
<PrecompiledHeader Condition =" '$(Configuration)|$(Platform)'=='Debug|Win32'" >Create</PrecompiledHeader >
312
311
<PrecompiledHeader Condition =" '$(Configuration)|$(Platform)'=='Release|Win32'" >Create</PrecompiledHeader >
313
312
</ClCompile >
314
- <ClCompile Include =" VirtualMachine\VirtualMachine.cpp" />
315
313
</ItemGroup >
316
314
<Import Project =" $(VCTargetsPath)\Microsoft.Cpp.targets" />
317
315
<ImportGroup Label =" ExtensionTargets" >
Original file line number Diff line number Diff line change 182
182
<ClInclude Include =" Chunks\Shex\Tokens\TessellatorPartitioningDeclarationToken.h" />
183
183
<ClInclude Include =" Chunks\Shex\Tokens\ThreadGroupDeclarationToken.h" />
184
184
<ClInclude Include =" Chunks\Shex\Tokens\TypedUnorderedAccessViewDeclarationToken.h" />
185
- <ClInclude Include =" VirtualMachine\VirtualMachine.h" />
186
185
</ItemGroup >
187
186
<ItemGroup >
188
187
<ClCompile Include =" Chunks\DxbcChunk.cpp" >
289
288
<ClCompile Include =" Chunks\Shex\Tokens\TessellatorPartitioningDeclarationToken.cpp" />
290
289
<ClCompile Include =" Chunks\Shex\Tokens\ThreadGroupDeclarationToken.cpp" />
291
290
<ClCompile Include =" Chunks\Shex\Tokens\TypedUnorderedAccessViewDeclarationToken.cpp" />
292
- <ClCompile Include =" VirtualMachine\VirtualMachine.cpp" />
293
291
</ItemGroup >
294
292
</Project >
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments